Skip to content

Instantly share code, notes, and snippets.

probably coding

Gabriel Falcão gabrielfalcao

probably coding
Block or report user

Report or block gabrielfalcao

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
gabrielfalcao /
Created Dec 19, 2019 — forked from coolreader18/
Make CPython segfault in 5 lines of code.
class E(BaseException):
def __new__(cls, *args, **kwargs):
return cls
def a(): yield
gabrielfalcao /
Created Nov 30, 2019
Using python cryptography module to generate an RSA keypair, serialize, deserialize the keys and perform encryption and decryption
import base64
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
def utf8(s: bytes):
return str(s, 'utf-8')
gabrielfalcao /
Created Nov 30, 2019
Ed25519 signing in python
from cryptography.hazmat.primitives.asymmetric.ed25519 import (
from cryptography.hazmat.primitives import serialization
private_key = Ed25519PrivateKey.generate()
public_key = private_key.public_key()
gabrielfalcao /
Created May 10, 2019
generic wait functions for browser testing with lettuce
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import time
import threading
from functools import wraps
from lxml import html
from lxml.etree import XMLSyntaxError
from lettuce import world, before, after
gabrielfalcao /
Created Oct 5, 2018
Ideas for practical dojos

Kata Ideas for Coding Dojos


A library and/or command-line tool to detect case of a word and translates to any other case.

Must support case types:

  • camelCase
  • PascalCase
View github-repository-projects-and-cards.gql
repository(name: "berlin", owner: "gabrielfalcao") {
owner {
[5:08pm] Luis_Byclosure: I'm having problems applying the "5 Why" rule, to the feature
                         "login" (imagine an application like youtube)
[5:08pm] Luis_Byclosure: how do you explain the business value of the feature "login"?
[5:09pm] Luis_Byclosure: In order to be recognized among other people, I want to login
                         in the application (?)
[5:09pm] Luis_Byclosure: why do I want to be recognized among other people?
[5:11pm] aslakhellesoy:  Why do people have to log in?
[5:12pm] Luis_Byclosure: I dunno... why?
[5:12pm] aslakhellesoy:  I'm asking you
gabrielfalcao / stylish.css
Created Jun 21, 2018 — forked from amitmerchant1990/stylish.css
Revert back to good old GitHub Homepage
View stylish.css
1. Install the Stylish( extension for Chrome.
2. Open up extension options and paste the CSS mentioned below.
3. Specify the "URLs on the domain" to be ``.
4. Add a title and save.
.dashboard-sidebar {
float: right;
padding-right: 10px;
View gist:f1209b3998359542a3ac37c2c6fb4f96

Sphinx themes

Built-in themes


  • basic
  • default
  • epub
gabrielfalcao /
Created Feb 14, 2018 — forked from joepie91/
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

(A Russian translation of this article can be found here, contributed by Timur Demin.)

Why not?

You can’t perform that action at this time.