Skip to content

Instantly share code, notes, and snippets.

View jpignata's full-sized avatar

John Pignata jpignata

View GitHub Profile

mwrc 5k 2013 results

bib name time
126 David Collins 20:43
116 Ronny Bjarnason 21:03
118 Jon Jensen 21:28
122 Ben Mabey 22:30
109 Rick Hansen 23:42
121 Alex Kovshovik 25:11
@jboner
jboner / latency.txt
Last active May 23, 2024 06:51
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
@todb
todb / cpill.rb
Last active October 3, 2015 17:08
CyanidePill -- poison your own DNS
#!/usr/bin/env ruby
# Note, this must be run as root, and is super dangerous.
# You should not use it. It was written in about 75 minutes total.
# Copyright (c) 2012 Tod Beardsley
# Licensed under the Ruby license.
require 'packetfu'
require 'net/dns'
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@nakajima
nakajima / fliptable.rb
Created January 24, 2012 00:40
¯\_(ツ)_/¯
#!/usr/bin/env ruby
flips = [
'(╯°□°)╯︵ ┻━┻',
'(ノಥ益ಥ)ノ ┻━┻',
'┬──┬ ¯\_(ツ)',
'┻━┻ ︵ヽ(`Д´)ノ︵ ┻━┻',
'┻━┻ ︵ ¯\(ツ)/¯ ︵ ┻━┻',
'┬─┬ノ( º _ ºノ)',
'(ノಠ益ಠ)ノ彡┻━┻'
#!/usr/bin/env ruby
require "rubygems"
require "eventmachine"
$search_terms = ARGV
if $search_terms.empty?
puts "Hey now, add some search terms for your buckets."
exit 1
end