Skip to content

Instantly share code, notes, and snippets.

docker run -d -p 5000:5000 --restart=always -v /etc/docker/registry/config.yaml:/var/lib/registry/config.yml --name registry registry
@rodolfo3
rodolfo3 / check-origin-production.py
Created December 9, 2016 13:17
Check if all commits into production are into master
import subprocess
import re
PROJECTS = [
"legacy-api",
"payments-api",
"subscription-api",
"subscription-web",
"eduk-web",
@rodolfo3
rodolfo3 / gist:5613796
Last active December 17, 2015 12:59
Como NÃO usar threads para somar. ;) O resultado nunca é o esperado...
import threading
TOTAL = 10000
x = 0
def somar():
global x
x += 1
ths = [threading.Thread(target=somar) for x in xrange(TOTAL)]
@rodolfo3
rodolfo3 / Gamepad.txt
Created February 14, 2012 17:44
Hack Day :: Brainstorm
Compramos um kit pra montar um arcade. Montar o arcade (com o arduino) e criar algum jogo (ou escrever um driver pra jogar em um emulador)
https://www.sparkfun.com/products/9180
https://www.sparkfun.com/products/9182