Skip to content

Instantly share code, notes, and snippets.

View opensaucerer's full-sized avatar
🍀
1 Thessalonians 4:11-12 — 🍀 busy doing juju?

Perfection Loveday opensaucerer

🍀
1 Thessalonians 4:11-12 — 🍀 busy doing juju?
View GitHub Profile
@opensaucerer
opensaucerer / hls.sh
Created November 25, 2024 07:22 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@evanwill
evanwill / gitBash_windows.md
Last active September 14, 2025 10:43
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@drwasho
drwasho / Install IPFS from Source in Windows.md
Last active June 3, 2024 09:59
How to install IPFS from source in Windows

Install IPFS in Windows

Install Go

  • Head to the download website
  • Click the latest version and download the .msi file

Create Paths

  • Create GOROOT system variable if it doesn't exist in C:\Go
@jboner
jboner / latency.txt
Last active October 27, 2025 08:38
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