alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

commit 8dcd7387600320f35e16ca0d5debc13c50f820b6 (patch)
parent 98413f39fa854678d54585039fe5b9ec69115092
Author: Alex Karle <alex@alexkarle.com>
Date:   Sun,  7 Nov 2021 22:41:41 -0500

gopher: Update to use geomyidae instead of gophernicus

Gophernicus did great for the past 8mo, but I want to use geomyidae for
two reasons:

1. stagit-gopher support
2. TLS support!

As such, I needed to overhaul all gophermaps to be *.gph files, which
was mostly easy with the exception of the dirlisting capability, which
requires some runtime generation :)

Diffstat:
Mgopher/.gitignore | 3+--
Mgopher/Makefile | 19++++++++-----------
Agopher/bin/dirlist | 14++++++++++++++
Mgopher/bin/notetag | 6+++---
Dgopher/blog/gophermap | 19-------------------
Agopher/blog/index.gph | 18++++++++++++++++++
Dgopher/code/gophermap | 21---------------------
Agopher/code/index.gph | 20++++++++++++++++++++
Dgopher/gophermap | 28----------------------------
Agopher/index.gph | 28++++++++++++++++++++++++++++
Dgopher/jam-tuesday/gophermap | 36------------------------------------
Agopher/jam-tuesday/index.gph | 35+++++++++++++++++++++++++++++++++++
12 files changed, 127 insertions(+), 120 deletions(-)

diff --git a/gopher/.gitignore b/gopher/.gitignore @@ -1,3 +1,2 @@ -notes/*/ -notes/gophermap +notes/* !notes/all/ diff --git a/gopher/Makefile b/gopher/Makefile @@ -1,29 +1,26 @@ FILES = about.txt \ LICENSE \ - gophermap \ + index.gph \ phlog.txt CODE = bin/notetag \ LICENSE \ - Makefile \ - code/gophermap + Makefile .PHONY: build build: - cd notes && ../bin/notetag > gophermap + cd notes && ../bin/notetag > index.gph .PHONY: install install: build - mkdir -p /var/gopher/notes - mkdir -p /var/gopher/code - mkdir -p /var/gopher/blog - mkdir -p /var/gopher/jam-tuesday + cd /var/gopher && mkdir -p notes code blog jam-tuesday install -m 444 $(FILES) /var/gopher for tag in notes/*/; do \ mkdir -p /var/gopher/$$tag; \ install -m 444 $$tag/* /var/gopher/$$tag; \ done - install -m 444 notes/gophermap /var/gopher/notes + install -m 444 notes/index.gph /var/gopher/notes install -m 444 $(CODE) /var/gopher/code - install -m 444 jam-tuesday/gophermap /var/gopher/jam-tuesday - install -m 444 blog/gophermap /var/gopher/blog + for d in jam-tuesday blog code; do \ + (cat $$d/index.gph; bin/dirlist /var/gopher/$$d) > /var/gopher/$$d/index.gph; \ + done diff --git a/gopher/bin/dirlist b/gopher/bin/dirlist @@ -0,0 +1,14 @@ +#!/bin/sh +# dirlist -- just does a dir listing in gph format +DIR=${1:-$PWD} +for f in "$DIR"/*; do + bn=$(basename "$f") + mtime=$(stat -f "%Sm" "$f") + if [ "$bn" != "index.gph" ]; then + if [ -d "$f" ]; then + printf "[1|%-30s$mtime|$bn|server|port]\n" "$bn" + else + printf "[0|%-30s$mtime|$bn|server|port]\n" "$bn" + fi + fi +done diff --git a/gopher/bin/notetag b/gopher/bin/notetag @@ -36,16 +36,16 @@ EOM for tag in */; do count="$(ls "$tag" | wc -l | sed 's/^[[:space:]]*//')" if [ "$count" = "1" ]; then - printf "1 %-24s %4s note)\t%s\n" "$tag" "($count" "$tag" + printf "[1| %-24s %4s note)|%s|server|port]\n" "$tag" "($count" "$tag" else - printf "1 %-24s %4s notes)\t%s\n" "$tag" "($count" "$tag" + printf "[1| %-24s %4s notes)|%s|server|port]\n" "$tag" "($count" "$tag" fi done cat <<EOM -1 <-- Back / +[1| <-- Back|/|server|port] Last Updated: $(date) EOM diff --git a/gopher/blog/gophermap b/gopher/blog/gophermap @@ -1,19 +0,0 @@ -Yet another - __ ___ - /\ \ /\_ \ - \ \ \____\//\ \ ___ __ - \ \ '__`\ \ \ \ / __`\ /'_ `\ - \ \ \L\ \ \_\ \_/\ \L\ \/\ \L\ \ - \ \_,__/ /\____\ \____/\ \____ \ - \/___/ \/____/\/___/ \/___L\ \ - /\____/ - \_/__/ - -This is just a mirror of my WWW site: - -h https://alexkarle.com URL:https://alexkarle.com - -Since the content really is mdoc(7), -it's fairly easy to mirror here :) - -* diff --git a/gopher/blog/index.gph b/gopher/blog/index.gph @@ -0,0 +1,18 @@ +Yet another + __ ___ + /\ \ /\_ \ + \ \ \____\//\ \ ___ __ + \ \ '__`\ \ \ \ / __`\ /'_ `\ + \ \ \L\ \ \_\ \_/\ \L\ \/\ \L\ \ + \ \_,__/ /\____\ \____/\ \____ \ + \/___/ \/____/\/___/ \/___L\ \ + /\____/ + \_/__/ + +This is just a mirror of my WWW site: + +[h| https://alexkarle.com|URL:https://alexkarle.com|server|port] + +Since the content really is mdoc(7), +it's fairly easy to mirror here :) + diff --git a/gopher/code/gophermap b/gopher/code/gophermap @@ -1,21 +0,0 @@ - __ - /\ \ - ___ ___ \_\ \ __ - /'___\ / __`\ /'_` \ /'__`\ -/\ \__//\ \L\ \/\ \L\ \/\ __/ -\ \____\ \____/\ \___,_\ \____\ - \/____/\/___/ \/__,_ /\/____/ - - for this gopherhole - - -I publish all my git repos on the WWW at: - -h https://git.alexkarle.com URL:https://git.alexkarle.com - -And I plan to set up stagit-gopher so I can mirror -here as well. However, for now you're stuck with -a lowsy plaintext dump of the code used to build -this site :) - -* diff --git a/gopher/code/index.gph b/gopher/code/index.gph @@ -0,0 +1,20 @@ + __ + /\ \ + ___ ___ \_\ \ __ + /'___\ / __`\ /'_` \ /'__`\ +/\ \__//\ \L\ \/\ \L\ \/\ __/ +\ \____\ \____/\ \___,_\ \____\ + \/____/\/___/ \/__,_ /\/____/ + + for this gopherhole + + +I publish all my git repos on the WWW at: + +[h| https://git.alexkarle.com|URL:https://git.alexkarle.com|server|port] + +And I plan to set up stagit-gopher so I can mirror +here as well. However, for now you're stuck with +a lowsy plaintext dump of the code used to build +tthis site :) + diff --git a/gopher/gophermap b/gopher/gophermap @@ -1,28 +0,0 @@ - - gopher://alexkarle.com - ---------------------- - _ - :/ ) - :/ ' - :( \ - '._.' == Gopher Exclusives == -0 |.| about me /about.txt -1 | | tech notes /notes -0 |.| phlog /phlog.txt -1 | | gopherhole code /code - |.| - | | ===== HTTP Mirror ===== -1 |.| blog /blog -1 |-| jam setlists /jam-tuesday - . | | - ! \ | | .^ - \ .'| |`' / . - . ( |` - ) === . __ o' . - ; ) | | |` - ( ... ; o' o' o' - . . - `. ___ .'ak - - -0 All content CC BY 4.0; code is MIT licensed /LICENSE diff --git a/gopher/index.gph b/gopher/index.gph @@ -0,0 +1,28 @@ + + gopher://alexkarle.com + ---------------------- + _ + :/ ) + :/ ' + :( \ + '._.' == Gopher Exclusives == +[0| \|.\| about me|/about.txt|server|port] +[1| \| \| tech notes|/notes|server|port] +[0| \|.\| phlog|/phlog.txt|server|port] +[1| \| \| gopherhole code|/code|server|port] + |.| + | | ===== HTTP Mirror ===== +[1| \|.\| blog|/blog|server|port] +[1| \|-\| jam setlists|/jam-tuesday|server|port] + . | | + ! \ | | .^ + \ .'| |`' / . + . ( |` + ) === . __ o' . + ; ) | | |` + ( ... ; o' o' o' + . . + `. ___ .'ak + + +[0| All content CC BY 4.0; code is MIT licensed|/LICENSE|server|port] diff --git a/gopher/jam-tuesday/gophermap b/gopher/jam-tuesday/gophermap @@ -1,36 +0,0 @@ - - __ - /\_\ __ ___ ___ ____ - \/\ \ /'__`\ /' __` __`\ /',__\ - \ \ \/\ \L\.\_/\ \/\ \/\ \/\__, `\ - _\ \ \ \__/.\_\ \_\ \_\ \_\/\____/ - /\ \_\ \/__/\/_/\/_/\/_/\/_/\/___/ - \ \____/ - \/___/ setlist archive - - -From about October 2020 up until August 2021, my -brother Matt and I got together every Tuesday -evening to play music. It started as a way to -stay sane during the COVID quarantine, but it -quickly became a tradition and a highlight of the -week. No matter how stressful work was, or what -was going on in the outside world, we could leave -it all behind as we played some of our favorite -tunes. - -At some point (woefully late), I realized it would -be fun to start cataloging what we played. - -There are no audio recordings (at least publicly), -but there's a stray note here and there to "set -the scene". - -The setlist notation is hopefully pretty -straightforward. Unless otherwise noted, I'm on -guitar and Matt's on keys (and if only one -instrument is specified, it's me switching to it). -We both (attempt to) sing. Sometimes we even -harmonize :) - -* diff --git a/gopher/jam-tuesday/index.gph b/gopher/jam-tuesday/index.gph @@ -0,0 +1,35 @@ + + __ + /\_\ __ ___ ___ ____ + \/\ \ /'__`\ /' __` __`\ /',__\ + \ \ \/\ \L\.\_/\ \/\ \/\ \/\__, `\ + _\ \ \ \__/.\_\ \_\ \_\ \_\/\____/ + /\ \_\ \/__/\/_/\/_/\/_/\/_/\/___/ + \ \____/ + \/___/ setlist archive + + +From about October 2020 up until August 2021, my +brother Matt and I got together every Tuesday +evening to play music. It started as a way to +stay sane during the COVID quarantine, but it +quickly became a tradition and a highlight of the +week. No matter how stressful work was, or what +was going on in the outside world, we could leave +it all behind as we played some of our favorite +ttunes. + +At some point (woefully late), I realized it would +be fun to start cataloging what we played. + +There are no audio recordings (at least publicly), +but there's a stray note here and there to "set +tthe scene". + +The setlist notation is hopefully pretty +straightforward. Unless otherwise noted, I'm on +guitar and Matt's on keys (and if only one +instrument is specified, it's me switching to it). +We both (attempt to) sing. Sometimes we even +harmonize :) +