Skip to content

Instantly share code, notes, and snippets.

View pbreit's full-sized avatar

Patrick Breitenbach pbreit

  • San Francisco, CA
View GitHub Profile
@pbreit
pbreit / mongo-dump-csv.sh
Created August 10, 2016 05:39 — forked from mderazon/mongo-dump-csv.sh
Export all of Mongodb collections as csv without the need to specify fields
OIFS=$IFS;
IFS=",";
# fill in your details here
dbname=DBNAME
user=USERNAME
pass=PASSWORD
host=HOSTNAME:PORT
# first get all collections in the database
@pbreit
pbreit / gist:1389747
Created November 23, 2011 20:07
Install PIL in MacOS Lion
#attempt to install PIL on MacOS Lion
#without Fink, brew, MacPorts, etc
#install Xcode 4.2.1
#this might be necessary
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
#delete previous attempts (optional)
cd /usr/loca/bin