Skip to content

Instantly share code, notes, and snippets.

Raffael Tancman rtancman

Block or report user

Report or block rtancman

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
rtancman / uninstall boot2docker OS X
Last active Sep 15, 2015
uninstall boot2docker OS X
View uninstall boot2docker OS X
#Uninstall steps for boot2docker / Docker
boot2docker stop
boot2docker delete
#Remove Docker and boot2docker command line tools:
sudo rm /usr/local/bin/docker
sudo rm /usr/local/bin/boot2docker
View Install Telegram
# telegram
tar xvfJ tsetup.0.9.42.tar.xz
mv Telegram/ /opt/telegram
rm -rf tsetup.0.9.42.tar.xz
#telegram image
View install meetfranz
# meetfranz
wget --max-redirect=10 -O Franz-linux-x64.tgz
mkdir -p /opt/meetfranz
tar zxvf Franz-linux-x64.tgz -C /opt/meetfranz
rm -rf Franz-linux-x64.tgz
# Add to applications list (thanks 4ndrej)
echo -e '' >> /opt/meetfranz/meetfranz.desktop;
# Sublime Text 3 install with Package Control (last update: 25 September 2016)
# No need to download this script, just run it on your terminal:
# $ curl -L | sh
# Detect the architecture
rtancman /
Created Apr 17, 2018 — forked from FSX/
A module for asynchronous PostgreSQL queries in Tornado.
#!/usr/bin/env python
__author__ = 'Frank Smit <>'
__version__ = '0.1.0'
import functools
import psycopg2
from tornado.ioloop import IOLoop, PeriodicCallback
rtancman / get-element-styles.js
Created Nov 5, 2018
show elements computed style
View get-element-styles.js
window.getComputedStyle = window.getComputedStyle || function( element ) {
return element.currentStyle;
function getStylesWithoutDefaults( element ) {
var dummy = document.createElement(element.tagName);
document.body.appendChild( dummy );
var defaultStyles = getComputedStyle( dummy );
var elementStyles = getComputedStyle( element );
rtancman /
Last active Feb 3, 2019
Comandos para criar/editar/listar/remover um lambda utilizando o awscli
echo -e "
def handler(event, context):
return {
'texto': 'hello world lambda usando awscli',
" >>
zip -qr
aws lambda create-function \
mkdir lambda_com_pacotes && cd lambda_com_pacotes
#criando o arquivo
echo -e "
import requests
def handle(event, context):
r = requests.get('')
return {
# Criando a estrutura inicial:
apex init
# Alterando estrutura para rodar python
# Executando o deploy
apex deploy
# Listando as funcoes
apex list
rtancman / 1) Dockerfile
Last active Feb 7, 2019
Python install depencies for AWS Lambda with Amazon Linux AMI
View 1) Dockerfile
FROM amazonlinux
RUN yum update -y
RUN yum groupinstall "Development Tools" -y
RUN yum install -y \
gcc \
bzip2-devel \
libffi \
openssl-devel \
perl-core \
You can’t perform that action at this time.