diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-02 17:23:14 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-02 17:23:14 +0300 |
| commit | 3b20f2c4d16c7b7f583e9ab2b51213e9ddc94fd5 (patch) | |
| tree | eacf06f08dc885bbac499b5dbe318fb7ff2e23d5 /demo/scripts/sudo-keepalive.sh | |
| parent | 0528557ee9f14ed292de49be09e65b8662185c38 (diff) | |
add demo sources: VHS tapes, helper scripts, and tutorial
Tracks the inputs that drive `mage demo` so the GIFs and screenshots
under demo/assets/ can be reproduced from a checkout. The generated
assets themselves (~50 MB of GIFs and PNGs) are excluded via gitignore
since they're fully reproducible from the tapes in ~10 min.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'demo/scripts/sudo-keepalive.sh')
| -rwxr-xr-x | demo/scripts/sudo-keepalive.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/demo/scripts/sudo-keepalive.sh b/demo/scripts/sudo-keepalive.sh new file mode 100755 index 0000000..4ae1e27 --- /dev/null +++ b/demo/scripts/sudo-keepalive.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Refreshes the sudo timestamp every minute so a long demo regen never trips a +# password prompt. Intended to be backgrounded by `mage demo` and killed at the +# end of the run. + +set -u + +trap 'exit 0' TERM INT + +while true; do + sudo -n true 2>/dev/null || exit 1 + sleep 60 +done |
