Skip to content

Instantly share code, notes, and snippets.

View cnf's full-sized avatar

Frank Rosquin cnf

View GitHub Profile
@cnf
cnf / lnm.md
Last active August 29, 2015 14:05
Logging & Metrics

Logging

  • cAdvisor - Container Advisor, stats for docker host / containers, Influxdb output
  • docker syslog - Multiple Docker containers logging to a single syslog

Dispatchers

@cnf
cnf / golang.md
Last active October 1, 2015 09:04
Golang notes and tricks
@cnf
cnf / NAS_Parts.md
Last active December 20, 2015 12:39
NAS Parts
@cnf
cnf / _game_pc_parts_2017.md
Last active May 30, 2017 10:57
Gaming PC Parts

Game PC Parts 2017

Prices are approximations

Part Specifics Price
CPU [7700k][cpu] € -
Fan [Cryorig H7][fan] € -
RAM [Corsair 16G][ram] € -
GPU Inno3D [1080Ti][gpu] € -
@mitchellh
mitchellh / gist:2855234
Created June 1, 2012 21:29
Easy Plugin in Vagrant 1.1
# Just throw this in a Vagrant 1.1 Vagrantfile and you get the
# `vagrant fab` command that does what you expect. The command
# to run in fab should go after "--" in the command line, example:
#
# vagrant fab -- deploy:production
# vagrant fab -- -l
#
# Easy plugins. The future.
class Plugin < Vagrant.plugin("1")
name "fab"
@jboner
jboner / latency.txt
Last active May 5, 2024 03:12
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
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