Skip to content

Instantly share code, notes, and snippets.

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

StepBroBD stepbrobd

馃摗
F/KC1VZR
View GitHub Profile
@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 / 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>' \
# 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
@artizirk
artizirk / gnupg_scdaemon.md
Last active March 27, 2026 11:57
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

@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.