Skip to content

Instantly share code, notes, and snippets.

@harmy
harmy / middleware.py
Created June 6, 2016 14:54 — forked from Miserlou/middleware.py
Django Profiler
# Orignal version taken from http://www.djangosnippets.org/snippets/186/
# Original author: udfalkso
# Modified by: Shwagroo Team and Gun.io
import sys
import os
import re
import hotshot, hotshot.stats
import tempfile
import StringIO
@harmy
harmy / elasticsearch-skyline.py
Created June 6, 2016 05:55 — forked from chenryn/elasticsearch-skyline.py
change etsy skyline to read metrics from elasticsearch directly.
import pandas
import numpy as np
import scipy
import statsmodels.api as sm
import os
import sys
import json
import traceback
import logging
from time import time
@harmy
harmy / justinguitar.py
Created September 26, 2015 15:33 — forked from nhanb/justinguitar.py
Grabbing all lesson videos from justinguitar's beginner course
#!/usr/bin/env python
import requests
import re
from bs4 import BeautifulSoup
from subprocess import call, check_output
import string
def fetch_html(links):
#!/bin/sh
usage () {
echo "Usage: $0 [-i [identity_file]] [user@]machine"
exit 1
}
# Parse options
while getopts ":i:" o
do case "$o" in
@harmy
harmy / brubeck_installer.sh
Created August 5, 2012 06:10 — forked from j2labs/brubeck_installer.sh
Brubeck Installer for Ubuntu
#!/bin/sh
###
### Settings
###
ZMQ_VERSION="zeromq-2.2.0"
MONGREL2_VERSION="mongrel2-1.7.5"
PREV_DIR=$PWD
SRC_DIR=$HOME/src