Skip to content

Instantly share code, notes, and snippets.

View kirk86's full-sized avatar

kirk86

View GitHub Profile
@kirk86
kirk86 / latency.txt
Created April 5, 2016 23:53 — 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
@kirk86
kirk86 / tmux.md
Created October 29, 2015 19:39 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

Emacs cheatsheet

  • C-x C-c End emacs session
  • C-g Partially quit entered command

  • C-v Move forward one screenful
  • M-v Move backward one screenful
  • C-l Move the text around the cursor to the center of the screen. Also, it clears the screen and redisplay all the text
@kirk86
kirk86 / git_cheatsheet.md
Created October 29, 2015 19:25 — forked from leommoore/git_cheatsheet.md
Git - Cheatsheet

#Git - Cheatsheet

###Create Repo git init

###Fork (Copy) existing Repo git clone repo name

###Branching You should create a branch per feature. Create a branch.

@kirk86
kirk86 / bash-cheatsheet
Created October 29, 2015 19:24 — forked from ktychan/bash-cheatsheet
cheatsheets
____ _ ____ _ _ ____ _ _ _ _
| __ ) / \ / ___|| | | | / ___| |__ ___ __ _| |_ ___| |__ ___ ___| |_
| _ \ / _ \ \___ \| |_| | | | | '_ \ / _ \/ _` | __/ __| '_ \ / _ \/ _ \ __|
| |_) / ___ \ ___) | _ | | |___| | | | __/ (_| | |_\__ \ | | | __/ __/ |_
|____/_/ \_\____/|_| |_| \____|_| |_|\___|\__,_|\__|___/_| |_|\___|\___|\__|
kelvinchan.ca
Comparison
==========
@kirk86
kirk86 / Cheatsheet Tmux.md
Created October 29, 2015 19:23 — forked from RoXuS/Cheatsheet Tmux.md
Cheatsheet

vim cheatsheet

Delete newline

J

Go to require:

gf

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

bash cheatsheet

some stuff I still need to memorize

c-a move to beginning of line
@kirk86
kirk86 / cheatsheet.md
Created October 29, 2015 19:21 — forked from ansantam/cheatsheet.md
Cheatsheet

Bash

Checkout a specific version

svn co <url> -r version

Redirect all the verbose to the /dev/null file.

The null device discards all data written to it but reports that the write operation has succeeded. Typically used for disposing of unwanted output streams of a process: