Productivity

Posts tagged with #productivity
Total: 16

Colorize pattern on CLI

Notes | 2025-05-07 (updated 2025-10-25) | 1 min read
#bash #grep #productivity

Colorize a pattern in the given input using a neat regex and colorization hack in grep ($ matching all lines but not being able to be highlighted).

color () {
  # Color highlight the pattern in the incoming stream, writing to stdout
  # This effectively matches our PATTERN andy any "$" (line end)
  # But only our PATTERN can be highlighted, line end characters aren't actually there to be highlighted
  local PATTERN=$1

  if [ -z "$1" ]; then
    echo "Usage: color <pattern>"
    echo "Description: Greps input with --color=always -E 'PATTERN|\$' "
    echo "Example: echo \"hello world\" | color \"world\""
    return 1

  fi
  grep --color=always "$PATTERN\|\$"
}

Managing Multiple Kube Config Files

Notes | 2024-02-22 (updated 2025-10-25) | 1 min read
#k8s #productivity #scripting

This is a simple script that takes multiple kube config files and deeply merges them into one.

I’ve since switched to [[kubeswitch]], which works much cleaner than this home-grown script.

Read more…

CLI fuzzy search

Notes | 2023-10-08 (updated 2025-10-25) | 1 min read
#linux #productivity #search #slashpage-uses

I often whish to search through large bodies of text, like my knowledge base or source code repositories, from the command line.

I use fuz for this and I’m quite happy with it.

I also have it aliased to my knowledge base folder for even easier searching.

alias search="fuz -p /path/to/knowledge-base/"

My Publishing Pipeline

Update for 2023

Posts | 2023-08-25 (updated 2025-10-26) | 6 min read
#gitlab #hugo #pkm #productivity #scripting #writeup
Series: Tech Behind the Blog

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…

Simple Self Organization

Posts | 2023-06-18 (updated 2025-10-22) | 4 min read
#opinion #productivity

This is a guide to a simple self organization/task management system I built for myself over the years.

From time to time I showed it to someone and they got some benefits from it, most adapted it to better fit their needs down the line, which is exactly what you should do with any kind of personal task management in my opinion.

Read more…

Hack Things Together

A Little Scripting Never Hurt Anybody

Posts | 2023-04-27 (updated 2025-10-22) | 3 min read
#automation #opinion #productivity

Sometimes you have to do a specific task and you are fully capable of doing it manually, however those tasks are also great to flex your muscles and hack something together.

They can be an excellent tool to sharpen your skills with the tools you use regularly, and improve your quick prototyping skills.

In addition, with a couple of iterations, again sharpening an important skill, you could afterwards create a more general purpose tool from a hacky script.

Read more…

DigitalOcean CLI Cheat Sheet

Notes | 2023-04-15 (updated 2025-10-25) | 1 min read
#bash #digitalocean #doctl #infrastructure #productivity

Read more…

My Thoughts on AI in Blogging

Posts | 2023-04-04 (updated 2025-10-22) | 2 min read
#ai #opinion #productivity

Given the recent rise in text-based language models, sometimes called AI tools, I wanted to share my thoughts and experiences in using them, especially in the context of blogging.

Read more…

My Tools

Notes | 2022-11-25 (updated 2025-10-25) | 1 min read
#productivity #tools

Tools I use and recommend.

Self-Hosted Notifications

Posts | 2022-11-01 (updated 2025-10-22) | 3 min read
#notification #open-source #productivity #self-hosted #sysadmin

A notification of a failed backup on mkamner-code.local as displayed by ntfy.sh

Running any kind of personal infrastructure sometimes requires your attention based on certain events or failure states, no matter how much you automate tasks.

Over the years I have used E-Mail, Telegram bots and a variety of other tools for this purpose. However all of them have the drawback that they mix with other kinds of information and are not easilly usable in scripts.

Read more…