-
How to make websocket requests from CLI
We normally use cURL requests to easily encapsulate and share HTTP requests with teammates. To perform websocket requests from the CLI, we can make use of websocat, a CLI client for performing websocket requests. Creating a websocket subscription and sending payload Command line result Result of the command would look something like this: The full…
-
Tome.gg: How to leverage what you master in games
If you have been following my blog, you would know that I love learning. I love learning so much, that I find myself drawn to it whatever it is I’m doing- whether that’s talking to my friend that just recently became a father, playing competitive e-sports games, learning about in-game economics as I optimize my…
-
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…
-
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…