This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |