Skip to content

Instantly share code, notes, and snippets.

# This filter changes all words to Title Caps, and attempts to be clever
# about *un*capitalizing small words like a/an/the in the input.
# The list of "small words" which are not capped comes from
# the New York Times Manual of Style, plus 'vs' and 'v'.
# 10 May 2008
# Original version by John Gruber:


A GRUB_INIT_TUNE uses the following format: tempo [freq duration] [freq duration]…

  • tempo: is the base for all note durations in beats per minute, 60 gives a second base (60s/60 = 1s), 120 gives a half-second base, etc.
  • freq: is the frequency (in hertz) of the sound (set 0 to produce a rest)
  • duration: is the duration of the sound in beats

You can preview the tunes below with the standalone index.html included in this gist.

yunga / latency.txt
Created Feb 20, 2020 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
View latency.txt
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
View LinksHighlight.js
function linkHighlight() {
let colors = {
"HostBg": "#00F", "Host": "#FFF", "HostOut": "#000",
"DomainBg": "#808", "Domain": "#FFF", "DomainOut": "#000",
"OtherBg": "#F00", "Other": "#FFF", "OtherOut": "#000",
"WikiBg": "#FF0", "Wiki": "#000", "WikiOut": "#000",
let Hosts = {};
let Domains = {};
yunga / Powershell Rosetta
Last active Aug 21, 2021
Dos/Unix/Powershell Commands
View Powershell Rosetta

Powershell Rosetta Stone

[CMD] [Unix] [Powershell] Synopsis
HELP [man] [Get-Help] Displays information about commands and concepts.
[apropos] [Get-Command] Gets all commands.
[Show-Command] Displays PowerShell commands in a graphical window.
yunga / The Coding
Created Oct 22, 2019
Playlists and videos from The Coding Train youtube channel
yunga /
Created Oct 10, 2019 — forked from weibeld/
Reference example for using the Getopt::Std Perl module
use strict;
use warnings;
use feature qw(say);
use Getopt::Std;
# If set to true, exit script after processing --help or --version flags
our $VERSION = "0.1";
View yeet.cpp
#include <iostream>
#define yeet int
#define Yeet main
#define yEet std
#define yeEt cout
#define yeeT return
#define Yeeet (
#define yeeeT )
#define Yeeeet {
yunga / Windows Softwares
Last active Apr 6, 2019
Links to software, chocolatey packages,
View Windows Softwares

Windows Softwares Bookmarks

For a Chocolatey cheat sheet, see this gist.

Software Keywords Chocolatey Package OS
.NET Core SDK development