Skip to content

Instantly share code, notes, and snippets.

@Danukeru
Danukeru / authenticator.py
Last active May 1, 2017 03:44
Blizzard authenticator as a secure RESTful endpoint
#!/usr/bin/env python
# Tested on 2.7.12
# Recommend use of authbind for binding below 1024
from SocketServer import ThreadingMixIn
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import ssl
import os, sys, pwd, grp
@Danukeru
Danukeru / pull.py
Created November 20, 2011 19:24
Pull DSPguide chapters
from subprocess import *
def command(x):
return str(Popen(x.split(' '), stdout=PIPE).communicate()[0])
def wget( uri ):
status = command( "wget " + uri )
for chap in xrange( 34 ):
wget( "http://www.dspguide.com/CH" + str( chap + 1 ) + ".PDF" )