Skip to content

Instantly share code, notes, and snippets.

View philip-lamb's full-sized avatar

Philip Lamb philip-lamb

View GitHub Profile
@TrevorFSmith
TrevorFSmith / md
Last active February 1, 2022 07:09
Reading list topics for an informed metaverse discussion
# Metaverse reading list
## Society
Standards collaboration and governance
- Patents: protection, licensing
- Brands and trademarks
- Limited liability and warranty
- Consensus, competition, and conflicting goals
- Standards development processes
@cvan
cvan / oculusvr-video-setup.sh
Last active September 6, 2022 13:54
`adb` commands to call for capturing high-res videos on Oculus VR headsets
#!/bin/sh
# `adb` commands to call for capturing high-res videos on Oculus VR headsets
#
# Usage:
#
# curl https://gist.githubusercontent.com/cvan/54535a41db8a67d0370971f6e393675d/raw/c2183adf4bf0e85edc422a13599eba54e62ee473/video-setprop.sh > /tmp/oculusvr-video-setup.sh
# chmod +x /tmp/oculusvr-video-setup.sh
# ./tmp/oculusvr-video-setup.sh
#
// Each value can be set independently meaning you can change resolution without changing FPS and vice versa
// we default to(1024x1024 @ 60fps w/ 5000000 bitrate (5Mbps) in the absence of setprops
adb shell setprop debug.oculus.capture.width 1920
adb shell setprop debug.oculus.capture.height 1080
adb shell setprop debug.oculus.capture.fps 30
adb shell setprop debug.oculus.capture.bitrate 10000000
// You probably want to change the FOV to match the 1080p resolution as well:
adb shell setprop debug.oculus.eyeFovDown 39
adb shell setprop debug.oculus.eyeFovUp 38
adb shell setprop debug.oculus.eyeFovOutward 50
@jboner
jboner / latency.txt
Last active April 29, 2025 15:40
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