← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 142
  1. Excalidraw Figures in Hugo

    I love drawing things, especially in Excalidraw!

  2. Introducing snippethost.gitlab.io

    It is no secret that I’m no big fan of GitHub and it’s dominance in the VCS-ecosystem.

  3. Devlog 2026-01-04

    Over the holidays I’ve been diving deep into build systems in general and container builds in particular.

  4. Static Site Generator Fulltext Search

    I recently rebuilt my blog from scratch, see the previous post in this series.

  5. Remaking My Blog From Scratch

    I’ve been blogging in one form or another for 5 years now.

  6. Hugo Environment Variable Magic

    You can overwrite hugo configuration values with environment variables!

  7. Hacking Comments Into JSON

    JSON does not natively support comments, which is OK, but sometimes a comment could really help.

  8. Finding PID Everywhere

    Usually at least one of those is present on any system top htop / another top variant ps But sometimes the usual suspects are not available, especially in minimal containers.

  9. Replace item in list with 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.

  10. Easy Backlink Check

    There are loads of better ways to do this using Google Search Console / Bing Webmaster Tools / ahrefs and similar tools.

  11. Oh Shit, Git!?!

    Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible.

  12. Caddy: Custom Domains for SaaS

    Building custom domains for your SaaS is not always easy, especially when certificates get involved.

  13. Guest Appearance: Nginx Community Chats

    I had the pleasure of joining Dave McAllister, Senior Open Source Technologist for NGINX, on the NGINX Community Chats to talk about tech playground.

  14. Colorize pattern on CLI

    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 m…

  15. kubeswitch: The kubectl for operators

    kubeswitch (lazy: switch) is the single pane of glass for all of your kubeconfig files.

  16. pip install from git repository

    Install a pip package from a git repo, using a specified git reference:

  17. DrawKit

    Hand-drawn 2D & 3D illustrations, icons and animations.

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

  19. GitLab Copy & Paste: Added Backticks

  20. Doing local development on a bunch of interconnected services I often want to start multiple long running server processes.

  21. kubectx & kubens

    When working with multiple Kubernetes clusters and namespaces switching context can be a chore.

  22. Simple Redirect View for Django

    I often find myself replacing an existing MVP based on static html with a Django app, or just needing to preserve some old URL scheme.

  23. Cleanup After Script Exit

    Many of my scripts work with temporary files, usually relative to the scripts directory1, while at the same time using set -e to exit as soon as something fails.

  24. iperf Cheatsheet

  25. Vault CLI in Containers

    In many CI/CD workflows interfacing with Hashicorp Vault is required.

  26. Caddy: Manual Maintenance Mode

    Coming from NGINX and others the concept of a maintenance mode that can be manually enabled is something I have used many times before.

  27. Caddy

  28. Find files and folders with spaces

    On Linux/Unix/MacOS: find . | grep " " On Windows: Get-ChildItem -Path "."

  29. PicoCSS Sticky Footer

    A sticky footer using [[picocss]] html, body { height: 100vh; } body > footer { position: sticky; top: 100vh; }

  30. When using Renovate it can sometimes be required to run a specific manager only on a sub-set of the matching files.

  31. HaProxy: Think About DNS Resolution

    By default HAProxy resolves all DNS names in it’s config on startup and then never again.

  32. sed: Delimiter Issues

    When doing variable substitution with sed things break if the value contains the delimiter used by sed.

  33. JQ Cheatsheet

  34. Interactive Containers Cheatsheet

    Most of these should work the same with any OCI compliant client.

  35. Windows 11: Taskbar

    For some reason Microsoft, in their infinite wisdom, decided to no longer support moving the taskbar to other edges of the screen with Windows 11.

  36. fileName="my-file.yaml" find .

  37. Often times we need the current date (and time) when scripting inside bash or other shells.

  38. Managing Multiple Kube Config Files

    This is a simple script that takes multiple kube config files and deeply merges them into one.

  39. Wait for Port to Close Using Ansible

    Sometimes it is useful to wait for a port to be closed, for example when updating an app that can’t always properly be shut down using other Ansible modules.

  40. PicoCSS

    My preferred minimalistic CSS framework, which is usually enough for small websites and even simple SaaS apps.

  41. Navigate to Script Directory

    Often times when writing scripts I want to reference files in the same directory, but keep the script portable in case it is part of a git repository being checked out somewhere else or just the folder getting moved.

  42. Show Size of Elements Using JavaScript

    I was recently doing a lot of layouting pages to later be printed, so showing how big certain elements are was of help to me.

  43. My First Show Hacker News

    A while back I built tech-playground.com, which I describe like this: A playground that runs your config on real servers for you, a bit like CodePen for server tech.

  44. Spread Elements Vertically Using CSS

    Using flex children can easily be positioned vertically in their parent container.

  45. Debugging CSS Layouts

    When debugging issues with CSS layouts it can sometimes be tricky to really understand what is going on.

  46. Simple Copy Button Using JavaScript

    I often find myself wanting a simple copy button in my web projects.

  47. Sometimes, when working with externally generated content you might want to make links clickable when rendering it in the client.

  48. Debugging Container Workloads

    Debugging container workloads can be a challenge sometimes, especially when running them in k8s, behind a reverse proxy or in other, possibly complex, traffic flow scenarios.

  49. Register all models with Django admin

    Sometimes, mostly when throwing together a quick idea or MVP, it can be useful to just register all models with the admin and leave proper customization for later.

  50. Add fields to list with Kustomize

    How to add things to a list using kustomize.