Skip to content

Commit e71d3fd

Browse files
committed
security: sanitized demos and README path fix
1 parent 50414e1 commit e71d3fd

4 files changed

Lines changed: 29 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ open http://127.0.0.1:4173/
1818
## Files
1919

2020
- `index.html`: landing page with embedded CSS and no build step.
21-
- `assets/graphtheory-profile.webp`: optimized hero image derived from `/Users/grey/Downloads/IMG_6295.jpg`.
21+
- `assets/graphtheory-profile.webp`: optimized hero image (local source file not committed).
2222
- `assets/demos/*.gif`: 30s VHS terminal demos synced from project repos (`scripts/sync_demo_gifs.sh`).
2323
- `assets/og-image.png`: 1200x630 share card.
2424
- `assets/favicon.svg`, `assets/favicon.png`, `assets/apple-touch-icon.png`, `assets/site.webmanifest`: identity assets.

demos/vhs/demo-30s.tape

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Type "ls assets" Enter
1414
Sleep 3s
1515

1616
Hide
17+
Type "source demos/vhs/sanitize-recording-env.sh" Enter
18+
Sleep 300ms
1719
Type "python3 -m http.server 4173 >/tmp/gt-demo-http.log 2>&1 &" Enter
1820
Sleep 1s
1921
Type "curl -s http://127.0.0.1:4173/ | head -20" Enter
@@ -25,4 +27,4 @@ Show
2527
Type "# Zero build step · python3 -m http.server 4173" Enter
2628
Sleep 3s
2729
Type "open https://graphtheory.xyz/" Enter
28-
Sleep 3s
30+
Sleep 3s
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env bash
2+
# Public-safe shell identity for VHS terminal recordings.
3+
# Sources demos/vhs/env.sh after setting HOME/USER (real repo paths stay on disk).
4+
set -euo pipefail
5+
_VHS_SANITIZE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
6+
_REPO_ROOT="$(cd "$_VHS_SANITIZE_DIR/../.." && pwd)"
7+
8+
export VHS_RECORDING=1
9+
export HOME="$_REPO_ROOT/demos/vhs/staging/home/graphtheory"
10+
export USER=graphtheory
11+
export LOGNAME=graphtheory
12+
export HOSTNAME=cyber
13+
14+
mkdir -p "$HOME/users/graphtheory/projects"
15+
_WORKSPACE="$HOME/users/graphtheory/projects/$(basename "$_REPO_ROOT")"
16+
ln -sfn "$_REPO_ROOT" "$_WORKSPACE"
17+
18+
export PS1='graphtheory@cyber:~/users/graphtheory/projects/'"$(basename "$_REPO_ROOT")"'$ '
19+
export PROMPT_COMMAND=
20+
21+
cd "$_WORKSPACE"
22+
23+
# shellcheck source=env.sh
24+
source "$_VHS_SANITIZE_DIR/env.sh"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/grey/Projects/codegraphtheory.github.io

0 commit comments

Comments
 (0)