Skip to content

Instantly share code, notes, and snippets.

Working from home

Rafael Carício rafaelcaricio

Working from home
Block or report user

Report or block rafaelcaricio

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
rafaelcaricio /
Last active May 19, 2019
Blog post example using Request ID in Async I/O Python app
import re
import asyncio
import logging
import logging.config
import uuid
from aiohttp import web
import aiotask_context as context
import logging
import signal
import sys
import time
import tracemalloc
logger = logging.getLogger(__name__)
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
View ingress-docker-registry.yaml
apiVersion: v1
kind: ReplicationController
name: default-http-backend
replicas: 1
app: default-http-backend
rafaelcaricio /
Created Jun 18, 2017
Namehash Algorithm from EIP137 - Ethereum Name Service
import codecs
# pip install pysha3==1.0.2
from sha3 import keccak_256
def sha3(text):
return keccak_256(text).digest()
rafaelcaricio / gpg-agent.conf
Created May 10, 2016 — forked from nl5887/gpg-agent.conf
Using GPG Agent on OS-X
View gpg-agent.conf
launchctl unload -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
launchctl load -w -S Aqua /System/Library/LaunchAgents/gpg.agent.daemon.plist
rafaelcaricio /
Created Apr 25, 2016
Custom type format - Connexion
import logging
import re
from connexion import App
from jsonschema import draft4_format_checker
MONEY_RE = re.compile('^\$\s*\d+(\.\d\d)?')
View myfirst_clojure_program.clj
(defn fizzbuzz [max_value]
(fizzbuzz_acc max_value 1))
(defn fizzbuzz_acc [max_value acc]
(if (<= acc max_value)
(do (if (is_fizzbuzz acc)
(println "fizzbuzz")
(if (is_fizz acc)
(println "fizz")
(if (is_buzz acc)
View gist:45bea001a1d93754b415
Version: Keybase OpenPGP v2.0.1
View gist:0733517d3bc44892325b
### Keybase proof
I hereby claim:
* I am rafaelcaricio on github.
* I am rafaelcaricio ( on keybase.
* I have a public key whose fingerprint is 08D9 4BF8 357C 744E 8964 FBB0 75AE 057C EE9E DF0C
To claim this, I am signing this object:
rafaelcaricio / all_emails.txt
Created Jan 7, 2015
Readable version of emails communication with Alchemia staff
View all_emails.txt
Dear Alchemia staff,
It's with profound disappointment I am writing you this e-mail to describe a racist situation towards my friends and I coming from your security guards on the night of Saturday 04/01/2015 to Sunday 05/01/2015.
I am a foreigner which regularly visits Krakow as I am always in love with this city and its people. Having coming here for so many years, I ended up making many local friends and one of our favourite spots is Alchemia in Plac Nowy.
Unfortunately yesterday an event left me shocked and very sad. Whilst having a good time with my friends, having a chat and laughs, two of your hired security staff, sitting on a table in the corner, began to shout racist comments and gestures against our table. It was not a joke - the prejudice was towards us, a group of foreigners and locals, and it was deliberate. We could hear sounds and gestures that imitated a monkey as well as sayings like "kurwa malpa", which according to our local friends, meant "fucking monkeys".
As an esteemed customer
You can’t perform that action at this time.