justinahampton.com and its subdomains
justinahamptonstatic-sitedeployrsyncapache
justinahampton.com is Justin's personal site: a terminal-style landing page plus a "fun side" (fun.sys) that collects games, simulations and experiments, most of them built by ProcrastinAI. Repo ~/dev/justinahampton (git, no remote; commits stay local). Served from the Alma 9 server at /var/www/html/justinahampton/public_html/ behind nginx and Apache (nginx in front of Apache (TLS proxy on :8008)).
Since 2026-10-30 its tools have moved out to their own *.jhampton.io subdomains: the 3D print site and the video site are now 3d.jhampton.io and videos.jhampton.io (the old hosts 301), the encyclopedia is wiki.jhampton.io, and the umlol playground is umlol.jhampton.io, still listed on fun.sys / experiments (jhampton.io: one home domain, an index, and a wildcard certificate). justinahampton.com itself stays the public personal site.
Not to be confused with justinandrewhampton.com (repo ~/dev/jah): a separate one-page static title page, moved from the old server to the Alma 9 server on 2026-10-22 (Moving a website to a new server without downtime).
Map of the site
/fun/(fun.sys): a menu of categories, each a card-index page with the same shell (crumb, gradient title, Esc goes back)./fun/arcade/: browser games grouped by mood into native<details>groups (the classics, twitch, turns); fold state remembered inlocalStorage['jah-arcade-folds']. A new cabinet is one<a class="cab">in the right group plus a bump of the literal count./fun/freetime/: what the AI built when told "free time, do whatever you want". One card per product, newest first, a 480x300thumb.jpg, meta line "date · tldr post # · duration". See Emergent-systems simulations: models, parameters and measured results./fun/experiments/: tutorials and bigger experiments (the forward_static_call PHP tutorial, Archipelago: Voyages, the chaos game at/triangle/)./experiments/redirects there./gbs/: "Pi & Mighty", a playable GB Studio tutorial (GB Studio on a Raspberry Pi 4 (facts for making Game Boy games)).- 3d.jhampton.io: print-file library and parametric template maker, own vhost (3d.jhampton.io (print library and parametric template maker)).
- videos.jhampton.io: private video site, own vhost (videos.jhampton.io (private video site architecture)).
The terminal landing page (techniques)
The front page is a full-screen fake terminal: green phosphor (#35ff9e) on near-black, CRT
scanlines, glow and flicker, a CRT power-on animation, and mac-style window chrome. Reusable
pieces:
- A neofetch-style boot card (figlet ASCII logo plus a justin@hampton info block), then an
auto-typed ls projects/, then a live prompt.
- A mini-shell: a run() switch over commands (help, ls, open <name> opening a project
in a new tab, about, whoami, contact, fun, banner, history, clear/Ctrl+L, joke
sudo, echo, date, exit), Up/Down history, and tab completion over commands and
project names that cycles through multiple matches.
- Skippable boot (any key or tap), prefers-reduced-motion honored, fluid type with
clamp(), 100vh then 100dvh height (CSS layout gotchas on phones).
- Use the native caret with caret-color instead of a fake cursor span; a flex: 1 input
pushes a trailing span to the far right edge.
- The contact command links to a contact form rather than publishing an email address.
- The fun hub responds to the Konami code (Up Up Down Down Left Right Left Right B A) with a
hue-rotate animation.
Not the same site as hampton.website
hampton.website (repo ~/dev/hampton-website, an Angular page whose one must-keep feature is a
contact form that emails Justin) is a separate site with its own vhost, docroot and decisions,
even though the names are similar and the old server once held both. Sessions have conflated
them twice; treat any change to the other site as a scope change to confirm.
Conventions
- Pages are static HTML and plain JS, no frameworks or bundlers; games are single files or unbundled ES modules. Each product exposes a test hook (
window.X) and has a headless harness undertests/<name>/run.sh(Test harnesses for browser canvas games and simulations). - Scripts carry
?v=Ncache stamps; ES-module game directories get ano-cacheDirectory rule in the vhost (Caching static sites and unbundled ES modules (?v= stamps, no-cache, prefetch)). - Thumbnails: a headless screenshot with
?ui=0(hide the panel) and a warm-up parameter, cropped and resized to 480x300 with PIL. - Phone layout verified in a 390 px iframe (headless windows cannot go that narrow).
Deploying
./deploy.shrsyncs the tree without--delete(the docroot holds server-only content).- When the working tree carries someone else's uncommitted work (for months it held a Joyride work-in-progress), use a scoped rsync of exactly the changed paths:
rsync -a --relative public_html/./fun/index.html public_html/./fun/freetime/<slug> justin@45.79.9.71:/var/www/html/justinahampton/public_html/. Rsyncing straight into the docroot (no /tmp hop) keeps the SELinux typehttpd_sys_content_t. See Deploy scripts with rsync (patterns and traps). - Subdomains have their own deploy scripts (
tools/deploy-3d.sh,tools/deploy-videos.sh). - Commit finished, verified work in the same turn without being asked; do not push. "Deployed" and "committed" are separate (rsync vs git history); Justin reads "deployed" as "finished", so say plainly which happened.
- Worktrees are not used in this repo (decided 2026-09-06): deploy.sh rsyncs the checkout, gitignored secrets do not follow a worktree, and server state is shared anyway. Commit directly on master.
See also
- videos.jhampton.io (private video site architecture)
- 3d.jhampton.io (print library and parametric template maker)
- Long autonomous AI builds (vacation runs and scheduled free time)
Linked from
- Caching static sites and unbundled ES modules (?v= stamps, no-cache, prefetch)
- GB Studio on a Raspberry Pi 4 (facts for making Game Boy games)
- jhampton.io: one home domain, an index, and a wildcard certificate
- Justin's standing rules for anything built for him
- Long autonomous AI builds (vacation runs and scheduled free time)
- PHP late static binding and forward_static_call()
- videos.jhampton.io (private video site architecture)