One thing I wanted to add was site-wide search without any external dependencies.
Since I have previous experience with a tool called pagefind, which is perfect for this use case,
I implemented it with that.
Notes
| 2025-09-16
(updated 2025-10-25)
| 1 min read
#k8s#kustomize
Kubernetes resources have quite a lot of lists in them and replacing an item in such lists is quite easy
using kustomize patches with op: replace.
Replacing a specific list item safely however is not as obvious as the order of items could change,
leading to a technically valid but practically incorrect manifest.
Notes
| 2025-09-08
(updated 2025-10-25)
| 1 min read
#seo
There are loads of better ways to do this using Google Search Console / Bing Webmaster Tools / ahrefs and similar tools.
Arguably these might be a bit too much for a small side project or a curious quick check,
so this is how I do it. The same syntax works for both Google and Bing.
Notes
| 2025-07-02
(updated 2025-10-25)
| 1 min read
#git
Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible.
Git documentation has this chicken and egg problem where you can’t search for how to get yourself out of a mess,
unless you already know the name of the thing you need to know about in order to fix your problem.
Oh Shit, Git!?! is a collection of these situations, in plain English, and how to resolve them.
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\|\$"}
DNS is something so fundamental to most of our systems functioning that it’s often overlooked in initial troubleshooting,
it’s also incredibly hard to troubleshoot if it’s only intermittently failing.