Skip to content

Instantly share code, notes, and snippets.

View brunohenrique's full-sized avatar

Bruno Costa - Garu brunohenrique

  • Onefootball
  • Berlin, Germany
View GitHub Profile
@brunohenrique
brunohenrique / elements.md
Created January 5, 2012 19:51 — forked from soveran/elements.md
Excerpts from The Elements of Programming Style. The source of this compilation is unknown.

The Elements of Programming Style

The following rules of programming style are excerpted from the book "The Elements of Programming Style" by Kernighan and Plauger, published by McGraw Hill. Here is quote from the book: "To paraphrase an observation in The Elements of Style by Strunk and White, the rules of programming style, like those of English, are sometimes broken, even by the best writers. When a rule is broken, however, you will usually find in the program some compensating merit, attained at the cost of the violation. Unless you are certain of doing as well, you will probably do best to follow the rules."

@brunohenrique
brunohenrique / links.textile
Created November 13, 2012 01:12 — forked from lucashungaro/links.textile
Links de referência utilizados em minha palestra
@brunohenrique
brunohenrique / gist:4218055
Created December 5, 2012 18:11 — forked from gabrielfalcao/tcp-socket-error-codes-errno.txt
TCP socket error codes
0 = Success
1 = Operation not permitted
2 = No such file or directory
3 = No such process
4 = Interrupted system call
5 = Input/output error
6 = No such device or address
7 = Argument list too long
8 = Exec format error
Links
----
* Jim Weirich: The Building Blocks of Modularity – http://goo.gl/g4Nk
* Jim Weirich: SOLID Ruby – http://goo.gl/z3jd
* Sandi Metz: SOLID Object-Oriented Design – http://goo.gl/PDn6T
* Sandi Metz: Less – The Path to Better Design – http://goo.gl/VuTl4
* Demeter is for Encapsulation – http://is.gd/eeyLx
* Opinionated Modular Code – http://is.gd/eeyXm
* Scaling to Hundreds of Millions of Requests – http://vimeo.com/12814529
* Confident Code – http://goo.gl/VFLX
#------------------------------------------------------------------------------#
# vi: set sw=4 ts=4 ai: ("set modeline" in ~/.exrc) #
#------------------------------------------------------------------------------#
# Config file : ~/.tmux.conf #
# #
# Author : Ton Kersten The Netherlands #
#------------------------------------------------------------------------------#
# I use all Alt-Keys instead of Ctrl. This because I use a lot of Ctrl in
# Vim and so on and I don't like to use the Prefix all the time.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
  1. General Background and Overview
THEO SCHLOSSNAGLE (Circonus) - Techniques and tools for a coherent discussion about performance in complex architectures
MITCHELL HASHIMOTO (Hashicorp) - Automating the Modern Datacenter, Development to Production
MARTIN KLEPPMANN (LinkedIn) - Using logs to build a solid data infrastructure
CAITIE MCCAFFREY (Twitter) - Implementing the Saga Pattern
TAMMER SALEH (Pivotal) - Microservice AntiPatterns
PAUL BUTCHER (Ten Tenths Consulting, Pragmatic Programmers) - Concurrency: It's harder (and easier) than you think
JEREMY EDBERG (Netflix) - Building Reliable Distributed Data Systems
COREY HAINES (CoreyHaines) - Fun with the lambda calculus
DAVID NOLEN (Cognitect) - The Front End Architecture Revolution
MICHAEL NYGARD (Cognitect) - Architecture without an end state
@brunohenrique
brunohenrique / latency.txt
Created May 31, 2016 01:58 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD