Skip to content

Instantly share code, notes, and snippets.

View livelace's full-sized avatar
🇷🇺

Oleg "livelace" Popov livelace

🇷🇺
View GitHub Profile
@docwhat
docwhat / Jenkinsfile
Last active May 1, 2025 02:03
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) {
@roycewilliams
roycewilliams / hashcat-opencl-memory-allocatable.txt
Last active August 6, 2025 01:02
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 originally 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-/
# Updated URL 2025: https://forums.developer.nvidia.com/t/why-is-cl-device-max-mem-alloc-size-never-larger-than-25-of-cl-device-global-mem-size-only-on-nvidia/47745
#
# Please send new entries (even with minor variations) to royce@techsolvency.com
#----------------------------------------------------------------------
@maxvt
maxvt / infra-secret-management-overview.md
Last active April 21, 2026 19:07
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.

@ssproessig
ssproessig / Program.cs
Created July 15, 2014 13:22
Sparx Systems Enterprise Architect: Export diagram to a file
using System;
namespace ea_export_diagram
{
class Program
{
static int Main()
{
// ...should be taken from command-line arguments btw...
@jboner
jboner / latency.txt
Last active July 14, 2026 15:18
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