This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Flipping tables! (╯°□°)╯︵ ┻━┻" | |
num_rules=3 | |
real=3 # exposed to the ELB as port 443 | |
test=4 # used to install test certs for domain verification | |
health=5 # used by the ELB healthcheck | |
blue_prefix=855 | |
green_prefix=866 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -ex | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get build-dep exim4 | |
sudo apt-get install --no-install-recommends devscripts fakeroot | |
apt-get source exim4 | |
perl -i -pe 's/^\s*#\s*OPENSSL\s*:=\s*1/OPENSSL:=1/' exim4-*/debian/rules | |
cd exim4-* | |
dch -l +openssl 'rebuild with openssl' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_accept_language $lang { | |
default en; | |
~de de; | |
~en en; | |
} | |
location /foo/bar/baz/lang.js { | |
try_files $uri.$lang $uri; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pg' | |
require 'stringio' | |
$stderr.puts "Opening database connection ..." | |
conn = PGconn.connect( :dbname => 'test' ) | |
conn.exec( <<END_SQL ) | |
DROP TABLE IF EXISTS logs; |