I hereby claim:
- I am derek-schaefer on github.
- I am dschaefer (https://keybase.io/dschaefer) on keybase.
- I have a public key ASASAIjT_xS4MBROtK9ReW7rqjgsIRXYXE-hLlJYy977Hwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Cannot be enabled via the console at time of writing | |
aws elb create-load-balancer-policy --load-balancer-name $ELB_NAME --policy-name EnableProxyProtocol --policy-type-name ProxyProtocolPolicyType --policy-attributes AttributeName=ProxyProtocol,AttributeValue=True | |
aws elb set-load-balancer-policies-for-backend-server --load-balancer-name $ELB_NAME --instance-port $ELB_PORT --policy-names EnableProxyProtocol |
description "Play" | |
env USER=user | |
env GROUP=group | |
env HOME=/opt/yourapp | |
env JAVA=/usr/bin/java | |
env JAVA_OPTS="-cp ./staged/* play.core.server.NettyServer ./.." | |
env PORT=80 | |
env EXTRA="-Xms128M -Xmx512m -server" |
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip |
#!/bin/sh | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:cassou/emacs | |
sudo apt-get autoremove --purge emacs* | |
sudo apt-get update | |
sudo apt-get install emacs24-nox |
from django.template import Library, Node, Variable, \ | |
VariableDoesNotExist, TemplateSyntaxError | |
register = Library() | |
def get_var(v, context): | |
try: | |
return v.resolve(context) | |
except VariableDoesNotExist: | |
return v.var |
from django.template import Node, Library | |
import urllib | |
register = Library() | |
class URLEncodeNode(Node): | |
def __init__(self, nodes, plus=False): | |
self.nodes = nodes |
# After cloing a git repo with submodules: | |
git submodule init | |
git submodule update | |
# To later update these submodules: | |
git submodule foreach git pull origin master |
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough [email protected] | |
/** | |
* You can pass in a random number generator object if you like. | |
* It is assumed to have a random() method. | |
*/ |
/* Renders a web page to an image. */ | |
var address = phantom.args[0]; | |
var outfile = phantom.args[1]; | |
var width = phantom.args[2] || 1440; | |
var height = phantom.args[3] || 900; | |
var page = new WebPage(); | |
var data = { |