Skip to content

Instantly share code, notes, and snippets.

Avatar

Sébastien OUDRY seboudry

  • QuickSign
  • France / Paris
View GitHub Profile
@seboudry
seboudry / gcs-usage-logs-transfer-bigquery.tf
Last active Nov 20, 2020
Terraform code to configure GCS bucket usage logs and send them to BigQuery
View gcs-usage-logs-transfer-bigquery.tf
# Terraform code to configure GCS bucket usage logs and send them to BigQuery.
#
# References:
# * https://cloud.google.com/storage/docs/access-logs
# * https://cloud.google.com/bigquery-transfer/docs/cloud-storage-transfer
#
# Notes:
# * both resources must reside on same location
# * cloud_storage_usage_schema_v0.json comes from http://storage.googleapis.com/pub/cloud_storage_usage_schema_v0.json
@seboudry
seboudry / pluberrypi-shutdown-ir.md
Last active Apr 1, 2020
PluberryPi resource for shutdown and IR GPIOs
View pluberrypi-shutdown-ir.md
View terraform-gke-gpu-taint-crash.log
2018/10/19 19:18:34 [INFO] Terraform version: 0.11.8 7a5c1d221ac209bbac66947c369815cd9ca70ed5
2018/10/19 19:18:34 [INFO] Go runtime version: go1.10.1
2018/10/19 19:18:34 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2018/10/19 19:18:34 [DEBUG] Attempting to open CLI config file: /home/soudry/.terraformrc
2018/10/19 19:18:34 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/10/19 19:18:34 [INFO] CLI command args: []string{"apply"}
2018/10/19 19:18:34 [TRACE] Preserving existing state lineage "7ef5c5d8-fbc9-4301-766f-92895d2ecace"
2018/10/19 19:18:34 [TRACE] Preserving existing state lineage "7ef5c5d8-fbc9-4301-766f-92895d2ecace"
2018/10/19 19:18:34 [INFO] command: backend initialized: *gcs.Backend
2018/10/19 19:18:34 [DEBUG] checking for provider in "."
@seboudry
seboudry / keybase.md
Created May 6, 2018
keybase.io seboudry proof
View keybase.md

Keybase proof

I hereby claim:

  • I am seboudry on github.
  • I am seboudry (https://keybase.io/seboudry) on keybase.
  • I have a public key whose fingerprint is 3FA6 DFF3 4465 824A 0F6C D854 2E1D A0C2 FD3A 1B45

To claim this, I am signing this object:

View latency.markdown

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns                     on recent CPU
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 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns  = 250 µs           4X memory
You can’t perform that action at this time.