Home Assistant with DSM7

https://gist.github.com/maeneak/851e883eca7cddd7114f7eaed201ca9d has a pretty good guide in there. Create a data directory & docker-compose file:

Run a debug prob in a kubernetes cluster with gatekeeper

When attempting to run kubectl debug <node> -it --image=<image> blocked due to gatekeeper, you can do about the same with normal kubectl run command like below:

Capture bash command error in file

Neat trick to capture STDERR into a text file for the next command but also exit with the preserved exit code after then.

Lookup CMK for a test in CDK

Add a CMK in CDK was easy, then when I looked into a way to reference the resource using findResources, faced constant failure as for some reason CDK can’t really pickup the key based on the alias.

Extract TLD from string by bash

Faced this interesting use case when I need to extract TLD from the provided hostname string.

Old Twitter Deleter

https://twitter.han.life/ My new personal project automatically clean up old tweets.

Add HTTP auth username into envoy proxy logging

Oddly couldn’t find any useful copy & paste solution for this.

Sony WH-1000XM4 noise issue

My less than 6m old Sony WH-1000XM4 suddenly started making wind like static noise from the right side only.

fargate container healthcheck

Long story in short, unlike what https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html suggests, fargate doesn’t have curl.

Exclude a Kotlin subproject from Gradle Jacoco

In my project, one of the subproject is NodeJS hence the usual Jacoco setup: