Skip to content

Instantly share code, notes, and snippets.

View rdegges's full-sized avatar

Randall Degges rdegges

View GitHub Profile
@rdegges
rdegges / uncompressed.html
Created March 5, 2012 07:17
Uncompressed HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
</head>
</html>
@rdegges
rdegges / cnam_test.py
Created February 28, 2012 01:00
python-opencnam example script
from opencnam import Phone
PHONE_NUMBERS_START = 2024561111
PHONE_NUMBERS_STOP = 2024561171
for num in xrange(PHONE_NUMBERS_START, PHONE_NUMBERS_STOP):
phone = Phone(num)
print phone.number, phone.cnam
@rdegges
rdegges / requirements.txt
Created February 14, 2012 16:13
Heroku Requirements File
Django==1.3.1
docutils==0.8.1
psycopg2==2.4.4
Fabric==1.3.2
South==0.7.3
gunicorn==0.13.4
newrelic==1.1.0.192
django-celery==2.4.2
django-dajaxice==0.2
django-kombu==0.9.4
@rdegges
rdegges / gist:1802557
Created February 11, 2012 17:13
cnam example runs
➜ ~ cnam 2024561111
DIST OF COLUMBI
➜ ~ cnam 8182179229
DEGGAS,RANDALL
➜ ~ cnam 8182822422
HUMANA INC
➜ ~ cnam 818-555-4444
@rdegges
rdegges / .tmux.conf
Created January 8, 2012 02:28
My tmux configuration file.
set -g prefix C-a
unbind %
bind \ split-window -h
bind - split-window -v
bind-key k select-pane -U
bind-key j select-pane -D
bind-key h select-pane -L
bind-key l select-pane -R
@rdegges
rdegges / requirements.txt
Created December 18, 2011 23:44
Heroku requirements.txt
Django==1.3.1
docutils==0.8.1
psycopg2==2.4.2
Fabric==1.3.2
South==0.7.3
gunicorn==0.13.4
newrelic==1.0.5.156
django-celery==2.4.2
django-kombu==0.9.4
django-storages==1.1.3
@rdegges
rdegges / Procfile
Created December 18, 2011 04:33
Heroku Procfile
web: python project/manage.py run_gunicorn -b "0.0.0.0:$PORT" -w 3
--max-requests 1000 --log-level info --settings=settings.prod
scheduler: python project/manage.py celeryd -B -E --maxtasksperchild=1000
--settings=settings.prod
worker: python project/manage.py celeryd -E --maxtasksperchild=1000
--settings=settings.prod
@rdegges
rdegges / Procfile
Created December 18, 2011 04:15
Heroku Procfile
web: python project/manage.py run_gunicorn -b "0.0.0.0:$PORT" -w 3 --log-level info --settings=settings.prod
scheduler: python project/manage.py celeryd -B -E --settings=settings.prod
worker: python project/manage.py celeryd -E --settings=settings.prod
@rdegges
rdegges / prod.py
Created December 17, 2011 08:59
Heroku Production Settings
"""Production settings and globals."""
from os import environ
from sys import exc_info
from urlparse import urlparse, uses_netloc
from S3 import CallingFormat
from common import *
@rdegges
rdegges / auto_connect_wifi.sh
Created July 31, 2011 06:08
holiday inn express wifi hack
curl -X POST --data "FNAME=0&IP=192.168.100.159&username=holiday&password=july" http://login.nomadix.com:1111/usg/process