-
Engine and deck building: how to assess opportunities
When playing a trading card game, how many cards are you able to take per turn from your deck? How many different decks do you have access to? Do you leverage your present turns such that it reinforces the you already have? Today we explore the concept of evaluating life similar to how trading card…
-
Recover lost commits from git push –force
Today I learned how to retrieve accidentally lost commits pushed to remote (via –force). I accidentally overwrote a co-worker’s committed changes and my own revisions on his branch using git push –force origin/branch! I freaked out at first realizing how grave the mistake I made. I panicked at first, like any child would panic after…
-
How to Generate YAML-based table definitions with dbtoyaml
Today I extended an existing tool that generates your table definitions as YAML by inspecting your PostgreSQL db using Pyrseas. It’s a very minimal install. My addition was to make it work with only need Docker, and optionally Fish Shell in case you want to take advantage of a convenience script I made. Head over…
-
How to fix Viper unmarshal error for nested structs
In times when you’re trying to unmarshal a config file using viper, check whether your config file has nested yaml structures. As shown in the example above, there are multiple layers of structs under providers (i.e. payment contains dwolla). The different with service is that its fields are set only in one level. If your…
-
How to send Keycloak events as a webhook
Keycloak is a powerful IAM provider that offers numerous out-of-the-box features. In this blog post, we will discuss how to extend user jessylenne existing work on sending Keycloak webhook events to a third-party provider using Docker and Makefile, making the process more accessible to developers who aren’t primarily Java programmers. Prerequisites Resources The original git…
-
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…