Skip to content

Instantly share code, notes, and snippets.

# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#
@TaopaiC
TaopaiC / cat_1.json
Last active August 29, 2015 14:27
sample json files
{
"id": 1,
"name": "Pow Cat",
"description": "This is a cat"
}
@TaopaiC
TaopaiC / postMessage.html
Last active October 10, 2015 21:37
test page for postMessage to set modal size
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="test page for postMessage to set modal size">
<meta charset="utf-8">
<meta name="robots" content="noindex">
<title>Test page for postMessage to set modal size</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script>
function evalButton(event) {