Skip to content

Instantly share code, notes, and snippets.

View eston's full-sized avatar

Eston Bond eston

View GitHub Profile
@eston
eston / gist:53018
Created January 26, 2009 22:52
Get Lighthouse tickets I am responsible for in the next milestone
"""
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
@eston
eston / gist:102199
Created April 26, 2009 22:20
Get a bit.ly short URL
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 / php-cgi.rb
Created September 24, 2010 01:36
Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
# 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'