Skip to content

Instantly share code, notes, and snippets.

View justinrosenthal's full-sized avatar

Justin Rosenthal justinrosenthal

View GitHub Profile
@justinrosenthal
justinrosenthal / declaration_of_independence.txt
Last active December 30, 2015 05:18
Declaration of Independence
When in the Course of human events, it becomes necessary for
one people to dissolve the political bands which have connected
them with another, and to assume, among the Powers of the earth,
the separate and equal station to which the Laws of Nature and
of Nature's God entitle them, a decent respect to the opinions
of mankind requires that they should declare the causes which
impel them to the separation.
We hold these truths to be self-evident, that all men are created equal,
that they are endowed by their Creator with certain unalienable Rights,
@justinrosenthal
justinrosenthal / gist:4191718
Created December 3, 2012 00:16
PEN to Nginx
cd ~/tmp
sudo apt-get install libpcre3 libpcre3-dev
wget http://nginx.org/download/nginx-1.2.5.tar.gz
gunzip -c nginx-1.2.5.tar.gz | tar xvf -
cd nginx-1.2.5
./configure --with-http_ssl_module
make
sudo make install
cd ~/git/borkbork
MIN_W = 100
MIN_H = 100
MAX_W = 300
MAX_H = 300
def test_50x50(self):
resize, crop = self.gen.transforms(50, 50)
self.assertIsNone(resize)
self.assertIsNone(crop)
@justinrosenthal
justinrosenthal / statsd-graphite-setup.sh
Created October 11, 2012 06:33
Setup for statsd on Ubuntu ec2
##################
# INSTALL STATSD
##################
sudo apt-get install git-core python-software-properties build-essential
sudo apt-get -y install python-software-properties debhelper
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get -y install nodejs npm