Skip to content

Instantly share code, notes, and snippets.

View myeung18's full-sized avatar

Marco Yeung myeung18

  • Red hat Inc.
  • Boston
View GitHub Profile
@myeung18
myeung18 / gist:454d62a9ecc08b5cd952ce0485fbaa28
Created November 9, 2021 20:46
c.KubeSpawner.extra_containers causes "Error in Authenticator.pre_spawn_start: TypeError 'NoneType' "
---> Running application from script (/opt/app-root/builder/run) ...
+ trap 'kill -TERM $PID' TERM INT
+ PID=36
+ wait 36
+ start-jupyterhub.sh
+ set -eo pipefail
+ PATH=/opt/app-root/bin:/opt/rh/rh-python36/root/usr/bin:/opt/rh/rh-nodejs10/root/usr/bin:/opt/rh/httpd24/root/usr/bin:/opt/rh/httpd24/root/usr/sbin:/opt/app-root/src/.local/bin/:/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/app-root/scripts
+ . /opt/app-root/etc/jupyterhub_config.sh
++ '[' x '!=' x ']'
++ '[' -f /opt/app-root/src/.jupyter/jupyterhub_config.sh ']'
@myeung18
myeung18 / latency.txt
Created September 16, 2018 14:52 — 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