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: ...

27 October, 2023 · Logan Han

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. ...

12 October, 2022 · Logan Han

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. ...

6 September, 2022 · Logan Han

Extract TLD from string by bash

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

25 June, 2021 · Logan Han

Old Twitter Deleter

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

24 June, 2021 · Logan Han