Doing local development on a bunch of interconnected services I often want to start multiple long running server processes.
This is the basic script I use for that.
[Read More]Doing local development on a bunch of interconnected services I often want to start multiple long running server processes.
This is the basic script I use for that.
[Read More]Many of my scripts work with temporary files, usually relative to the scripts directory1,
while at the same time using set -e
to exit as soon as something fails.
In this scenario the script leaves behind these temporary files by default, which is not desireable.
We can however do a proper cleanup using the trap
concept.
fileName="my-file.yaml"
find . -type f -name "$fileName" -printf "%h\n"
This is a simple script that takes multiple kube config files and deeply merges them into one.
[Read More]Often times we need the current date (and time) when scripting inside bash or other shells. For example when creating a backup file or writing to a log.
[Read More]Often times when writing scripts I want to reference files in the same directory, but keep the script portable in case it is part of a git repository being checked out somewhere else or just the folder getting moved.
[Read More]I write an extensive personal knowledge base using markdown, code-server and a variety of other tools. Originally, in 2021, I wanted to have something like Obsidian Publish but self-hosted, so I created it.
Over time my knowledge base evolved more into a second brain, tracking not only my technical notes and journal, but also things like recipes and hikes. With this my publishing pipeline, and the script at it’s core, extended in a multitude of ways.
[Read More]