I hereby claim:
- I am cwonrails on github.
- I am cwonrails (https://keybase.io/cwonrails) on keybase.
- I have a public key whose fingerprint is 321C CE47 9BC7 51CA AA8B DD85 E55D 2F45 E7ED 4BBF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"files": | |
{ | |
"Chart.js": "https://github.com/nnnick/Chart.js", | |
"Modernizr.js": "http://modernizr.com/downloads/modernizr-latest.js", | |
"Normalize.css 1.x": "https://github.com/necolas/normalize.css/blob/v1.1.3/normalize.css", | |
"Normalize.css 2.x": "https://github.com/necolas/normalize.css/blob/v2.1.3/normalize.css", | |
"Normalize.css 3.x": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css", | |
"Respond.js": "https://github.com/scottjehl/Respond/blob/master/dest/respond.min.js", | |
"Sanitize.css": "https://raw.github.com/ZDroid/sanitize.css/master/sanitize.css", |
add_header X-Cache $upstream_cache_status; | |
location / { | |
proxy_cache STATIC; | |
proxy_cache_valid 200 30m; | |
proxy_cache_valid 404 1m; | |
proxy_pass http://ghost_upstream; | |
proxy_ignore_headers X-Accel-Expires Expires Cache-Control; | |
proxy_ignore_headers Set-Cookie; | |
proxy_hide_header Set-Cookie; | |
proxy_hide_header X-powered-by; |
server { | |
server_name domain.com; | |
listen 443 ssl spdy; | |
spdy_headers_comp 6; | |
spdy_keepalive_timeout 300; | |
keepalive_timeout 300; | |
ssl_certificate_key /etc/nginx/ssl/domain.key; | |
ssl_certificate /etc/nginx/ssl/domain.crt; | |
ssl_session_cache shared:SSL:10m; | |
ssl_session_timeout 24h; |
#!usr/bin/env bash | |
sudo apt-get -qq update | |
sudo apt-get -qq dist-upgrade | |
sudo apt-get -qq update | |
sudo apt-get -qq autoclean && sudo apt-get autoremove | |
sudo apt-get -qq install software-properties-common build-essential curl git-core libpcre3-dev mercurial pkg-config zip libssl-dev | |
sudo apt-get -qq update |
This is a little trick I use to spin up the packages instalation on Debian/Ubuntu boxes in Vagrant.
I add a simple function that checks if a directory named something similar to ~/.vagrant.d/cache/apt/opscode-ubuntu-12.04/partial
(it may have another path in Windows or MacOS) and create the directory if it doesn't already exist.
def local_cache(basebox_name)
cache_dir = Vagrant::Environment.new.home_path.join('cache', 'apt', basebox_name)
partial_dir = cache_dir.join('partial')
partial_dir.mkdir unless partial_dir.exist?
cache_dir
#!/usr/bin/env bash | |
echo ">>> Installing base dependencies" | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y build-essential software-properties-common curl git-core libssl-dev libpcre3 libpcre3-dev mercurial pkg-config zip apt-transport-https ca-certificates wget python | |
echo ">>> Installing Ansible" | |
sudo apt-add-repository -y ppa:ansible/ansible | |
sudo apt-get update |
#!/usr/bin/env bash | |
echo ">>> Installing PostgreSQL" | |
# Set some variables | |
POSTGRE_VERSION=9.4 | |
# Add PostgreSQL GPG public key | |
# to get latest stable | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - |