Skip to content

Instantly share code, notes, and snippets.

View berkai's full-sized avatar
🎯
Focusing

Berkay Berkman berkai

🎯
Focusing
View GitHub Profile
@mpolatcan
mpolatcan / shell_oil_turkey_scraper.py
Last active July 11, 2020 19:37
Shell Oil Turkey oil prices data scraping
# Written by Mutlu Polatcan
# 09.07.2020
# =============================================
import requests
import re
from datetime import datetime, timedelta
class ShellOilTurkeyScraper:
URL = "https://www.turkiyeshell.com/pompatest/History.aspx"
@bradtraversy
bradtraversy / mysql_cheat_sheet.md
Last active September 23, 2024 01:17
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@hartfordfive
hartfordfive / locust_basic_auth_test.py
Created June 18, 2015 15:55
Sample LocustIO testing script with basic auth
'''
Simple LocustIO testing script with basic auth
'''
import random, gzip, StringIO, threading, urllib2, re, getpass
from locust import HttpLocust, TaskSet, task, web
from random import randint
from urlparse import urlparse
#resource.setrlimit(resource.RLIMIT_NOFILE, (999999, 999999))
USER_AGENTS = [
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 22, 2024 08:03
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname