Skip to content

Instantly share code, notes, and snippets.

View wolpert's full-sized avatar
☣️
Working on a (non-open source) game

Ned Wolpert wolpert

☣️
Working on a (non-open source) game
View GitHub Profile
@wolpert
wolpert / backup.sh
Created October 11, 2025 14:57
Backup of X=5 number of files. BSD and Linux compat
#!/usr/bin/env bash
EXT=".bak."
if [ -z "$1" ] || [ ! -f "$1" ]; then
echo "Usage: $0 <file> [max_backups]"
exit 1
fi
file="$1"
@wolpert
wolpert / openpgp.md
Last active November 25, 2022 02:39