Posts

Featured Posts

Writing on various topics including travel, finance and technology.

K8s on macOS with K3s, K3d and Rancher

12 minute read Published

How to install and run Rancher on macOS using K3s and K3d

In this post we’re going to take a quick look at how to run Rancher in a Kubernetes cluster locally on macOS for development and testing purposes. There are several ways to run Kubernetes locally. In this guide I’m going to focus on just one of them: k3d — short for k3s in Docker.

k3d is a lightweight wrapper to run k3s in Docker. Its clear advantage over kind is that it can run on Linux. Compared to Multipass it does not require a virtual machine. Supports multi-cluster development unlike Docker Desktop. It’s faster than Minikube and it uses a certified Kubernetes distribution.

When you’re finished you’ll have Rancher running inside a k3s Kubernetes cluster which can be used to manage the cluster itself. This guide assumes you’ve never run Kubernetes before and, therefore, also serves as a practical getting started guide for Kubernetes itself.

Copy Files from Linux to macOS Desktop

3 minute read Published

Easily move files machine-to-machine using Deepin 20 and Midnight Commander.

If you need to copy files from a Linux computer to macOS desktop, this short tutorial will explain how using Arch Linux with Deepin 20 and Midnight Commander. Rather than using a Wi-Fi gateway such as a a router, we’ll connect Arch directly to macOS using the Personal Hotspot in Deepin 20 giving us an M2M connection.

Monitoring PWA Website Performance

2 minute read Updated

Monitoring the speed of your Progressive Web Apps over time.

How do you monitor website performance? Is it monitored? Do you know if your website is getting faster? Slower? Do you know when it falls below critical performance thresholds? Are you receiving automated alerts? Do you even have alerts? If not, you could be. And it won’t cost you a dime to get started.

This post is going to talk about SpeedTracker. SpeedTracker is a free tool that allows you to monitor website performance over time. Use it to visualize your page speed scores, track Lighthouse metrics, receive alerts and even create a public dashboard consisting of multiple websites for quick reference.

Hugo Ulimit macOS No Space Left

4 minute read Published

How to increase the open files limit on macOS to workaround the too many files open socket exception with Hugo.

Trying to build the Hugo site textfiles.habd.as on a 2019 MBP and kept encountering the too many open file socket exception. Hugo seemed to have completed the build but was unable to subsequently serve the files:

How to Become a Digital Nomad in Bali

19 minute read Updated

Everything you need to know to become a Digital Nomad in Bali.

If you live in a first-world country chances are you’ve become a wage slave like I was before leaving a six-figure job to gain my independence. Or maybe you’ve already started freelancing and want to become a better freelancer. Whatever your reasons, becoming a Digital Nomad in Bali is not as difficult as you may think. But it takes preparation.

In this guide I will share valuable information and resources to help you decide if Bali is right for you, describe various move considerations, explain how to actually make the move and show you what’s necessary to get settled in.

Reaction Commerce Debugging Primer

10 minute read Updated

How to debug a Node.js App Running inside a Docker container.

Reaction Commerce is a full-stack, self-hosted commerce platform you can run for as little as $10 on your own VPS. Think of Reaction Commerce as what WooCommerce might’ve become had it not been dependent on PHP/WordPress and instead was rewritten using modern coding languages and development techniques.

Using self-hosted commerce is like having your own personal Shopify, WIX or BigCommerce right at your fingertips. Only there’s no monthly costs to worry about just to use it. And there’s no vendor lock-in which would otherwise make it too difficult or risky to switch between platforms when the need arises.

After you’ve learned the basics of Getting Started you’re ready to dive deeper into the code and learn how things work. One of the best ways to learn any new system is to look for bugs and figure how to debug them. And in this tutorial I will show you some strategies for debugging source code in Reaction Commerce.

Bali Short Visa Long Stay

2 minute read Updated

Exploring the depths of Bali using a short-term tourist visa.

“Duah tahun setengah,” I replied to a pair of grinning Indonesian men just beyond the gate of a modest homestay in northern Bali. They were “kepo” to know how long I’ve been living in Bali. And though I’ve been here just over two-and-a-half years I’ve been doing so freely using a short-term tourist visa called a VoA.

Who wouldn’t want to live on an island in the tropics given the opportunity? And that opportunity became apparent in late-2016, the first time I set foot in Ubud. “What kind of magic place is this,” I remember thinking. The desire to move came strong, and my intention manifested accordingly.

It’s been two-and-a-half years since I moved to Bali. And even without a typical long-stay visa I’ve managed to make things work using bi-monthly flights, and appreciate being able to communicate it to others more with each passing day.

Awesome React Boilerplates

7 minute read Updated

Awesome React starter kits to kick your app development into high gear.

Not interested in reinventing the wheel? Neither am I. Here’s a short list of awesome boilerplates – sometimes called starter kits or seeds – for getting your React applications off the ground in a hurry.

These boilerplates weren’t taken from any list, however awesome it might be. Rather, they’ve gained enough mindshare to find me outside The Stream.

So without further ado…

A Five Year Cough

7 minute read Updated

I was coughing for five years. Kratom fixed it instantly.

Last October I was co-located for two months with an unlikely pair of digital nomads perched at a private villa in northern Bali. One of them was visionary, born again vegan in his late 30’s. The other a talented twenty-something savant programmer from Volgograd. During our time co-locating I helped the two containerize an application stack they’d been working on for over a year. And they introduced me to a healing herb used in traditional medicine I would later find out was the treatment I needed to control my chronic bronchitis.

Redirect non-www to www Traefik v2

4 minute read Published

How to create cool URIs using Traefik 2 with Docker labels.

I like cool URIs that don't change so whenever I’m making a new website I make sure I put my web content on the www subdomain where it belongs. This of course leaves the domain apex, or root of the domain, empty and user agents don’t always do what comes so natural to us humans — adding a www in front of a domain name.

Computers get even more clumsy when you add HTTPS into the equation and are working with new technologies. So if you’re looking for cool URIs too here’s how to redirect domain.example to www.domain.example with Traefik v2 over both HTTP and HTTPS using Docker labels in a docker-compose.override.yml YAML file:

ACH Payments on Reaction Commerce

7 minute read Updated

How to accept ACH payments using Reaction Commerce.

After learning Mitragynine was the cure for my five year cough I realized most of my stay here in Bali put me a mere 653 miles from the source of the jamu (Indonesian for herbal remedy) I now substitute entirely as a replacement for caffeine. Given my medical journey, location and software engineering background it seems fitting to set-up an online shop to better take advantage of this miracle plant. After some trial and error the platform I’ve landed on for commerce is called Reaction Commerce. And in this post I’ll show you how to use it to set-up a simple ACH payment system using Reaction on your own website.