TIL === Here are the latest snippets from the /til directory: Date: March 1, 2026 ## TIL feed Here are the latest snippets from the /til directory: gh do I have a pr [1] 2026-03-02 08:47:44 +0000 UTCcli [2] double gutter [3] I keep forgetting about the double gutter problem with nested containers. When you put padding on a parent and the child also has padding, you get twice the spacing you wanted. ## The Problem ```css .container { padding: 2rem; } .child { padding: 2rem; } ``` Now your content is 4rem from the edge. Not what I meant at all.... 2026-02-14 09:12:42 +0000 UTCwebdev [4] diff kubernetes manifest with cluster [5] Like a dufus this morning I did a hard reset on a git repo for getting I was working on a manifest for. You see I generally use argo, but occasionally I have no idea what I am doing or want yet and I start raw doggin it, fully aware that I'm going to just nuke this namespace before getting... 2026-02-05 09:37:39 +0000 UTCkubernetes [6] format markdown with mdformat [7] I really wish I would have got this right a few years ago. Theres a couple of flags I had to use to get mdformat to do hard wraps at 80 characters and not wreck tables. This mix of flags and plugins is workign really well for me so far. ```bash mdfmt() { uvx \ --with "mdformat-ruff" \ --with "mdformat-beautysh"... 2026-01-19 20:41:14 +0000 UTCpython [8] opencode variants [9] Opencode is changing on the daily right now, today I noticed the word `low` pop up in Orange text in my opencode window. Looking into this they are exposing [variants](https://opencode.ai/docs/models/#variants) to the user. This allows you to change between fast or slow and thinking, the later taking more time to prepare before doing an action. ![Swapping Variants in opencode](https://dropper.waylonwalker.com/file/0b6bfe5e-41b0-4e44-8c5a-ff88739a770e.mp4) It... 2026-01-13 08:53:36 +0000 UTCai [10]llm [11]opencode [12] opencode init prompt [13] This is opencode's init prompt. ``` markdown Please analyze this codebase and create an AGENTS.md file containing: 1. Build/lint/test commands - especially for running a single test 2. Code style guidelines including imports, formatting, types, naming conventions, error handling, etc. The file you create will be given to agentic coding agents (such as yourself) that operate in this repository. Make... 2026-01-09 13:32:12 +0000 UTCllm [11] POG [14] **POG**: **P**lay **O**f the **G**ame - used to express shock or excitement after a noteworthy moment. 2026-01-08 20:17:27 +0000 UTCglossary [15] tpope vim-speeddating [16] Today I discovered [vim-speeddating](https://github.com/tpope/vim-speeddating) by tpope. I'm sure I've seen years ago but it did not click for my workflow until today. I often go through pictures from my phone for the past few days and make [[shots]] posts, but I want to date them to about when the image was taken most of the time. This allows me to... 2026-01-04 16:59:33 +0000 UTCvim [17] light mode screen recording css [18] Yesterday I wrote about a way to do [[ light-mode-screen-recording ]] to convert to light mode from dark mode with ffmpeg. I was wondering if it could be done entirely on the front end for web applications. Turns out you can. I'm sure there are limited wikis and site builders that don't allow adding style like this, but it works... 2026-01-02 10:29:10 +0000 UTCwebdev [4] light mode screen recording [19] I saw this tip from [Cassidoo](https://cassidoo.co/post/ffmpeg-dark-light/) and had to try it out for myself. I kicked on a screen recording right from where my terminal was, converted it, and it actually looks pretty good. ``` bash ffmpeg \ -i screenrecording-2026-01-01_10-10-49.mp4 \ -vf "negate,hue=h=180,eq=contrast=1.2:saturation=1.1" \ screenrecording-2026-01-01_10-10-49-light.mp4 ``` ![](https://dropper.waylonwalker.com/file/1c53dbcb-4b84-4e94-9f04-a42986ab3fa1.mp4) > Dark Mode ![](https://dropper.waylonwalker.com/file/de4e3378-6df2-45b1-84d5-0cc773ceb3c5.mp4) > Light Mode There are a few unsettling things... 2026-01-01 10:14:17 +0000 UTCffmpeg [20]dev [21] YouTube Gemini is Actually Useful [22] I've found Gemini to be very useful lately, especially for finding information within long form content. When writing [thought-896](https://thoughts.waylonwalker.com/post/896), I wanted to use a direct quote from Jeff Dickey, Gemini popped it out very quickly. ``` md give me a quote from jeff just before the timestamp I'm at the interviewer asked what makes a good cli and he started... 2025-12-22 10:09:55 +0000 UTCai [10] numbered posts in obsidian [23] I've been using this one for awhile now, I have a post type that I only edit from my phone, but I have all the post numbered. I set up a template in obsidian for using templater, the template goes right in the static site repo, I point templater to the templates directory and this has been working pretty seamlessly... 2025-12-13 22:28:28 +0000 UTCobsidian [24] git name status [25] `--name-status` is a great way to see what files have changed in a git diff alongside the status code. I recently used this in a script to create a report of new and modified files during a build. ``` bash git diff --name-status git diff --name-status origin/main git diff --name-status --staged git diff --name-status 'HEAD@{3 days ago}' ``` 2025-12-12 07:53:57 +0000 UTCgit [26] minecraft server memory [27] I learned to today that setting `MEMORY` on your minecraft server causes the JVM to egregiously allocate all of that memory. Not setting it causes slow downs and potential crashes, but setting `INIT_MEMORY` and `MAX_MEMORY` gives us the best of both worlds. It is allowed to use more, but does not gobble it all up on startup. In this economy... 2025-12-10 08:46:36 +0000 UTCkubernetes [6]compose [28]docker [29]homelab [30]minecraft [31] web snow fall [32] I found snow-fall component from [zachleat](https://www.zachleat.com/web/snow-fall/), and its beautiful... to me. I like the way it looks, its simple and whimsical. ## Install There is an npm package `@zachleat [33]/snow-fall` if that's your thing. I like vendoring in small things like this. ``` bash curl -o static/snow-fall.js https://raw.githubusercontent.com/zachleat/snow-fall/refs/heads/main/snow-fall.js ``` I generally save it in my justfile so that I remember how... 2025-12-09 10:21:17 +0000 UTCwebdev [4] check your kubeconfig expire time [34] Today I learned an important lesson that you should periodically check on your kubeconfigs expiration date. It's easy to do. You can ask for the client-certificate-data from your kubeconfig, decode it, and use openssl to get the expiration date. ``` bash kubectl config view --raw -o jsonpath='{.users[0].user.client-certificate-data}' \ | base64 -d 2>/dev/null \ | openssl x509 -noout -dates ``` !!!... 2025-12-08 20:59:27 +0000 UTCkubenetes [35] gh auth switch [36] When using two GitHub accounts the gh cli gives very easy `gh auth switch` workflow from the cli. !!! hint from the docs gh auth switch --help Switch the active account for a GitHub host. This command changes the authentication configuration that will be used when running commands targeting the specified GitHub host. If the specified host has two accounts,... 2025-12-07 10:55:55 +0000 UTCgh [37]cli [2]github [38] setup bambu-studio in distrobox [39] gpus are awesome [40] and I need one for Bambu Studio to be usable in a distrobox. Adding the `--nvidia` flag to `distrobox create` bind mounts the nvidia `/dev/` devices and sets up the necessary environment variables. Once we are in there are a couple of packages to install to make it work. ``` bash distrobox create --name bambu-studio --image archlinux:latest... 2025-12-06 21:17:39 +0000 UTClinux [41] k3s system-upgrade minor by minor [42] The k3s system-upgrade controller is a fantastic tool for upgrading k3s automatically. It has done a fantastic job for me every time I've used it. Today I ran it on a cluster that needed to upgrade several minors and I learned that the controller does not pick up on changes to the channel url if you change from minor to... 2025-12-05 09:25:39 +0000 UTCk8s [43]k3s [44]kubernetes [6] COLUMNS env var [45] setting `COLUMNS` env var to a number greater than 0 will make the terminal resize to that number of columns. ``` bash COLUMNS=80 uvx --from rich-cli rich myscript.py ``` !!! NOTE Not all programs respct the `COLUMNS` env var, but rich does, and a lot of stuff I'm building uses rich. I discovered this when I was trying to make... 2025-11-26 13:24:38 +0000 UTCpython [8]bash [46]terminal [47] References: [1]: /gh-do-i-have-a-pr/ [2]: /tags/cli/ [3]: /double-gutter/ [4]: /tags/webdev/ [5]: /diff-kubernetes-manifest-with-cluster/ [6]: /tags/kubernetes/ [7]: /format-markdown-with-mdformat/ [8]: /tags/python/ [9]: /opencode-variants/ [10]: /tags/ai/ [11]: /tags/llm/ [12]: /tags/opencode/ [13]: /opencode-init-prompt/ [14]: /pog/ [15]: /tags/glossary/ [16]: /til/tpope-vim-speeddating/ [17]: /tags/vim/ [18]: /light-mode-screen-recording-css/ [19]: /light-mode-screen-recording/ [20]: /tags/ffmpeg/ [21]: /tags/dev/ [22]: /youtube-gemini-is-actually-useful/ [23]: /numbered-posts-in-obsidian/ [24]: /tags/obsidian/ [25]: /git-name-status/ [26]: /tags/git/ [27]: /minecraft-server-memory/ [28]: /tags/compose/ [29]: /tags/docker/ [30]: /tags/homelab/ [31]: /tags/minecraft/ [32]: /web-snow-fall/ [33]: https://zachleat.com [34]: /check-your-kubeconfig-expire-time/ [35]: /tags/kubenetes/ [36]: /gh-auth-switch/ [37]: /tags/gh/ [38]: /tags/github/ [39]: /setup-bambu-studio-in-distrobox/ [40]: /gpus-are-awesome/ [41]: /tags/linux/ [42]: /k3s-system-upgrade-minor-by-minor/ [43]: /tags/k8s/ [44]: /tags/k3s/ [45]: /columns-env-var/ [46]: /tags/bash/ [47]: /tags/terminal/