Skip to main content

All Articles

How I set up the docker image with systemd and sshd

Image Thumb

For testing ansible roles, I need a docker container that runs systemd or init - a container in which services can be enabled. I also need this container to be accessible via ssh. This way, I don't have to spin up cloud resources (which are not free) in order to test doing something on a remote.

Vscode cheatsheet

Vscode is a text editor. No extensions should run, nothing should take up my CPU or memory.

code --list-extensions
code --disable-extension DotJoshJohnson.xml

.

Cool Scripts and One-liners

Find latest 20 files in the folder (on mac):

find . -type f ! -name '.DS_Store' -exec stat -f '%m %Sm %N' \
  -t '%Y-%m-%d %H:%M:%S' {} + | sort -nr | head -20 | cut -d' ' -f2-

Delete empty dirs:

find . -name '.DS_Store' -type f -delete
find . -type d -empty
find . -type d -empty -delete

.

20250811 Daily Scrum

Image Thumb

In order to improve my writing skills, I should write on a regular basis. The amount of writing is measured in either the number of words written, or the hours spent writing. Of course, there is an inherent conflict of interest, an inherent corruption when measuring work in such a way. See The Inherent Corruption of the Employee.

How will I promote and market my material? And for what purpose? What am I selling? What is the path (karate-do) that I'm pursuing, what is in my DNA? These and other questions are answered succinctly in The Core.

How to create image for raspberry pi and virtual box

Image Thumb

To create an image for a Raspberry Pi, you generally have two main scenarios:

  1. Starting fresh with a new OS (e.g., Raspberry Pi OS, Ubuntu, Home Assistant OS).
  2. Cloning or backing up your existing Pi setup into a custom image.

Here, I'll explain the first method. The steps are: