Pinned toot

C fellas really do be out here naming their functions `htons` or `ntohl` smh

Show thread
Pinned toot

"You know, say what you will about America, $13 still gets you a hell of a lot of mice"

Ok... Goland is actually a really nice IDE. I admit it.

I'll soon be embarking on a way to optimize my "office" space in my new apartment. Gonna be looking for some very minimal monitor and desk setups

Press 't' when on a github repo's web page to activate the file finder!

Day 3 and I've still maintained inbox 0... We'll see how long it lasts lol

Dang a fella really gotta learn about k8s and containers now

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.

Show thread

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 (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.

Show thread

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
```

Show thread

Holy moly. I just want to take a Markdown file, a simple HTML template file, and generate some webpages. Is that too much to ask?? All the template engines and SSGs are trying to give me everything and the kitchen sink, which I don't need. Please tell me I won't have to write this myself...

viewsourcecode.org/snaptoken/k

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.

Show thread

Ok, after reading this unix.stackexchange.com/questio
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

Show thread

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 web.eecs.utk.edu/~azh/blog/cha

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.

reddit.com/r/nosurf/comments/j
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 0chris.com/tiny-ci-system.html

I have never once wanted to add someone's blog to my home screen. I suspect I never will.

Nothing like trying to debug assembly for a processor you made yourself and not knowing if the problem is your code or your processor

"Love people, and use things, because the opposite never works." - Joshua Fields Millburn

Show more
The Cabal

This is a server created by Jahziel Villasana (aka hapax). He's not sure what he's going to use it for yet...