Skip to content

Instantly share code, notes, and snippets.

View nuttingd's full-sized avatar
🛹

David Nutting nuttingd

🛹
  • Portland, Oregon, USA
  • 15:47 (UTC -07:00)
View GitHub Profile
@nuttingd
nuttingd / answerfile
Created September 24, 2021 05:26 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@nuttingd
nuttingd / actionlist.vim
Created November 2, 2020 22:44 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@nuttingd
nuttingd / standard.sh
Created June 30, 2020 16:01 — forked from hfossli/standard.sh
Standard bash script format
#!/bin/bash
CLEAR='\033[0m'
RED='\033[0;31m'
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}👉 $1${CLEAR}\n";
fi
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]"
@nuttingd
nuttingd / keybase.md
Created March 18, 2020 03:35
Keybase proof of ownership

Keybase proof

I hereby claim:

  • I am nuttingd on github.
  • I am nuttingd (https://keybase.io/nuttingd) on keybase.
  • I have a public key ASA6_M0PHFegzwCmlhP8T4LTGcPT8nEMIRDWFfwq64JKowo

To claim this, I am signing this object:

@nuttingd
nuttingd / latency.txt
Created December 16, 2015 17:48 — 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
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms