Skip to content

Instantly share code, notes, and snippets.

Alisson R. Perez alissonperez

Block or report user

Report or block alissonperez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
alissonperez /
Created Feb 4, 2019
#!/usr/bin/env python
import consumer
import os
import sys
import signal
import logging
from config import Config
from multiprocessing import Process
View gist:d535bc7730503854345da31c272edde9
# Install python (gcloud sdk), make and certificates (gcloud)
apk add --update make ca-certificates openssl python gettext
# Installing GCLOUD SDK
tar zxvf google-cloud-sdk.tar.gz && ./google-cloud-sdk/ --usage-reporting=false --path-update=true
google-cloud-sdk/bin/gcloud --quiet components update
echo $GCLOUD_SERVICE_KEY | base64 -d > ${HOME}/gcloud-service-key.json
google-cloud-sdk/bin/gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json
alissonperez / .gitlab-ci.yml
Created May 4, 2018 — forked from foklepoint/.gitlab-ci.yml
Build and Push images to GCP Container Registry with Gitlab CI
View .gitlab-ci.yml
image: docker:latest
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
IMAGE_NAME: image_id
alissonperez / gist:a63cd755cb0291f6cad2b6ec29500937
Created Nov 23, 2016
Python - Logging - Example dictConfig
View gist:a63cd755cb0291f6cad2b6ec29500937
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
'handlers': {
'default': {

Keybase proof

I hereby claim:

  • I am alissonperez on github.
  • I am alissonperez ( on keybase.
  • I have a public key whose fingerprint is C578 5C6F F1FB 6B5F 8015 2A2B 80AB 17AC 7705 824B

To claim this, I am signing this object:


No /etc/fstab, mudar a versão de 3 para 4:

# Note o parâmetro 'vers=4' no fim da linha /montagem/local/99 nfs rw,rsize=32768,wsize=32768,timeo=14,intr,sync,vers=4

No /etc/idmapd.conf, incluir a linha Domain = abaixo da linha # Domain = localdomain, ficando assim:

View bash_ps1
# no seu bashrc
source ~/ #<---
PS1='\[\033]0;\u@\h:\W\007\]`if [ $? = 0 ]; then echo "\[\033[01;32m\]✔"; else echo "\[\033[01;31m\]✘"; fi` \[\033[01;37m\ ]\h\[\033[01;34m\] \w\[\033[35m\]$(__git_ps1 " %s") \[\033[01;36m\]$\[\033[00m\] '
# no do root
PS1='\[\033]0;\u@\h:\W\007\]`if [ $? = 0 ]; then echo "\[\033[01;32m\]✔"; else echo "\[\033[01;31m\]✘"; fi` \[\033[00;31m\]\u@\h\[\033[01;34m\] \w\[\033[35m\] \[\033[01;31m\]#\[\033[00m\] '
# nas vms
PS1='\[\033]0;\u@\h:\W\007\]`if [ $? = 0 ]; then echo "\[\033[01;32m\]✔"; else echo "\[\033[01;31m\]✘"; fi` \[\033[01;33m\]\u@\h\[\033[01;34m\] \w\[\033[35m\] \[\033[01;30m\]$\[\033[00m\] '
import sublime, sublime_plugin, datetime
class InsertTimeCommand(sublime_plugin.TextCommand):
def run(self, edit):
date_time ='%Y-%m-%d %H:%M:%S')
for r in self.view.sel():
self.view.replace(edit, r, date_time)
alissonperez /
Last active Aug 29, 2015
Instalando o java no ubuntu

Adicionando o repositório:

$ sudo add-apt-repository ppa:webupd8team/java

Caso esse comando não seja encontrado:

$ sudo apt-get install software-properties-common python-software-properties
You can’t perform that action at this time.