ref: 6b28f86cc43acdc046a2c2fe0e24d5ca96a6d3e7
parent: 39194eb8a9f2b61a2238bb678c069f7a1cbc07ba
author: halfwit <me@hlfw.ca>
date: Wed Aug 21 18:51:51 PDT 2024
More work on things
--- a/common.rc
+++ b/common.rc
@@ -108,10 +108,10 @@
<head>
<style type="text/css">
body{
- padding: 3em;
+ padding: 3rem;
margin: auto;
- min-width: min(95vw, 50em);
- width: min-content;
+ width: 95%;
+ max-width: 1114px;
font-family: sans-serif;
tab-space: 8;
}
@@ -118,7 +118,7 @@
@media (prefers-color-scheme: dark){
body{
- background-color: #111;
+ background-color: #333;
color: #eee;
}
}
@@ -133,6 +133,10 @@
h3{
font-size: 1em;
color: #4c4c99;
+ }
+
+ a{
+ padding: 1rem;
}
#code{
--- a/config.rc
+++ b/config.rc
@@ -1,6 +1,7 @@
title=hlfw
host=hlfw.ca
logo=hlfw.png
+repo=site/hlfw
intro='
<h1>Code</h1>
binary files /dev/null b/favicon.ico differ
--- a/gitrules
+++ b/gitrules
@@ -1,15 +1,16 @@
-/index.html /bin/hlfw/list /usr/git
-([^'/]+)/usr.html /bin/hlfw/usr /usr/git '\1'
-(/.well-known/acme-challenge/([^'/]+)) /bin/cat /usr/web/\1
-([^'/]+)/static /bin/cat /usr/web/\1
-([^'/]+)/([^'/]+)/([^'/]+)/info.html /bin/hlfw/info /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+)/([^'/]+)/files.html /bin/hlfw/files /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+)/([^'/]+)/branches.html /bin/hlfw/branches /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+)/([^'/]+)/snap.tar.gz /bin/hlfw/tar /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+)/([^'/]+)/(([^']+)/)?f.html /bin/hlfw/view /usr/git '\1' '\2' '\3' '\5'
-([^'/]+)/([^'/]+)/([^'/]+)/(([^']+)/)?raw /bin/hlfw/viewraw /usr/git '\1' '\2' '\3' '\5'
-([^'/]+)/([^'/]+)/([^'/]+)/log.html /bin/hlfw/log /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+)/([^'/]+)/commit.html /bin/hlfw/show /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+)/([^'/]+)/_patch /bin/hlfw/patch /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+)/([^'/]+)/feed.rss /bin/hlfw/feed /usr/git '\1' '\2' '\3'
-([^'/]+)/([^'/]+) /bin/hlfw/clone /usr/git '\1' '\2'
+/git/index.html /bin/hlfw/list /usr/git
+/git/([^'/]+)/usr.html /bin/hlfw/usr /usr/git '\1'
+(/.well-known/acme-challenge/([^'/]+)) /bin/hlfw/well-known /usr/web/\1
+/git/([^'/]+)/static /bin/cat /usr/web/\1
+/git/([^'/]+)/([^'/]+)/([^'/]+)/info.html /bin/hlfw/info /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/files.html /bin/hlfw/files /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/branches.html /bin/hlfw/branches /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/snap.tar.gz /bin/hlfw/tar /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/(([^']+)/)?f.html /bin/hlfw/view /usr/git '\1' '\2' '\3' '\5'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/(([^']+)/)?raw /bin/hlfw/viewraw /usr/git '\1' '\2' '\3' '\5'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/log.html /bin/hlfw/log /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/commit.html /bin/hlfw/show /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/_patch /bin/hlfw/patch /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/feed.rss /bin/hlfw/feed /usr/git '\1' '\2' '\3'
+/git/([^'/]+)/([^'/]+) /bin/hlfw/clone /usr/git '\1' '\2'
+([^']+).html /bin/hlfw/md2html /usr/git '\1'
--- /dev/null
+++ b/hostrules
@@ -1,0 +1,7 @@
+git.hlfw.ca /usr/web/git
+blog.hlfw.ca /usr/web/blog
+img.hlfw.ca /usr/web/img
+list.hlfw.ca /usr/web/list
+hlfw.ca /usr/web/main
+78.141.222.139 /usr/web/main
+2a08:f480:1400:2fbb:5400:05ff:fe10:cd27 /usr/web/main
--- /dev/null
+++ b/index.md
@@ -1,0 +1,17 @@
+I'm halfwit. I'm a dad, first and foremost, but also I'm a neurodivergent, celiac, lgbtq+ ally (with a penchant for over-explaining. The following page is a treatise to just that). I am fascinated with emerging technology, both for the societal implications, and my curiosity. I strive to learn what I am able to in any fundamental field, leveraging my growing base of knowledge to create unique solutions to hard problems.
+
+I am currently working as a full-stack developer, specializing in Laravel/NodeJS, but I don't limit myself to any given technology.
+
+# Other Things?
+
+My main side project has been [Altid](https://github.com/altid). I wanted to make a software solution that took commonly used applications, and made them highly accessible, highly customizable, and access to them feel ubiquitous. After many iterations, and many great ideas from friends, I was able to land on a design that really enabled all of those fronts. My current work involves writing [client applications](https://github.com/altid/client) to really showcase what this system can enable.
+
+My side-side project has been largely integrating the networked operating system, [plan9](https://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs) into my computing life! I moved from Linux, to FreeBSD/macOS, and now I'm working to use 9front as my daily driver. Other aspects are data solutions, such as setting up a NAS and a virtualization stack to run most things on (blogs coming soon!). The goal is to have the feel of a thin client that can access my 'world', my preferred desktop environment, programs, and files, without heavy synchronization, cloud hosting, or X-forwarding/VNC style solutions, that tend to not work well on devices outside of personal computers.
+
+# Future Other Things?
+
+If you're interested in any of the following, or if you're already on you're way with your own efforts into any of these arenas, please get in touch!
+
+- kitchen automation
+- lower-waste alternative wash machines, dishwashers
+- self-cleaning design considerations for residential dwellings
--- /dev/null
+++ b/md2html
@@ -1,0 +1,25 @@
+#!/bin/rc -e
+
+. /sys/lib/hlfw/common.rc
+
+cd $1
+shift
+
+rfork ne
+
+cache=/usr/web/cache/$1.cache
+tcache=/usr/web/cache/$1.cache.tmp.$pid
+if(test -e $cache && ! test $cache -older 1m){
+ exec cat $cache
+ exit
+}
+
+nl='
+'
+
+{
+ prelude '' 'main'
+ echo '<img src="/'$logo'" height="200px" width="200px"/><br/>'
+
+ markdown $repo/$1.md
+} | tee $tcache && mv $tcache $cache
--- a/mkfile
+++ b/mkfile
@@ -7,9 +7,11 @@
info\
files\
branches\
+ md2html\
tar\
view\
viewraw\
+ well-known\
log\
show\
patch\
@@ -22,8 +24,7 @@
WEBFILES=\
hlfw.png\
- guide.html\
- plots.html\
+ favicon.ico\
install:
mkdir -p /rc/bin/hlfw
@@ -33,3 +34,4 @@
cp $RCFILES /rc/bin
cp $WEBFILES /usr/web
cp gitrules /sys/lib/tcp80
+ cp hostrules /sys/lib/hostrules
--- a/usr
+++ b/usr
@@ -13,7 +13,7 @@
'
prelude '' 'git host'
-echo '<img src="/static/'$logo'" /><br/>'
+echo '<img src="/'$logo'" width="200px" height="200px" /><br/>'
echo '<h2>'^$usr^'</h2>'
if(test -f $usr/desc.html)