Skip to content

Instantly share code, notes, and snippets.

@cmheisel
cmheisel / cmhflopsy.py
Created June 8, 2009 14:40 — forked from nathanborror/flopsy.py
Fork of nathanb's flopsy but doesn't require Django SETTINGS
"""
Copyright (c) 2008-2009, Nathan Borror
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this
@cmheisel
cmheisel / natread.py
Created December 7, 2009 21:35 — forked from simonw/natread.py
A cow that can read any (public) users mind
#!/usr/bin/python
import json, urllib, os, textwrap
user = 'natbat'
url = "http://twitter.com/statuses/user_timeline/%s.json"
pipe = os.popen("cowthink -n", 'w')
pipe.write('\n'.join(textwrap.wrap(
json.load(urllib.urlopen(url % user))[0]['text'])
))
# This is the one stop prank script for unattended Unix-like workstations.
# Use it with the simple one-liner:
# curl -L j.mp/__lys | bash
linux_specific(){
true
}
mac_specific(){
true
brew install git
brew update
brew install readline
brew link readline
brew install python
brew install postgres
brew install postgis
brew install gdal
brew install geos
brew install git