Skip to content

Instantly share code, notes, and snippets.

@cam8001
Created June 13, 2013 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam8001/5776416 to your computer and use it in GitHub Desktop.
Save cam8001/5776416 to your computer and use it in GitHub Desktop.
Installing googlecl on OS X
#!/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