Skip to content

Instantly share code, notes, and snippets.

View brendanlim's full-sized avatar

Brendan G. Lim brendanlim

View GitHub Profile
@brendanlim
brendanlim / gist:c0d16323a70f1fce7255966befc09a39
Created June 11, 2025 23:01
ST12000VN0007-2GS116 / ZJV48BQJ
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.10.216-alpine-unas] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate IronWolf
Device Model: ST12000VN0007-2GS116
Serial Number: ZJV48BQJ
LU WWN Device Id: 5 000c50 0b54d7951
Firmware Version: SC60
User Capacity: 12,000,138,625,024 bytes [12.0 TB]
// .h
@interface AMPNavigationBar : UINavigationBar
@property (nonatomic, assign) CGFloat extraColorLayerOpacity UI_APPEARANCE_SELECTOR;
@end
// .m

Keybase proof

I hereby claim:

  • I am brendanlim on github.
  • I am brendan (https://keybase.io/brendan) on keybase.
  • I have a public key whose fingerprint is 0897 4C8C 4E8A 34C5 AA36 E279 5A78 C42A 8C24 1C2B

To claim this, I am signing this object:

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@brendanlim
brendanlim / latency.txt
Created August 6, 2012 00:14 — forked from jhclark/latency.txt
Latency numbers every programmer should know
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 1 MB sequentially from memory 250,000 ns 0.25 ms
Round trip within same datacenter 500,000 ns 0.5 ms
Read 1 MB sequentially from SSD 1,000,000 ns 1 ms 4X memory
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness