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.

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…

Reaction Commerce — Getting Started

10 minute read Updated

The Unofficial Guide to getting started with Reaction Commerce v3.

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.

With commerce goliaths like Amazon doubling quarterly profits in 2020 while, at the same time snubbing their own FBA customers, it’s high time you took a hard look at your e-commerce and take control of your own commerce destiny. In this post I will show you how to set-up your own self-hosted Reaction Commerce stack on a VPS with as little as 2GB of RAM or about $10/month.

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.

Hiding Apps in the Deepin DDE Launcher

3 minute read Published

How to hide or modify main menu apps in Deepin Desktop Environment.
While getting my Invisible Arch set-up I cycled through a few desktops before settling happily on a now very slick and stable Deepin V20, still in beta. Given I’m shifting back and forth between Deepin and GNOME every so often I ended up having multiple apps with the same or similar names appearing in the menu system. To remedy that it’s possible to hide apps shown in the launcher. To hide or modify apps appearing in the Deepin launcher menu install a package called alacarte from the package repository.

Getting Started with Yew for Rust

4 minute read Published

Rust framework for creating multi-threaded front-end web apps with WebAssembly.

Today we’re going to create a starter website using Yew for Rust. This should take you about 20-30 minutes depending on the speed of your Internet connection and computer. At the outset you will have a website so bleeding edge you didn’t even feel the cut. Kind of like how Node developers didn’t see Deno coming…

To get started install or upgrade Rust. If you don’t have Rust installed, you can install it from the stable channel using the following command:

Living Without a SIM Card

4 minute read Updated

A year later. Getting by without a SIM card in my smartphone.

Subscriber Identity Module. That’s what “SIM” stands for. I acquired my first SIM when I was 17 at a T-Mobile outside Chicago when I got my first cell phone, the Nokia 1110, the best-selling phone of all-time.

A few years later I was working in Chicago and almost everyone in the office had an iPhone. But a few people had Android phones. Their phones did so much my dumb phone couldn’t do. Though having grown up in an analog world the idea of the phone doing everything concerned me in that I would grow dependent on it.

Onion Sites Vivaldi Browser Android

2 minute read Published

Surf the Web more privately on Vivaldi browser for Android.

For the last three years I have been living in a predominantly Muslim country where pornography is censored. And I’m not just talking the obvious sites like PornHub. Reddit and Vimeo – both of which contain porn – are also censored.

If not being able to access any of the above websites seems unfree to you consider the fact you too are are being censored on a daily basis. The censorship most of you experience just isn’t as obvious because you’ve grown accustomed to paywalls, cookie disclaimers and the occasional reCAPTCHA.