How to download videos from YouTube

Wondering how to download a video from YouTube, with audio and subtitles intact? Here are a couple of methods I’m documenting in case I ever need to use them. ...

30 May 2020

macOS zsh configuration

From macOS Catalina 10.5 onwards, zsh is the default shell, instead of bash. I have a lot to learn about this shell, and so far, this is how I configured zsh… There is an overload of snippets on-line, but I’ve not seen a post doing what I do, so hopefully this helps someone! ...

7 May 2020

Static domain name resolution for Kubernetes pods

I recently needed to setup a Kubernetes cluster without an external DNS and without Internet access. In the old days, static IPs could be mapped to FQDNs by creating entries in the hosts file, but that won’t work with Kubernetes. With Internet access, the typical solution would be to use a wildcard DNS like xip.io or nip.io. Instead, the workaround is by hardcoding the mapping in the CoreDNS configuration. ...

31 Mar 2020

Shortcuts on iPhone home screen

Here’s how I “changed” an app’s home screen icon on iPhone. I’m so OCD that I want my home screen dock icons (the tray at the bottom) to be all of the same colour! Actually, changing an icon is not possible, but creating a new shortcut with an icon of my choice is! ...

23 Jan 2020

OCRmyPDF: searchable text from images

I recently had a bunch of screen shots that I wanted to OCR, so that I could search for text content in the future. I found an open source solution called OCRmyPDF (created by jbarlow83 over on GitHub) to be very simple to use. It’s also very well documented with many usage examples, including my preferred option - from a Docker container. ...

16 Dec 2019

Enabling PHP in Apache on macOS Catalina 10.15

Every time Apple releases a new version of macOS, I have to go in and re-configure Apache with PHP the way I want it. So this time, I thought I’d automate the configuration changes with a single command. ...

3 Nov 2019

Running Db2 Data Server Manager in a container

I previously played around with MongoDB in a few containers. Recently, I tried IBM Db2 Community Edition and learnt a few new things about containers along the way. The challenge was rolling my own Db2 Data Server Manager container, working around the background process that the startup script kicks off. ...

20 Oct 2019

Useful (but less well-known) Mac Keyboard Shortcuts

Most Mac users would use at least a few keyboard shortcuts (if not, check out Apple’s Mac Keyboard Shortcuts list), but here are a few additional key combinations that I find useful. These are less well-known and many are not in Apple’s list. ...

20 Aug 2019

Three Ways to Quickly Toggle Dark Mode

Here’s are a few short tips - to toggle Dark Mode on macOS without opening System Preferences. Useful when designing your Dark Mode enabled web site using prefers-color-sheme Media Query, like I did. ...

4 Aug 2019

Creating a container with an entrypoint to run code

I recently wanted to test a web app written in Node.js and exposed via fixed port. The instructions asked me to install Node.js locally, which I resist! So, here is how I built my Docker container to run the code. ...

28 May 2019