Skip to content

Instantly share code, notes, and snippets.

View HammerMeetNail's full-sized avatar

Dave O'Connor HammerMeetNail

View GitHub Profile
@HammerMeetNail
HammerMeetNail / S3-Static-Sites.md
Created October 29, 2020 02:55 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources

Keybase proof

I hereby claim:

  • I am HammerMeetNail on github.
  • I am djo3 (https://keybase.io/djo3) on keybase.
  • I have a public key whose fingerprint is 42F5 C8BC 4006 A203 9DD0 0D92 BD27 A24D 39BA BA55

To claim this, I am signing this object:

@HammerMeetNail
HammerMeetNail / latency.txt
Created May 31, 2012 13:50 — forked from jboner/latency.txt
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
Send 2K bytes over 1 Gbps network 20,000 ns
Read 1 MB sequentially from memory 250,000 ns
Round trip within same datacenter 500,000 ns
Disk seek 10,000,000 ns