Skip to content

Instantly share code, notes, and snippets.

View kevink's full-sized avatar

Kevin Knoepp kevink

View GitHub Profile
@scottjbarr
scottjbarr / install_nginx_on_debian.sh
Created January 12, 2010 03:51
Install nginx on Debian
#!/bin/bash
#
# Install nginx on Debian.
#
# Author : Scott Barr
# Date : 7 Jan 2010
#
VERSION=0.7.64
import base64
import hashlib
import hmac
import simplejson as json
def base64_url_decode(inp):
padding_factor = (4 - len(inp) % 4) % 4
inp += "="*padding_factor
return base64.b64decode(unicode(inp).translate(dict(zip(map(ord, u'-_'), u'+/'))))