Skip to content

Instantly share code, notes, and snippets.

View mikej165's full-sized avatar

Michael Johnston mikej165

View GitHub Profile
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 December 21, 2015 17:48
Remapping an EC2 instance to an elastic IP in node.js. Useful for restarts and reboots.
/**
* 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