GIT_SSH_COMMAND

I 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

make a string url-safe

When 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-safe

Using mocha with ES6+ spec files

Okay, so the problem is obvious: we want to use mocha to run spec .js files written in ES6+ ( very likely with async await being utilised ‘cuz everybody loves ’em 😉 ). I’ll go ahead and state it upfront that: there is nothing special or challenging about this. I’m blogging this only for the sheer reason […]

Read More Using mocha with ES6+ spec files

npm dtrace-provider occasional issue

Context: if you use a node module having dtrace-provider as one of its dependencies, even primary or optional, once in a while you may notice a peculiar error spit out from your node processes: Error: Cannot find module ‘./build/Debug/DTraceProviderBindings’ This usually happens when I upgrade my Node.js version then go back to maintaining a few week […]

Read More npm dtrace-provider occasional issue

constant panic (my mac osx)

So, in the past month, my Mac has been automatically restarting itself times and times again. While there is a possibility that some part inside it broke down, I really don’t even wanna think about that. Instead, I’ll just attribute it to the fact that my SSD is already 93% full, and apparently the hibernate […]

Read More constant panic (my mac osx)