I hereby claim:
- I am matthutchinson on github.
- I am matthutchinson (https://keybase.io/matthutchinson) on keybase.
- I have a public key whose fingerprint is 2F6D 6D3C 53D6 659F 4674 4021 DDC0 B52C D778 C2B8
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# Pass in the name of the site you wich to create a cert for | |
domain_name = ARGV[0] | |
if domain_name == nil | |
puts "Y U No give me a domain name?" | |
else | |
system "openssl genrsa -out #{domain_name}.key 1024" | |
system "openssl req -new -key #{domain_name}.key -out #{domain_name}.csr -subj '/C=US/ST=NJ/L=Monroe/O=MyCompany/OU=IT/CN=#{domain_name}'" |
server { | |
listen 443 ssl; | |
server_name your-app.dev; | |
root /path/to/your-app/public; | |
index index.html index.htm; | |
### SSL log files ### | |
access_log logs/your-app.dev-ssl-access.log; | |
error_log logs/your-app.dev-ssl-error.log; |
# script to import cms assets from those hosted on cms.housetrip.com and | |
# upload them as cms asset objects to cloudfront, also updating all | |
# references to the images in cms_page_contents markdown for all locales | |
# only the about us and press corner pages contain assets | |
# create a tmp dir for this script to keep downloaded assets in | |
`rm -rf tmp/cms_asset_import` | |
`mkdir -p tmp/cms_asset_import` | |
# helper methods |
# encoding: UTF-8 | |
#!/usr/bin/ruby | |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
require 'json' | |
class GoogleTranslate |
default: &default | |
adapter: mysql2 | |
encoding: utf8 | |
username: root | |
password: | |
reconnect: true | |
encoding: utf8 | |
development: | |
<<: *default |
#!/bin/bash | |
COMMAND="git br | grep '$1' | sed 's/\* //'" | |
git co $(eval $COMMAND) |
# https://istlsfastyet.com | |
# https://github.com/igrigorik/istlsfastyet.com/blob/master/nginx.conf | |
# https://github.com/matthutchinson/matthutchinson.github.com/wiki/NGINX | |
# nginx (1.5.10) with resumption, OCSP stapling, 1400 byte TLS records, forward secrecy, NPN + SPDY/3.1 | |
upstream unicorn { | |
server unix:/var/www/pmfaqtory-store/shared/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
# redirect all non ssl traffic to ssl |
# upstart for bluepill daemon and store app | |
# use with config/bluepill.pill | |
description "pmFAQtory store" | |
start on runlevel [2] | |
stop on runlevel [016] | |
exec su -c "$(tr "\n" " " < /etc/environment) bluepill load /var/www/pmfaqtory-store/current/config/bluepill.pill" |
I hereby claim:
To claim this, I am signing this object: