add initial content (home, about-{natalie,site}, its-laptop)

This commit is contained in:
2025-05-07 17:17:37 -07:00
parent 1faa6dad4f
commit 895e296f1a
47 changed files with 903 additions and 0 deletions

11
www/src/scripts/execute-bash Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env hy
;; vim: filetype=hy
(import sys [argv])
(import re [sub])
(import os [environ :as hy-env])
(import subprocess [check-output])
(setv env hy-env)
(setv (get env "PATH") (+ (get hy-env "PATH") ":./scripts"))
(print (sub r"\$\[(.*?)\]" (fn [sequence] (. (check-output (.group sequence 1) :shell True :executable "/bin/bash" :env env) (decode) (strip))) (with [fp (open (get argv 1) "r")] (.read fp))))