Skip to content

Instantly share code, notes, and snippets.

@kohey18
kohey18 / dev_stg_connect.sh
Last active October 27, 2015 08:21
dev_stg_connect.sh
#!/bin/sh
# export AWS_ACCESS_KEY_ID=<AWS_KEY>
# export AWS_SECRET_ACCESS_KEY=<AWS_SECRET_KEY>
# export AWS_DEFAULT_REGION=us-east-1
# (ex) sh dev_stg_connect.sh egs-dev stg-auth
cluster=$1
SRV=$2
@kohey18
kohey18 / send_image.lua
Created April 17, 2014 11:00
send_image.lua
local image_path = ngx.var.image_path
local images_dir = "/home/koheyhey/localdata/" -- where images come from
local function return_not_found(msg)
ngx.status = ngx.HTTP_NOT_FOUND
ngx.header["Content-type"] = "text/html"
ngx.say(msg or "not found")
ngx.exit(0)
end