Skip to content

Instantly share code, notes, and snippets.

View egomesbrandao's full-sized avatar
🏠
Working from home

Emmanuel G. Brandão egomesbrandao

🏠
Working from home
View GitHub Profile
@alinefr
alinefr / check_cloudflare_lastpass.py
Last active March 1, 2017 05:21 — forked from anp/check_cloudflare_lastpass.py
Check a LastPass CSV export for potential CloudFlare vulnerabilities
"""
This is the product of me spending a few minutes trying to
assess how much of my LastPass vault is potentially vulnerable
to the recent CloudFlare issue.
It's hacky, and probably broken in some way, but it's a start.
Gist comments with improvements very welcome.
"""
@klauswuestefeld
klauswuestefeld / gist:1181000
Created August 30, 2011 14:19
Transcendendo Teste Unitário?
É bem útil conceituar forte e explicitamente a diferença entre Resolver/Eliminar um problema
e Contornar/Gerenciar um problema.
Exemplo de Problema: "Tá um inferno gerenciar os bugs do nosso sistema."
Contornar/Gerenciar: "Vamos subir um bug tracking tipo Jira/BugZilla da vida!"
Resolver/Eliminar: "Vamos melhorar a qualidade do código até reduzir em 98% o surgimento de
bugs."
@andrecarlucci
andrecarlucci / gist:fb1ad3caf46af7eea33cc3bf67d264d9
Created January 3, 2018 13:17
Tampermonkey script tp add #gratidao to all messages on whatsapp web #ironic
// ==UserScript==
// @name MVP Gratidao
// @namespace http://tampermonkey.net/
// @version 0.1
// @description add #gratidao to all messages on whatsapp web
// @author You
// @match https://web.whatsapp.com/
// @grant none
// ==/UserScript==
@dotMorten
dotMorten / HttpGZipClientHandler.cs
Last active May 8, 2018 19:38
GZip support for PCL HttpClient. Create HttpClient using: HttpClient client = new HttpClient(new HttpGZipClientHandler());
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using System.Threading.Tasks;
namespace SharpGIS.Http
{
public class HttpGZipClientHandler : HttpClientHandler
{
@WennderSantos
WennderSantos / TwoIntegersThatSumToEight.cs
Created November 23, 2018 17:43
Find pairs that sum to eight. O(n)
static void Main(string[] args)
{
var input = new int[]{4, 5, 2, 3, 4, 1};
var memory = new Dictionary<int, int>();
var results = new List<(int idx1, int idx2)>();
for (var i = 0; i < input.Length; i++)
{
if (memory.ContainsKey(input[i]))
results.Add((memory[input[i]], i));
@klauswuestefeld
klauswuestefeld / gist:1595701
Created January 11, 2012 17:22
O Ciclo Vicioso Do Software Retranqueiro
We couldn’t find that file to show.
@TheFern2
TheFern2 / Custom-Keyboard.md
Last active October 29, 2019 00:31
Keyboard-Building-Guide

Guide to building my custom keyboard

I wanted to build my keyboard just because, nowadays is almost as expensive to build one than buy one, but given that I have 3D printer, I could print the case and plate easily with some minor modifications.

Create Layout

www.keyboard-layout-editor

Create Cad for Plate and Case

@tapajos
tapajos / gist:1811460
Created February 12, 2012 23:05
Migrando do Heroku para a Amazon Web Services

Migrando do Heroku para a Amazon Web Services

Recentemente eu comentei sobre a migração que fizemos no [Myfinance][mf] saindo do [Heroku][h] e indo para a [Amazon Web Services][a] e diversas pessoas me perguntaram as razões pela qual fizemos essa mudança. O objetivo desse post é apenas explicar a decisão que a nossa equipe tomou, como foi e as conseguências dessa migração.

Antes de começar eu gostaria de deixar claro que o objetivo desse texto não é comparar hospedagens e nem dizer que uma é melhor do que a outra. Trata-se apenas do relato de uma experiência.

A motivação

Antes de explicar a motivação por trás da migração é interessante mostrar como era a nossa estrutura.

@jedschneider
jedschneider / gh-pages-tips.md
Created June 7, 2012 17:59
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials

@rgregg
rgregg / FormMicrosoftAccountAuth.cs
Last active September 27, 2021 23:59
Easy OAuth form for Microsoft Account authentication
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;