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

On Things That Last

Just something that kept coming to mind today. I met an old friend the other day. We’d fallen out of touch and gone our separate ways. We were both gifted watches by another friend of ours at the time. And they pointed out to me, I was still wearing the same watch. I gently pointed out to them, that this watch was a different one, something the better half gifted me just after we got married. This is a white dial, see. The old one was blue. And then we moved on to other things. What I didn’t tell them, was that I still have the old one. It’s battered. It’s scratched. It works. It keeps perfect time. It’s beautiful.1 ...

March 31, 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