File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,10 +6,17 @@ Set Height 720
66Set Theme "Catppuccin Mocha"
77Set TypingSpeed 50ms
88
9- Type "# ChainForge · smart contracts and audits" Enter
9+ Hide
10+ Type "source demos/vhs/sanitize-recording-env.sh" Enter
11+ Sleep 400ms
12+ Show
13+
14+ Type "# ChainForge - smart contracts and audits" Enter
1015Sleep 600ms
1116
1217Hide
18+ Type "source demos/vhs/sanitize-recording-env.sh" Enter
19+ Sleep 300ms
1320Type "python3 scripts/validate_profile.py ." Enter
1421Sleep 5s
1522Type "head -16 SOUL.md" Enter
2027
2128Type "hermes profile install github.com/codegraphtheory/chainforge --name chainforge --yes" Enter
2229Sleep 4s
23- Type "# Security-first profile · validate before you ship" Enter
30+ Type "# Security-first profile - validate before you ship" Enter
2431Sleep 3s
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # Public-safe shell identity for VHS terminal recordings.
3+ set -euo pipefail
4+ _VHS_SANITIZE_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
5+ _REPO_ROOT=" $( cd " $_VHS_SANITIZE_DIR /../.." && pwd) "
6+
7+ export VHS_RECORDING=1
8+ export HOME=" $_REPO_ROOT /demos/vhs/staging/home/graphtheory"
9+ export USER=graphtheory
10+ export LOGNAME=graphtheory
11+ export HOSTNAME=cyber
12+
13+ mkdir -p " $HOME /users/graphtheory/projects"
14+ _WORKSPACE=" $HOME /users/graphtheory/projects/$( basename " $_REPO_ROOT " ) "
15+ ln -sfn " $_REPO_ROOT " " $_WORKSPACE "
16+
17+ export PS1=' graphtheory@cyber:~/users/graphtheory/projects/' " $( basename " $_REPO_ROOT " ) " ' $ '
18+ export PROMPT_COMMAND=
19+ cd " $_WORKSPACE "
20+
21+ if [[ -f " $_VHS_SANITIZE_DIR /env.sh" ]]; then
22+ # shellcheck source=env.sh
23+ source " $_VHS_SANITIZE_DIR /env.sh"
24+ else
25+ export REPO_ROOT=" $_REPO_ROOT "
26+ fi
Original file line number Diff line number Diff line change 1+ literal:/Users/graphtheory==>/Users/graphtheory
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # Remove demo media (and optional path replacements) from entire git history.
3+ set -euo pipefail
4+ ROOT=" $( cd " $( dirname " $0 " ) /.." && pwd) "
5+ cd " $ROOT "
6+
7+ if ! command -v git-filter-repo > /dev/null 2>&1 ; then
8+ echo " Install: python3 -m pip install git-filter-repo" >&2
9+ exit 1
10+ fi
11+
12+ ORIGIN=" "
13+ git remote get-url origin > /dev/null 2>&1 && ORIGIN=" $( git remote get-url origin) "
14+
15+ INVERT=()
16+ [[ -e demos/demo.gif ]] && INVERT+=(--path demos/demo.gif)
17+ [[ -d demos/vhs/out ]] && INVERT+=(--path demos/vhs/out)
18+ [[ -d assets/demos ]] && INVERT+=(--path assets/demos)
19+
20+ if (( ${# INVERT[@]} > 0 )) ; then
21+ echo " filter-repo: removing demo blobs from all commits"
22+ git filter-repo --invert-paths " ${INVERT[@]} " --force
23+ [[ -n " $ORIGIN " ]] && git remote add origin " $ORIGIN "
24+ fi
25+
26+ if [[ -f filter-repo-replacements.txt ]]; then
27+ echo " filter-repo: replace-text from filter-repo-replacements.txt"
28+ git filter-repo --replace-text filter-repo-replacements.txt --force
29+ [[ -n " $ORIGIN " ]] && git remote add origin " $ORIGIN "
30+ fi
31+
32+ echo " History rewrite complete. Add clean demos, commit, then:"
33+ echo " git push --force-with-lease origin main"
You can’t perform that action at this time.
0 commit comments