Skip to content

Instantly share code, notes, and snippets.

View onyxfish's full-sized avatar

Christopher Groskopf onyxfish

View GitHub Profile
@brianboyer
brianboyer / gist:1696819
Created January 29, 2012 02:21
Lion dev environment notes
@jsoa
jsoa / fabfile.py
Created March 29, 2011 13:38
Fabric script used to push updates to an activity topic on convore.com
def update():
"""
Cause the site to pull in the latest changes to its code and touch the
wsgi file so it reloads
"""
global site_path
with cd(site_path):
extra_msg = run('git pull --all')
reload()
send_convore_update(msg="Push Live", extra=extra_msg)
#!/usr/bin/python
#encoding:utf-8
from telnetlib import Telnet
import time
import sys
"""
Usage
@JoeGermuska
JoeGermuska / csvcut
Created September 1, 2010 20:51 — forked from bycoffe/csvcut
#!/usr/bin/env python
"""
Like cut, but for CSVs. To be used from a shell command line.
Note that fields are zero-based, as opposed to 'cut' where they are 1-based.
Should use something better than getopt, but this works...
Usage:
csvcut foobar.csv
@JoeGermuska
JoeGermuska / csvcut
Created June 11, 2010 15:21 — forked from bycoffe/csvcut
#!/usr/bin/env python
"""
Like cut, but for CSVs. To be used from a shell command line.
Note that fields are zero-based, as opposed to 'cut' where they are 1-based.
Should use something better than getopt, but this works...
Usage:
csvcut foobar.csv