$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
# Login to AWS registry (must have docker running) | |
docker/registry/login: | |
$$(aws ecr get-login --no-include-email --region us-east-1 --profile=mycompany) | |
# Build docker target | |
docker/build: | |
docker build -f Dockerfile --no-cache -t mycompany/myapp . | |
# Tag docker image | |
docker/image/tag: |
from django.template.defaultfilters import floatformat | |
from django.contrib.humanize.templatetags.humanize import intcomma | |
from django.utils.encoding import force_unicode | |
def decimal_to_real(value, precision=2): | |
''' | |
Receives a Decimal instance and returns a string formatted as brazilian Real currency: | |
12,234.00. Without the "R$". | |
''' | |
value = floatformat(value, precision) |
export PATH=/Library/PostgreSQL/9.3/bin/:"$PATH" | |
pip install psycopg2 |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats