Skip to content

Instantly share code, notes, and snippets.

View madaramefarrell's full-sized avatar

笑笑 madaramefarrell

View GitHub Profile
@madaramefarrell
madaramefarrell / latency.txt
Created June 26, 2025 03:13 — forked from jboner/latency.txt
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

這篇用來記錄工作之後開始使用的一些 django packages 跟一些常用的小技巧,雖然說是小技巧,但其實都有寫在 django document 上,當發現使用 django 有疑慮時,直接去翻 django documuent 也是一個作法。

勉強可以算上目錄的東西

Packages

  1. django-storage
  2. django-dbbackup
  3. django-reset-migrations
  4. django-crontab
  5. django-celery
@madaramefarrell
madaramefarrell / postgres-brew.md
Created April 6, 2020 17:21 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update