This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, re | |
from sys import argv | |
from fabric.api import local, settings | |
if __name__ == "__main__": | |
this_dir = os.getcwd() | |
evacuated = [] | |
prefered = None | |
if len(argv) > 1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from sys import argv, exit | |
from fabric.api import settings, local | |
if __name__ == '__main__': | |
try: | |
target = argv[1] | |
except Exception as e: | |
print e | |
print "usage: skillet.py [module name (i.e. compass_frontend)]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re, os, signal | |
import tornado.ioloop, tornado.web, tornado.httpserver | |
from subprocess import Popen, PIPE | |
from sys import exit | |
# DON'T FORGET TO SET THIS! | |
ANNEX_DIR = "/path/to/your/remote/repository" | |
API_PORT = 8888 | |
NUM_PROCESSES = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
BLOG_DIR=/where/is/your/jekyll/blog | |
ASSETS_DIR=$BLOG_DIR/subpath/for/your/assets/like/images/or/whatever | |
function join { local IFS="$1"; shift; echo "$*"; } | |
MAKE_TITULAR_DIR=false | |
if [ $# -eq 0 ] | |
then | |
TITLE="new_post" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected]) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
from Levenshtein import ratio | |
from Levenshtein import distance | |
import re, csv, os | |
delimiter = ',' | |
quotechar = '|' | |
quoting = csv.QUOTE_MINIMAL | |
BrandInfo = namedtuple('BrandInfo', 'model_text utqg_correlate') |
NewerOlder