htpasswd Notes to Self

To create the htpasswd file along with its first user, I just: htpasswd -c /path/to/htpasswdfile/htpasswd some-user It’ll ask you for the password for that user, encrypt it and store it in that location. Add these lines to get Nginx to use the file for basic auth: auth_basic "Login to Proceed: "; #(or whatever message you want) auth_basic_user_file /path/to/htpasswdfile/htpasswd; To append another user to the htpasswd file do: htpasswd /path/to/htpasswd/htpasswd second-user That ought to do it. P.S. Install apache-utils on Debian or use Paru/Yay to install nginx_passwd on Arch. ...

June 24, 2023 · Mario Jason Braganza

Quick Fix: Go Mod File Not Found in Current Directory

As I have begun learning Go (or golang as I needed to use for searching on the web), I’ve been running into some sort of chasm that the Go language seems to have crossed1 that my old textbook obviously could not have foreseen when it was published.2 The book asks me to do a go run . to get my file to compile and run. Go seems to having none of it. ...

March 15, 2023 · Mario Jason Braganza

Huginn: Vive La Pratique Délibérée Avec Les Flux RSS

I’ve been learning French, on my own at a snail’s pace over the past year or so. All because I want to read Émilie du Châtelet, Dumas, Verne, and Montaigne in their native tongue. Since I cannot do immersion nor give regular practice the time it wants, it’s … slow going But I do, do it. Regularly and deliberately. I’ve built up a vocabulary of about 500-700 words by now and I know if I keep this up, I’ll be able to do read well in time. ...

March 15, 2023 · Mario Jason Braganza

Huginn: On Becoming a Cal Newport Podcast Packrat

First things first, you should be listening to Cal Newport and reading his books too! His recent episode on books and reading was lovely!1 If I remember right, he started doing the podcast, a couple of months after the pandemic broke out and the world shut down. And it felt very much at the time, like one of those friendly voices across the waves in some post apocalyptic movie. It felt warm, personal and gave me something to do in those dark days. Ergo, I have a strong connection to it and I began saving every episode, at around episode 10 or so. ...

March 14, 2023 · Mario Jason Braganza

Huginn: the Rube Goldbergness of Updating Hugo

Click the pic to embiggen. Rube Goldberg illustration via James Vaughan Ended up too sick to even tinker, since I last wrote. Well enough now, to scratch out some prose to get my brains in gear. Let’s start with Huginn adventure #1. Buckle up! ...

March 13, 2023 · Mario Jason Braganza

Huginn

Let’s get the, “What the heck is Huginn?” out of the way. If you’ve heard of Zapier or IFTTT, that’s what this is. Only better. You host it. You control it. You program it. And everything’s in your control. If you’ve used Yahoo Pipes, then I tip my hat to you my dear friend and tell the rest of you folk, that I believe all of these new fangled pieces of zaps and agents are the spiritual successor to that pioneering web app. IBM has a similar open source alternative, with all the new fangled hotness called Node-RED ...

March 2, 2023 · Mario Jason Braganza