Skip to content

Instantly share code, notes, and snippets.

View eshack94's full-sized avatar
🔧

Elijah Shackelford eshack94

🔧
View GitHub Profile
@eshack94
eshack94 / latency.markdown
Created February 8, 2024 08:04 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@eshack94
eshack94 / kodekloud_course_decks.md
Created December 23, 2022 01:24 — forked from debakarr/kodekloud_course_decks.md
Course decks for KodeKloud
@eshack94
eshack94 / System Design.md
Created November 13, 2022 00:08 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@eshack94
eshack94 / tutorial.md
Created April 20, 2021 06:33 — forked from dhinakg/tutorial.md
iOS/iPadOS 14.3 OTA
const puppeteer = require("puppeteer");
const opn = require("opn");
const nodemailer = require("nodemailer");
const timeout = 5000;
const waitForTimeout = 1000;
const cartLink =
"https://store.nvidia.com/store/nvidia/en_US/buy/productID.5438481700/clearCart.yes/nextPage.QuickBuyCartPage";

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@eshack94
eshack94 / README.md
Created July 3, 2020 03:26 — forked from pdanford/README.md
Launching iTerm2 from macOS Finder

Launching iTerm2 from macOS Finder

(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)

The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.

pdanford - April 2020


@eshack94
eshack94 / generate-ssh-key.sh
Created June 4, 2020 23:07 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@eshack94
eshack94 / tmux-cheatsheet.markdown
Created May 29, 2020 04:13 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@eshack94
eshack94 / sed cheatsheet
Created May 8, 2020 18:09 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'