2015-10-21
- jennifer
- martym
#cloud-config | |
apt: | |
sources: | |
sury.list: | |
source: "deb https://packages.sury.org/php $RELEASE main" | |
key: | | |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQGNBFyPb58BDADTDlJLrGJktWDaUT0tFohjFxy/lL2GcVYp4zB981MWIDC0aIQZ |
# | |
# Usage: cljfmt [check|fix] <FILE_OR_PATH> | |
# | |
alias cljfmt="clojure -Sdeps '{:deps {cljfmt/cljfmt {:mvn/version \"0.7.0\"}}}' -m cljfmt.main" |
# | |
# Usage: kargo manifests kargo.edn | |
# | |
# Note: MUST be a function and NOT an alias because `pwd` MUST be interpreted each time the command runs. | |
# When using an alias, `pwd` will resolve to $HOME instead! | |
# | |
function kargo() { | |
docker run --rm -v `pwd`:`pwd` -w `pwd` \ | |
-e ENVIRONMENT=${ENVIRONMENT:=preprod} \ | |
-e ZONE=${ZONE:=ch-gva2-1} \ |
I hereby claim:
To claim this, I am signing this object:
bind = "0.0.0.0:2005" | |
workers = 4 | |
user = "carbon" | |
group = "carbon" |
#!/bin/bash | |
# | |
# /etc/rc.d/init.d/tuqtng | |
# | |
# Start up the Couchbase Query Language service daemon | |
# | |
# chkconfig: 2345 20 80 | |
# | |
# processname: tuqtng | |
# config: /etc/sysconfig/tuqtng |
apt-get install python-pip | |
pip install pystatsd | |
cat > /etc/default/statsd <<EOF | |
STATSD_PORT=8125 # port to run on (default: 8125) | |
PCT=90 # stats pct threshold (default: 90) | |
GRAPHITE_HOST=localhost # host to connect to graphite on (default: localhost) | |
GRAPHITE_PORT=2003 # port to connect to graphite on (default: 2003) | |
USER=nobody # user to run statsd as |
PORT=8000 | |
VENV_HOME=/usr/local/venv/develop | |
PYTHONUNBUFFERED=true |
from django.conf import settings | |
from django.core.exceptions import ImproperlyConfigured | |
# Python 2.7 has an importlib with import_module; for older Pythons, | |
# Django's bundled copy provides it. | |
try: # pragma: no cover | |
from importlib import import_module # pragma: no cover | |
except ImportError: # pragma: no cover | |
from django.utils.importlib import import_module # pragma: no cover |