Created
June 13, 2013 19:03
-
-
Save cam8001/5776416 to your computer and use it in GitHub Desktop.
Installing googlecl on OS X
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
#!/bin/bash | |
brew install python | |
pip install http://googlecl.googlecode.com/svn/trunk/ | |
google docs list | |
# Then this will happen: | |
# Please specify user: me@email.com | |
# Please log in and/or grant access at https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=NYAN-NYAN-NYAN&hd=email.com | |
# *your browser opens, you grant access, it gives you a token, you paste it in next* | |
# Please enter the verification code on the success page: | |
# *Something happens inside Omega/Borg that takes ages* | |
# http://www.wired.com/wiredenterprise/2013/04/google-john-wilkes-new-hackers/ | |
EXAMPLE_CMD='drush sqlq "SELECT uid, name, mail FROM users" > ~/tmp/drush-googlecl-example.tsv && google docs upload ~/tmp/drush-googlecl-example.tsv' | |
echo "You are now assimilated into the Borg. \n" | |
echo "Now check this!!! \n" | |
echo "\033[32mRunning: \033[0m$EXAMPLE_CMD" | |
eval $EXAMPLE_CMD | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment