Skip to content

Instantly share code, notes, and snippets.

View tiffani's full-sized avatar

Tiffani Ashley Bell tiffani

View GitHub Profile
*** LOCAL GEMS ***
actionmailer (4.2.4, 4.2.0)
actionpack (4.2.4, 4.2.0)
actionview (4.2.4, 4.2.0)
activejob (4.2.4, 4.2.0)
activemodel (4.2.4, 4.2.0)
activerecord (4.2.4, 4.2.0)
activesupport (4.2.4, 4.2.0)
arel (6.0.3, 6.0.0)
@tiffani
tiffani / gf-tumblr.js
Created March 14, 2014 21:32
A way of transforming Google Form responses into Tumblr posts!
/*
Integrate with the Tumblr API (v2) to transform Google Form responses
into Tumblr posts!
Tumblr API on posting: http://www.tumblr.com/docs/en/api/v2#posting
To get started, you'll need to register this as an app in your Tumblr account.
Do this at http://www.tumblr.com/oauth/register. After that you'll get your
OAuth consumer and secret keys. Plug those into TUMBLR_KEY and TUMBLR_SECRET
@tiffani
tiffani / gist:6471752
Created September 7, 2013 00:38
How to get Sqoop to share.
/root/installs/sqoop-1.4.2/build/sqoop-1.4.2.bin__hadoop-1.0.0/bin/sqoop export --connect jdbc:postgresql:where_its_at/muppets --table fulla_stuff --export-dir /more/stuff/part-r-00000
@tiffani
tiffani / compileIt.txt
Created September 7, 2013 00:35
How to compile and run Java code that needs Hadoop stuff. Writing this down because I just KNOW I'll forget.
Compile it:
javac WritableFix.java -classpath /Users/tiffani/Downloads/hadoop-1.2.0/hadoop-core-1.2.0.jar:/Users/tiffani/Downloads/mahout-distribution-0.7/core/target/mahout-core-0.7.jar
Run it:
java -cp "/root/installs/hadoop-1.2.1/hadoop-core-1.2.1.jar:/root/installs/hadoop-1.2.1/lib/*:/root/installs/mahout-distribution-0.8/core/target/mahout-core-0.8.jar:/root/installs/mahout-distribution-0.8/math/target/mahout-math-0.8.jar:." WritableFix /root/installs/writableFix/part-r-00000 /root/installs/writableFix/part-r-00000-1