This file contains hidden or 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
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
This file contains hidden or 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
source 'http://rubygems.org' | |
gem 'rails', '3.0.3' | |
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' | |
gem 'nifty-generators' | |
gem 'google-api-client', :require => 'google/api_client' | |
gem 'omniauth', '1.1.0' | |
gem 'omniauth-google-oauth2', :git => 'https://github.com/zquestz/omniauth-google-oauth2.git' |
This file contains hidden or 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
# Insert a new task into the user's default task list | |
# Based upon the sample urlshortener.py code for the | |
# Google API Python Client library | |
# http://code.google.com/p/google-api-python-client/source/browse/samples/urlshortener/urlshortener.py | |
# Note that the response to the task insert is a 200, rather than a 201 | |
# If you want to run this, get your own client_id and client_secret using the | |
# Google API Console https://code.google.com/apis/console/ |