$ 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: |
| chrome.runtime.sendMessage("nkohjkjhdcoklcopgnefoopkpggbmgcj", {data: "hello"}, | |
| function(response) { | |
| console.log("RESPONSE"); | |
| console.log(response); | |
| }); |
| 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) |
| # @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt” | |
| # Shamelessly copied from https://github.com/gf3/dotfiles | |
| # Screenshot: http://i.imgur.com/s0Blh.png | |
| if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then | |
| export TERM=gnome-256color | |
| elif infocmp xterm-256color >/dev/null 2>&1; then | |
| export TERM=xterm-256color | |
| fi |
| 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