k8s kustomize
k8s kustomize has always perplexed me (as a non-frequent user). Hopefully by writing this down, I’ll get more acquaintance with it.
Read More k8s kustomizeTech Blog of @khangdinh
k8s kustomize has always perplexed me (as a non-frequent user). Hopefully by writing this down, I’ll get more acquaintance with it.
Read More k8s kustomizeThis 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 throwSituation 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 beforeI 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_COMMANDI might classify this article under “rage post”, as it’s 4:30am and tomorrow’s early work prevents me from explaining things properly. Considering you have an nginx app proxying to /your/app.socket ; then the combination of the user and group and chmod value on the app.socket file itself & the directory containing it (in this example, […]
Read More nginx proxying to unix sockets: lessons learnedWhen running devops scripts (among other things), we often need to get a url-safe representation of an arbitrary string. This is commonly known as “url slug” by the average netizens. As my JavaScript is better than my bash, and npx is more universally available than my capability to master both Windows and Linux shell scripts, […]
Read More make a string url-safeHave you ever tried fetching a resource that would redirect to an HTTPS url whose SSL certificate is not recognised by your browser (or downright invalid)? Yep, of course the fetch will fail (in general). But how to catch it properly? Instinctively, one will probably think of something along this line: which is fair enough. […]
Read More good luck catching fetch redirection ssl errorPhoto by Mag Pole on Unsplash As a big fan of automation, I rarely decline an opportunity to setup a CI/CD flow for a new project, be it a React-stack website (with or without SSR), or a mobile application (native or cross-platform). A web application, be it based on Node.js, or PHP, or any other language, can be […]
Read More bitrise hangs during Xcode Archive & Export for iOSAlright, this is gonna be a big no brainer, but we’ve all spent 1 full hour looking for our glasses, wearing them the whole time, haven’t we? If you keep getting permission errors whenever you npm install (even if you’ve fully followed the official guide on how not to get npm permission error), then obviously […]
Read More npm install keeps showing permission errors?