-
How to fix Viper unmarshal error for nested structs
Let’s say you have the following structs that you need to unmarshal using Go’s Viper library (Go configuration with fangs). It’s intended to parse the configuration file you have found on config.yaml on your root folder, which looks something like this: Symptom or Problem Sometimes you encounter unmarshalling errors when using viper.Unmarshal, or sometimes there…
-
How to send Keycloak events as a webhook
Keycloak is a powerful, open-source IAM provider that offers numerous out-of-the-box features. At the time of creating this blog post (2021), one key capability that Keycloak lacks is the ability to send webhook events to an external service. This blog post shows the step-by-step process to enable Keycloak to forward webhook events to a third-party…
-
I don’t want to make a goddamn song today
One of my favorite musical artists is Marc Rebillet. He makes songs using his voice, his organ, a loop mixer, and just simply creates. Watch along with me in awe as he brings into reality his love for his craft, his passion and life, and simply creates. Marc is somebody I look up to because…
-
Creating enum type tables on Hasura
So I recently streamed my late-night software development process (thinking out loud, walking through my thought process). A part of it was discussing how to create enum type tables using Hasura. I enjoy going through this process of thinking: moving from “I don’t know what to do” to the basic steps of “what do I…
-
The past, the present, the future me
Treating my past, present, and future selves as individuals that I interact with directly helps me optimize my life: increase happiness, reduce regrets, address laziness, and more. It is a mental model that teaches me how to be a good person- to myself. This generally guides my life. From this intra-personal omni-temporal relationship, I also…
-
Being human, wise, clever, and hardworking
There were only a few hours left until the culminating tech presentation my team and I were preparing for. I find myself grinding out the last few bits of code hoping, praying that things will work- a situation no developer wants to be in. Murphy’s Law comes to mind. Why am in this situation? I…
-
VSCode Integrated Terminal fills with D^[[
When you press ALT while your VSCode intergrated terminal is open, it sometimes fills the terminal with D^[[. Github user meganrogge notes that you can fix this by configuring a setting on VSCode. Specifically, you want to go to VSCode settings and uncheck/disable the Alt Click Moves Cursor setting. You can search altclickmoves and it…