Skip to content

Instantly share code, notes, and snippets.

View stepbrobd's full-sized avatar
馃摗
F/KC1VZR

StepBroBD stepbrobd

馃摗
F/KC1VZR
View GitHub Profile
@mculp
mculp / voices.txt
Created December 3, 2014 00:14
List of voices available by the `say` command on OS X
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Alva sv_SE # Hej, jag heter Alva. Jag 盲r en svensk r枚st.
Amelie fr_CA # Bonjour, je m鈥檃ppelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich hei脽e Anna und ich bin eine deutsche Stimme.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
Bahh en_US # Do not pull the wool over my eyes.
Bells en_US # Time flies when you are having fun.
@artizirk
artizirk / gnupg_scdaemon.md
Last active December 3, 2025 10:52
OpenPGP SSH access with Yubikey and GnuPG

NB: This document describles a 'Old-School' way of using Yubikey with SSH

Modern OpenSSH has native support for FIDO Authentication. Its much simpler and should also be more stable with less moving parts. OpenSSH also now has support for signing arbitary files witch can be used as replacement of gnupg. Git also supports signing commits/tags with ssh keys.

Pros of FIDO

  • Simpler stack / less moving parts
  • Works directly with ssh, ssh-add and ssh-keygen on most computers
  • Simpler
  • Private key can never leave the FIDO device

Cons of FIDO

# Instructions for fresh install
$ sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon
# reboot
$ source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
$ echo 'export NIX_PATH=darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH' | tee -a ~/.zshrc
$ echo 'source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh' | tee -a ~/.zshrc
$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
$ nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
@stepbrobd
stepbrobd / m3u8.sh
Last active October 5, 2023 15:17
download m3u8 stream to mp4 with ffmpeg
#!/bin/bash
set -exuo pipefail
ffmpeg \
-v debug \
-headers $'Connection: Keep-Alive\r\n' \
-headers $'User-Agent: <user agent>\r\n' \
-headers $'Cookie: key1=value1; key2=value2\r\n' \
-i 'https://<target m3u8 URL>' \
@stepbrobd
stepbrobd / spin.sh
Last active October 5, 2023 15:18
install spin and ispin
#!/bin/bash
set -exuo pipefail
git clone --depth 1 https://github.com/nimble-code/spin.git ~/.spin
pushd ~/.spin
make
ln -fsv ~/.spin/Src/spin /usr/local/bin/spin
@stepbrobd
stepbrobd / wallpaper.py
Last active October 5, 2023 15:27
download macos wallpapers
#!/usr/bin/env python3
import plistlib
import requests
from urllib.request import urlretrieve
def xml(url: str) -> list[str]:
result = []
@stepbrobd
stepbrobd / infect-ec2.sh
Last active December 23, 2023 23:27
ec2 nixos-infect
#! /usr/bin/env bash
# More info at: https://github.com/elitak/nixos-infect
set -e -o pipefail
makeConf() {
# Skip everything if main config already present
[[ -e /etc/nixos/configuration.nix ]] && return 0
@zhuowei
zhuowei / _header.txt
Last active December 5, 2025 11:07
Counting number of top iPad apps marked as available on visionOS
Business, Free: 71/100
Business, Paid: 84/100
Weather, Free: 92/100
Weather, Paid: 89/100
Utilities, Free: 75/100
Utilities, Paid: 77/100
Travel, Free: 89/100
Travel, Paid: 86/100
Sports, Free: 78/100
Sports, Paid: 77/100
@stepbrobd
stepbrobd / nixbuild.nix
Last active June 2, 2024 20:40
distributed build with nixbuild.net for nix-darwin
let
nixbuildDomain = "eu.nixbuild.net";
nixbuildKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM";
nixbuildPlatforms = [ "x86_64-linux" "aarch64-linux" ];
nixbuildFeatures = [ "big-parallel" "benchmark" "kvm" "nixos-test" ];
nixbuildSSH = ''
Host eu.nixbuild.net
PubkeyAcceptedKeyTypes ssh-ed25519
ServerAliveInterval 60
IPQoS throughput
@stepbrobd
stepbrobd / theme.typ
Created May 24, 2024 06:19
polylux simple theme with page number
#import "@preview/polylux:0.3.1": *
#import themes.simple: *
#import logic
#let simple-footer = state("simple-footer", [])
#let simple-theme(
aspect-ratio: "16-9",
footer: [],
background: white,