Skip to content

Instantly share code, notes, and snippets.

@rhussmann
rhussmann / README.md
Last active April 11, 2017 17:04
Creating an S3 static website from the command line
aws s3 mb s3://my-bucket-name
aws s3 website s3://my-bucket-name/ --index-document AN_INDEX_DOCUMENT --error-document AN_ERROR_DOCUMENT
aws s3api put-bucket-policy --bucket my-bucket-name --policy file://policy.json
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@rhussmann
rhussmann / SignInWithTwitter.js
Created September 6, 2010 06:05
Simple 'sign in with Twitter' implementation in node.js
var http = require('http'),
sys = require('sys'),
URL = require('url'),
querystring = require('querystring'),
OAuth = require('oauth').OAuth;
var oa = new OAuth('https://api.twitter.com/oauth/request_token',
'https://api.twitter.com/oauth/access_token',
'YOUR APP CONSUMER KEY HERE',
'YOUR APP CONSUMER SECRET HERE',