Skip to content

Instantly share code, notes, and snippets.

View skhokhlov's full-sized avatar

Sergey Khokhlov skhokhlov

View GitHub Profile
@peter-leonov
peter-leonov / bomb.sh
Last active November 22, 2019 03:46
docker fork bomb
docker run ruby ruby -e 'loop { fork { fork { sleep 0.1 } } }'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""" Plugins """"""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""" Utility
" The NERD tree : A tree explorer plugin for navigating the filesystem
" http://www.vim.org/scripts/script.php?script_id=1658
"
" The NERD Commenter : A plugin that allows for easy commenting of code for many filetypes.
" http://www.vim.org/scripts/script.php?script_id=1218
"
@ahushh
ahushh / yoba.pl
Created December 17, 2014 11:28
yoba
use v5.16;
use File::Copy qw/move copy/;
my $f = 'yoba';
my $t = 'yoba2';
my @queue = ($f, $t);
while (@queue) {
my $from = shift @queue;
@CyberShadow
CyberShadow / .gitignore
Last active November 19, 2022 04:49
"Game About Squares" solver and solutions
/solve
*.exe
*.ilk
*.pdb
*.s
*.obj
@jboner
jboner / latency.txt
Last active July 15, 2025 00:14
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