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

Notes to Self, on Self Hosting Fonts on My Hugo Blog

Writing this down, so that I will not struggle the next time1, I have to do this. I use Valkyrie for everything on the blog in various weights, except for code and preformatted stuff, which uses Source Code Pro Medium. Both are WOFF2 fonts. Anything in Hugo’s assets/css/extended folder will be picked up by Hugo and bundled into a single CSS file. The fonts are in subdirectories in the static/fonts/font-name folder. Anything in the static folder shows up at the root of the site. ~/mjb/blog/static/images/test.jpg will become /images/test.jpg I’ve created an embed-font-name.css file in the css folder above, with embed instructions generously provided by Matthew Butterick in his font documentation for Valkyrie. I adapted the same for Source Code Pro as well. Here’s a sample of my embed-source-code-pro.css 1 2 3 4 5 6 7 8 @font-face { font-family: 'Source Code Pro Medium'; font-style: normal; font-weight: medium; font-stretch: normal; font-display: auto; src: url('/fonts/source-code-pro/SourceCodePro-Medium.woff2') format('woff2'); } Finally, I created a zz-include-css.css file, which I use to overide the default CSS, so I can use my custom fonts. Since it starts with a zz it comes after the files above, that start with embed, in the final munged and minified CSS file. These are my instructions to have most text rendered with Valkyrie and code as Source Code Pro Medium2 1 2 3 4 5 6 7 8 9 10 #top { font-family: valkyrie; font-variant: oldstyle-nums; } .post-content pre, code { font-family: 'Source Code Pro Medium'; font-style: medium; font-weight: 500; } Look! So pretty :) P.S. Subscribe to my mailing list! Forward these posts and letters to your friends and get them to subscribe! P.P.S. Feed my insatiable reading habit. ...

October 9, 2022 · Mario Jason Braganza

Ticking Off Checkboxes With the Mouse in Org Mode

While I mostly use the keyboard when doing everything Org related, there are a few times in the day, when I cannot. These are mostly mornings and evenings when I bustle about home, doing this thing and that. Things that are part of my routine. Things that are checkboxes in my routine.org file. It helps me get through the day without thinking of whether, I gave the better half her meds or whether I remembered to call my mum or if I drank enough water by the end of the day or whether my stretches for the day are done or if the plan for the next day is made. ...

October 7, 2022 · Mario Jason Braganza

Noah’s in Emacs!

I wrote the other day, about switching to Noah Webster’s dictionary everywhere, I possibly could. Now I did that after reading this lovely James Somers post. And that post seems to be resounding through the web, with folks integrating it into their workflows in different ways. So I was really happy when I read Jon Snader’s post telling me I could have my beloved Webster’s dictionary in Emacs! This sounded too good to be true! I didn’t believe it! Because why would I believe some old, wise wizard who’s only been writing about Emacs on a near daily basis for close to fourteen years?! I had to try this out myself! So I whip out ye, old, trusty scratch buffer, type crap into it and select it.1 And then I fire up M-x dictionary-search, like Snader tells me to This is the moment of poop … err truth! I hit return and … How now brown cow?! It actually works! ...

October 6, 2022 · Mario Jason Braganza