create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
ABNC - Academia Brasileira de Neurocirurgia | |
AGU - Advocacia-Geral da União | |
ANAC - Agência Nacional de Aviação Civil | |
CAER - Clube de Aeronáutica | |
CAU - Conselho de Arquitetura e Urbanismo | |
CBM - Corpo de Bombeiro Militar | |
CFA - Conselho Federal Administração | |
CFB - Conselho Federal de Biblioteconomia | |
CFBIO - Conselho Federal de Biologia | |
CFBM - Conselho Federal de Biomedicina |
gcc -fpic --shared $(python3-config --includes) greetmodule.c -o greet.abi3.so | |
# can also use $(pkg-config --cflags python-3.5) | |
# or | |
# python3 setup.py install --record files.txt --user |
def generate_cpf(self): | |
cpf = [random.randint(0, 9) for x in range(9)] | |
for _ in range(2): | |
val = sum([(len(cpf) + 1 - i) * v for i, v in enumerate(cpf)]) % 11 | |
cpf.append(11 - val if val > 1 else 0) | |
return '%s%s%s.%s%s%s.%s%s%s-%s%s' % tuple(cpf) |
import unicodedata | |
import re | |
""" | |
A remoção de acentos foi baseada em uma resposta no Stack Overflow. | |
http://stackoverflow.com/a/517974/3464573 | |
""" | |
def removerAcentosECaracteresEspeciais(palavra): |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
<?php | |
include '../vendor/autoload.php'; | |
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
$classLoader->register(); | |
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
$classLoader->register(); | |
// config | |
$config = new \Doctrine\ORM\Configuration(); |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gunicorn | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the gunicorn server | |
# Description: starts gunicorn using start-stop-daemon |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gunicorn | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the gunicorn server | |
# Description: starts gunicorn using start-stop-daemon |