Skip to content

Instantly share code, notes, and snippets.

Patrick Breitenbach pbreit

Block or report user

Report or block pbreit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pbreit
pbreit / mongo-dump-csv.sh
Created Aug 10, 2016 — forked from mderazon/mongo-dump-csv.sh
Export all of Mongodb collections as csv without the need to specify fields
View mongo-dump-csv.sh
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 Nov 23, 2011
Install PIL in MacOS Lion
View gist:1389747
#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
You can’t perform that action at this time.