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 highlightedlocalPATTERN=$1if[ -z "$1"];thenecho"Usage: color <pattern>"echo"Description: Greps input with --color=always -E 'PATTERN|\$' "echo"Example: echo \"hello world\" | color \"world\""return1fi grep --color=always "$PATTERN\|\$"}
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.
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.
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.
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.
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.