Skip to content

Instantly share code, notes, and snippets.

@badri
badri / CloudFormationTemplateOpenShift.yaml
Created October 27, 2018 19:58 — forked from mateobur/CloudFormationTemplateOpenShift.yaml
CloudFormation Template OpenShift
AWSTemplateFormatVersion: '2010-09-09'
Metadata: {}
Parameters:
###########
KeyName:
Description: The EC2 Key Pair to allow SSH access to the instance
Type: 'AWS::EC2::KeyPair::KeyName'
AvailabilityZone:
Description: Availability zone to deploy
@badri
badri / github_flask_oauth2.py
Created October 2, 2015 17:33 — forked from ib-lundgren/github_flask_oauth2.py
Example of how to use Flask with requests-oauthlib to fetch a GitHub user profile using an OAuth 2 token.
from requests_oauthlib import OAuth2Session
from flask import Flask, request, redirect, session, url_for
from flask.json import jsonify
import os
app = Flask(__name__)
# This information is obtained upon registration of a new GitHub
client_id = "<your client key>"
@badri
badri / lizardfs.template
Last active February 15, 2017 15:02 — forked from anonymous/lizardfs.template
LizardFS CloudFormation template.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "LizardFS CloudFormation template. See: http://goo.gl/1bp2qF and http://goo.gl/vEOJq5 and http://goo.gl/Fpzm61",
"Parameters" : {
"DataNodeCount" : {
"Description" : "Number of data nodes to provision in cluster (2-18)",
"Type" : "Number",
"Default" : "2",