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

Org Mode Subtree Expansion With the Mouse

When I wrote about, ticking off checkboxes in Org Mode, I’d linked to line 101 of org-mouse.el. While I’d read the main summary, I somehow missed line 30 … ;; * subtree expansion/collapse (org-cycle) with the left mouse button Which I accidentally triggered today … After an (accidental) click opens up to … Org Mode continues to delight! Hurrah! ...

February 22, 2023 · Mario Jason Braganza

I Should Write Down and Summarize What I Did

I did a lot of research the other day about what I’d need to build a contact form for my website. I bookmarked lots of pages. And today, I come and look at this mountain of videos and sites and pages and woneder what exactly it is, that I am supposed to tackle. Nothing makes sense. I know I ruled out Sendy as an option. Or did I? Do I need Javascript? How much? Can I get snippets to copy paste? Do I need to go learn Javascript? What is spam protection? Do I need spam protection? How do I do it? I’ll have to go look at it all again now.1 ...

January 23, 2023 · Mario Jason Braganza

Learning Kubernetes, Setup Notes

Ok, here’s to learning Kubernetes in earnest, to get that career pivot going. Notes as I learn, over the coming days. This one, is a lot of random thoughts on bringing up a cluster. It is both harder than you think, and easier than you think I did this, because I wanted to run my own cluster, just like the big boys do.1 It’s much easier to run alternatives like kind, if that suits your needs better. Notes to future Jason: ...

November 3, 2022 · Mario Jason Braganza

Make KVM Use a NIC in Bridge Mode

I wanted to start learning Kubernetes. So I thought I’d spin up a Ubuntu VM to use as my sacrificial guinea pig. While the normal NAT mode works well enough for most of my networking needs, I wanted the Ubuntu VM to show up and work as a machine on my host’s network.1 I have two network cards on my desktop and wanted to allocate one of them to this VM. I wanted a passthrough, where the guest OS would see the NIC and then have exclusive access to it. When I tried doing that, KVM complained that it could not do this with PCI devices. ...

October 18, 2022 · Mario Jason Braganza

Make SSH Ignore Key, When Logging On to a Fresh Box

Every now and then, I spin up a fresh vm. And being a creature of habit, I use the same username on my play / experimental vms as my normal login. So everytime I try to login to such a vm or pi, I get a Too many authentication failures error. So to just get in and start working, I need to tell ssh to ignore my keys and try using passwords as the authentication mechanism. Like so ...

October 18, 2022 · Mario Jason Braganza