Skip to content

Instantly share code, notes, and snippets.

View livelace's full-sized avatar
🇷🇺

Oleg "livelace" Popov livelace

🇷🇺
View GitHub Profile
@jboner
jboner / latency.txt
Last active July 15, 2024 21:27
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
@maxvt
maxvt / infra-secret-management-overview.md
Last active July 5, 2024 13:01
Infrastructure Secret Management Software Overview

Currently, there is an explosion of tools that aim to manage secrets for automated, cloud native infrastructure management. Daniel Somerfield did some work classifying the various approaches, but (as far as I know) no one has made a recent effort to summarize the various tools.

This is an attempt to give a quick overview of what can be found out there. The list is alphabetical. There will be tools that are missing, and some of the facts might be wrong--I welcome your corrections. For the purpose, I can be reached via @maxvt on Twitter, or just leave me a comment here.

There is a companion feature matrix of various tools. Comments are welcome in the same manner.

@roycewilliams
roycewilliams / hashcat-opencl-memory-allocatable.txt
Last active July 26, 2019 19:07
hashcat-opencl-memory-allocatable.txt
#----------------------------------------------------------------------
# Survey of known allocatable memory as reported to hashcat by OpenCL.
# Varies by OpenCL runtime family (NVIDIA, AMD, Intel, pocl, etc.) and version.
# Triggered by curiosity about OpenCL maximum memory allocation.
# Compiled by Royce Williams / @tychotithonus
# As referenced in https://devtalk.nvidia.com/default/topic/992502/cuda-programming-and-performance/why-is-cl_device_max_mem_alloc_size-never-larger-than-25-of-cl_device_global_mem_size-only-on-nvidia-/
#
# Please send new entries (even with minor variations) to royce@techsolvency.com
#----------------------------------------------------------------------
# Commentary:
@docwhat
docwhat / Jenkinsfile
Last active December 16, 2023 13:53
Example pipeline usage of the Jenkins Mask Passwords plugin
// Requires https://plugins.jenkins.io/mask-passwords to run
/**
* Runs code with secret environment variables and hides the values.
*
* @param varAndPasswordList - A list of Maps with a 'var' and 'password' key. Example: `[[var: 'TOKEN', password: 'sekret']]`
* @param Closure - The code to run in
* @return {void}
*/
def withSecretEnv(List<Map> varAndPasswordList, Closure closure) {