#TIL Press 't' when on a github repo's web page to activate the file finder!
#oneliner for pretty printing PATH:
tr ':' '\n' <<< "$PATH"
omg I'd totally forgotten about `printf`! If nothing else, trying to get this tilde server off the ground has helped _me_ get better at doing things the UNIX way.
pages.txt holds a newline separated list of the page names that I want to generate (index, codeofconduct, etc). We iterate over this list, using comrak (https://lib.rs/crates/comrak) to convert the MD to HTML, which is dumped in a temp file. The temp file is then `cat`ed together with the header and footer templates, which are just the top and bottom pieces of an HTML file.
Problem solved, in a very UNIXy way!
```
#!/bin/sh
pages=`cat ./pages.txt`
for page in $pages;
do
$(which comrak) $page.md > $page.temp.html
cat header.template $page.temp.html footer.template > $page.html
done
rm *.temp.html
```
https://viewsourcecode.org/snaptoken/kilo/index.html
Oh lookie! I might follow along with this, but write it in Go. I wanna use this as a chance to brush up on my Go skills, since it looks like I'll be using it at work quite a bit. Thankfully Go has a nice API for tty things.
Ok, after reading this https://unix.stackexchange.com/questions/21752/what-s-the-difference-between-a-raw-and-a-cooked-device-driver
cooked vs raw makes more sense. So I guess I have to use raw mode and hook up my own functions to handle certain keypresses instead of the terminal handling them
https://en.m.wikipedia.org/wiki/Terminal_mode
This seems as good a place to start as any!
Ok, the line at the tag office is awfully long so I'm gonna start looking into how to make a basic text editor, inspired by https://web.eecs.utk.edu/~azh/blog/challengingprojects.html
I'm really interested in text-only online socializing (like tilde.town). It seems great for technologists, but I doubt its effectiveness for non-computer people. If our goal with things like Mastodon and tilde servers is to free us from Big Social Media, how are we going to include the rest of the world? Especially when many of these small Internet communities purposely built to require computer know-how for users to participate.
https://www.reddit.com/r/nosurf/comments/jro07o/live_like_its_the_90s/
some good thoughts and recommendations about unplugging and not getting sucked in by consumer computing!
this is a great and straightforward guide to setting up a super simple redis-based CI system for git repos https://www.0chris.com/tiny-ci-system.html
I'm Jahziel. I make computers go beep-boop.