View uri-lati-dl.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#! nix-shell -i bash -p yt-dlp | |
# | |
# Download shiur from [Rabbi Uri Lati's YouTube channel](https://www.youtube.com/@UriLati) and convert it into something | |
# [my phone's podcast player](https://www.kaiostech.com/store/apps/?bundle_id=com.kaiostech.podkast) can use | |
usage () { | |
echo "USAGE:" | |
echo "uri-lati-dl.sh <url>" | |
} |
View php-macros.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Boilerplate for PHP class | |
let @p='i%dawO<?" | |
onamespaceJ:s~Äku | |
/wdf\....~AÄkb {}F\s; | |
class ' | |
# Turn a test name comment into a snake-cased class method (PHPUnit) | |
let @t=':s#[^/ ]\zs #_#g | |
^ciwpublic functionA()o{ |
View tabTimer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { let minutes = parseInt(prompt("How many minutes?", "15")); setTimeout(() => document.body.innerHTML = '', minutes * 60 * 1000); })() |