Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Johnston mikej165

View GitHub Profile
View gist:6521d4edeb507f2d9d95
class GoogleSignIn(OAuthSignIn):
def __init__(self):
super(GoogleSignIn, self).__init__('google')
self.service = OAuth2Service(
name='google',
client_id=self.consumer_id,
client_secret=self.consumer_secret,
authorize_url='https://accounts.google.com/o/oauth2/auth',
access_token_url='https://accounts.google.com/o/oauth2/token',
@mikej165
mikej165 / gist:6342543
Last active Dec 21, 2015
Remapping an EC2 instance to an elastic IP in node.js. Useful for restarts and reboots.
View gist:6342543
/**
* Author: Michael R. Johnston
* Date: 8/26/13
* Time: 9:34 AM
*/
var AWS = require('aws-sdk');
var request = require('request');
// Fill in your info here