Skip to content

Instantly share code, notes, and snippets.

View scari's full-sized avatar
💭
sprinting on

Younggun Kim scari

💭
sprinting on
View GitHub Profile
import httplib2, sys, os, base64, hashlib, hmac, time
import json as simplejson
from urllib import urlencode, quote_plus
aws_key = ''
aws_secret_key = ''
hostname = open('/etc/hostname').read().rstrip()
# XXX: For now, those two names are same. but should be distinguished.
instanceid = hostname
@scari
scari / gist:5772280
Created June 13, 2013 09:00
post_action with named location
location / {
uwsgi_pass unix:app.sock;
post_action @post_action;
}
location @post_action {
proxy_pass http://dst_host:dst_port;
}