How to download youtube videos using open source softwareUPDATE (April 7, 2024)Oct 5, 2022Oct 5, 2022
Using Gauss summation to add numbers quickerGauss summation is essentially an easier way of adding linear numbers in a list without having to iterate over every element. I came across…May 1, 2022May 1, 2022
Sending myself text messages with my calendar events for the dayI can be a bit scatterbrained sometimes, and I wanted an easy way to jog my memory about events in the day, so I made a quick and dirty…Apr 9, 2022Apr 9, 2022
Published inJavaScript in Plain EnglishRSA Encryption in Node.js with Code SamplesA guide on RSA Encryption in Node.js with code samples.Feb 6, 2022Feb 6, 2022
Normalise whitespace in a string using regexTo normalise a string with extra spaces, for eg:Oct 19, 2021Oct 19, 2021
Generating a private RSA key for tests (Node.js)I had this use case of creating a private RSA key that is used only when the tests are run. Since the key doesn’t actually need to be valid…Oct 19, 2021Oct 19, 2021
A quick how to on encrypting things using Node’s crypto moduleI wanted to document something I had to do recently, which was to encrypt a password using a public key before sending it over the network.Oct 1, 2021Oct 1, 2021
Enforce that all keys in a map are a key of a certain type (Typescript)If you’re instantiating a new Map data structureSep 24, 2021Sep 24, 2021
Convert an OpenSSH key into an RSA PKCS1 formatI’m documenting this since I ran into a couple of snags while trying to convert an open SSH key (that doesn’t play well with Node) into an…Sep 15, 2021Sep 15, 2021
Published inWebtipsOffline HTTP status code reference in the command lineI built a tool that lets me look up definitions for HTTP status codes offline and straight from within the command line.Sep 6, 2021Sep 6, 2021