haykot.dev
  • Blog

  • Golang , Programming
    · August 21, 2023

    Distributed Locking With PostgreSQL

    Learn how to use Postgres native feature to coordinate work across several processes, acting as a mutex.

    3 Minute Read

  • Golang , Programming
    · May 5, 2023

    Writing Generic Mappers in Go

    In this short post, we’ll look at a generic implementation of a mapper functions, and how to extend it to support some common use cases.

    4 Minute Read

  • Self Hosted , Programming , DevOps
    · February 25, 2023

    Self Hosted Developers Guide - Part 1: Infrastructure

    In this series, I’ll be documenting my journey to self hosting my core development tools and infrastructure from git hosting, CI/CD, backups, container orchestration, and more. This article will cover the infrastructure I’ve set up for my development environment and continues integration.

    4 Minute Read

  • Golang , Programming
    · January 18, 2023

    Reduce Boilerplate in Go Http Handlers with Go Generics

    In this article I’m going to walk through how I’ve been able to reduce boilerplate code and ensure that my handlers have consistent behavior across my application.

    9 Minute Read

  • Programming , Git
    · March 26, 2022

    Deep Work, PR Review, and Git Hashes

    This week I’m starting a new practice to capture my weekly thoughts and notes and write them up in a weekly blog post. We’ll see how it goes!

    3 Minute Read

  • Programming , Golang
    · February 2, 2022

    TIL: Testing Parametrized URLs with Chi Router

    Today I learned that it’s possible to slightly decouple your http handler tests from your chi router. Well sort of…

    1 Minute Read

  • Programming
    · January 22, 2022

    2022 Dotfiles Highlights

    What’s new in my 2022 dotfiles? Mac on utilities, capturing aliases in functions and more!

    2 Minute Read

  • Python , FastAPI , Programming
    · August 20, 2021

    How to Improve The Jinja2 Experience with FastAPI

    While FastAPI is a great first choice for any API development in Python, it’s often not considered when your primary goal is to use Jinja2 templates to return HTML to the user. It’’s hard to match the Ecosystem and support that comes with Flask, but it’s easy to get started.

    3 Minute Read

  • Python , Programming
    · August 5, 2021

    Generating Blog Frontmatter

    I recently began the process of migrating my small blog from Ghost to a static site build with Nuxt. As apart of the process I wanted to create a small script that would automate some of the basic metadata creation the Nuxt can use to generate cards and sort content. Luckily, frontmatter in markdown is just yaml, making it easy to parse and manipulate.

    3 Minute Read

  • Programming , Home Automation
    · August 5, 2021

    SSH Login Notifications in Home Assistant With Node-Red

    This article will go over a basic setup on integrating SSH login notifications into Home Assistant using Webhooks and Node-Red.

    2 Minute Read

hayden's headshot

hayden@haybytes.com

Stay in Touch


Hayden's Blog List

Explore Blog About Me RSS
Social Bluesky Github LinkedIn