Skip to content

Instantly share code, notes, and snippets.

View xrstf's full-sized avatar

Christoph Mewes xrstf

View GitHub Profile
@xrstf
xrstf / findings.md
Created September 21, 2026 14:58
PM arch

Platform Mesh Operator Findings

This document summarizes what the platform-mesh-operator currently does, based on a careful read-through of the code in:

  • /home/xrstf/gospace/src/github.com/platform-mesh/platform-mesh/main/operators/platform-mesh-operator

The focus is on the operator's actual responsibilities today, especially the glue it provides between installed charts/components.


@xrstf
xrstf / release-notes.md
Created September 21, 2026 14:41
PM 0.5.2 notes

Platform Mesh 0.5.2

This release of Platform Mesh includes updates to multiple components.

Summary

This release includes 19 component update(s), including 1 with breaking changes 🔥.

Contributors

@xrstf
xrstf / userscript.js
Created August 23, 2026 11:38
YouTube timestamp recorder
// ==UserScript==
// @name YouTube Timestamp Logger
// @namespace local
// @version 1.3
// @description Press F8 on YouTube to save the current video ID and timestamp.
// @match https://www.youtube.com/*
// @grant GM.getValue
// @grant GM.setValue
// ==/UserScript==
@xrstf
xrstf / post.md
Created July 31, 2026 10:46
AI has turned me into a Junior developer.

It's early 2026. I had resisted the AI hype for a long time, but ultimately in January the perfect storm of customers and employers wanting AI to be used came true and so I caved in and installed Claude Code.

To get my feet wet, I first begun using Claude to build a small static personal web project, since Lord knows, I do not want to touch frontend development with a 10ft pole. And to be honest, it was amazing. Claude enabled me to realize my dream project that had been dormant since 2020. To type "can we make the logo a bit larger and move it to the center", press return and then see the website change within a few seconds was mindblowing. Within a few weeks and many, many brief Claude chats later, I have my project done and pushed it live. Bliss. A feeling of infinite possibilities, as if all blockers are now just an exercise in prompting an LLM correctly. Whether it's a testament to modern web development that I need an AI to center an image is a different question. :)

In parallel, AI made its way int

@xrstf
xrstf / with-sound.sh
Created August 12, 2025 20:28
play sounds depending on the exit code
#!/usr/bin/env bash
set +o errexit
"${@}"
EXIT_CODE=${?}
set -o errexit
SOUNDS_DIR="$HOME/bin/sounds"
SUCCESS_SOUND="yay-6120.mp3" # https://pixabay.com/sound-effects/yay-6120/
ERROR_SOUND="error-126627.mp3" # https://pixabay.com/sound-effects/error-126627/
@xrstf
xrstf / fix.md
Created July 19, 2025 12:42
Fix Windows filesystem permissions

Language Note

/D takes the localized values for yes/no, i.e. on a German system you need to give J or N.

Do it

Open a terminal with elevated privileges. Then run:

takeown /R /D J /F .
package main
import (
"context"
"log"
"time"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime"
@xrstf
xrstf / git-smart-prune.sh
Created July 11, 2024 22:35
git smart pruner
#!/usr/bin/env bash
# Use this when Github bugs out and refuses to delete your
# head branches after a PR got merged, even though you
# have enabled that behaviour in your fork.
set -euo pipefail
source $(dirname "$0")/src/lib.sh
@xrstf
xrstf / dum.sh
Created March 17, 2024 23:14
Drum!
#!/usr/bin/env bash
#
# Drum!
#
# Cause the repeated "docker run --rm -it" always sounds
# like "drumit" in my head.
#
# This script makes it easy to start a container.
#
@xrstf
xrstf / build.sh
Last active January 9, 2024 13:45
Generate Kubernetes GCP cloud-controller-manager.yaml
#!/usr/bin/env bash
set -euo pipefail
# This script should be placed in the root of the cloud-controller-gcp working copy.
cd $(dirname $0)
set -x
# re-generating the bazel output takes foreeeeeeever, so be careful when you