Skip to content

Instantly share code, notes, and snippets.

Avatar

Eston Bond eston

View GitHub Profile
@eston
eston / php-cgi.rb
Created Sep 24, 2010
Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
View php-cgi.rb
# Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
require 'formula'
class PhpCgi <Formula
@url='http://www.php.net/get/php-5.2.14.tar.bz2/from/www.php.net/mirror'
@version='5.2.14'
@homepage='http://php.net/'
@md5='bfdfc0e62fe437020cc04078269d1414'
@eston
eston / gist:102199
Created Apr 26, 2009
Get a bit.ly short URL
View gist:102199
import urllib
import simplejson
def getBitlyURL(login, api_key, url):
params = urllib.urlencode({'login': login, \
'apiKey': api_key, \
'version': '2.0.1', \
'format': 'json',
'longUrl': url})
uri = urllib.urlopen('http://api.bit.ly/shorten?%s' % params)
@eston
eston / gist:53018
Created Jan 26, 2009
Get Lighthouse tickets I am responsible for in the next milestone
View gist:53018
"""
Get Lighthouse tickets I am responsible for in the next milestone
Eston Bond (eston@socialuxe.com)
"""
import urllib2
from xml.dom import minidom
lighthouse_token = '' # your token. can be read-only
project_root_url = '' # e.g. project.lighthouseapp.com