wasm-pack from scratch
Today I decided to try wasm-pack from scratch. Let’s walk the talk together and see what we pick up along the way!
Read More wasm-pack from scratchTech Blog of @khangdinh
Today I decided to try wasm-pack from scratch. Let’s walk the talk together and see what we pick up along the way!
Read More wasm-pack from scratchThis micro blog entry is for those who: use renderHook from @testing-library/react-hooks to test their own custom hooks want to assert that the custom hook did not throw So, by instinct, one probably would do sth along this line: The reason why the above approach doesn’t work is quite obvious, if you think about it. […]
Read More how to assert that your custom hook didn’t throwThis post is simply a collection of commands I use over the years when it comes to managing disk drives & partitions on Linux operation systems. This post only lists the commands themselves without discussing their arguments or detailed usages.
Read More useful linux commands to manage disk drives & partitionsToday I started poking around with e-Money. For those who have never heard of it: it is crypto money, and is behind several European stablecoins like eEUR, eCHF, eSEK, eNOK, eDKK. Here’s the project roadmap. Since this is a largely tech blog, I don’t intend to go into financial & other social aspects of crypto […]
Read More e-money journalSo, this blog post is simply a public “diary entry” announcing to the world that I’ve officially entered the world of blockchain. Now, this is late 2021 when I’m writing these lines. Blockchain itself started as early as 2009 (at least publicly – but definitely the idea was incepted from an even earlier point in […]
Read More Joining the world of blockchainSituation 1 Use mocha in server-side TypeScript projects with compilerOptions.paths in tsconfig.json ? Then we need: mocha tsconfig-paths ts-node { “ts-node”: { “files”: true } } in the tsconfig.json file (see more here) Depending on how we import our modules around in the codebase, point (4) above may not always be needed. In one of […]
Read More TypeScript Node.js testing tipsSo you had a super large git repo, and you only wanted to checkout a single branch (e.g. to potentially save some disk space). You probably have gone with: Now that you’re done with that branch, you want to checkout another branch for your next task. Not having “the entire history”, git will yell sth […]
Read More checkout another branch from a git repo that was cloned with –single-branch beforeHEAVY SPOILER ALERT. PLEASE STOP READING IF YOU HAVEN’T WATCHED THE ENTIRE SERIES
Read More Start-Up (the Netflix show)I’ve seen discussions on this topic scattered around the internet, so the idea of this post is to gather them all (at least, the most useful of them – imho) into 1 single chart, so they can be easily understood from a bird eyes’ view. The illustration below shows how 2 types of service can […]
Read More k8s service externalIPs vs NodePort in GKEI have a number of git repos on remote systems (e.g. GitLab) where my laptop’s pub key is already registered for a certain other account not associated with the aforementioned git repos. Thus, I usually have to GIT_SSH_COMMAND=’ssh -i <path/to/some/private/key>’ git <command> so as to communicate with these repos under the correct identity. I might […]
Read More GIT_SSH_COMMAND