How To Extract The Audio From A YouTube Video In MP3 Format

By |2019-10-13T20:19:29+00:00October 13th, 2019|gist|

There are a lot of songs on YouTube. To make a copy of just the audio of a video on your computer, follow these steps: Install youtube-dl. If you're using a mac and use Homebrew, you can simply type brew install youtube-dl Then from the command line, type youtube-dl --extract-audio --audio-format mp3 <video URL>

Privacy and Security Tools

By |2019-11-05T14:21:44+00:00October 6th, 2019|blog|

For almost everyone This section is for almost everyone who isn't necessarily tech savvy, yet are still concerned about their privacy and security online. The following tips are designed to probably dramatically increase your privacy and security online in a way that's pretty easy to do, and free. When browsing the web, get Firefox, and [...]

How to call Freshbooks Classic directly in Node.js using axios

By |2019-07-12T15:54:30+00:00July 12th, 2019|gist|

I was using the freshbooks npm module, but started having issues with its dependencies as it was last updated 3 years ago. It turns out even though the payloads are in XML, it's not too bad calling their classic API directly once you know how. Of course, then you need to process an XML response. [...]

Speech Recognition For Speech to Text Using JavaScript

By |2018-12-27T10:04:33+00:00December 26th, 2018|blog|

I've been playing with Speech Recognition technologies for a long time now. But I never really liked it that people had to download and install an application on their computer to use my application. And then Google Chrome created an implementation for the Web Speech API. And it works great. To see a working demo [...]

How To Convert a JavaScript Object To A Query String

By |2018-12-17T22:25:03+00:00December 17th, 2018|gist|

Let's say you have a lot of query parameters you need to add to an Ajax request. For code maintainability, it's much cleaner to create a large JavaScript object, use string interpolation for the URL, and then adding a function that converts the JavaScript object to a query string. This is what it might look [...]

How to programatically extract YouTube captions as plain text

By |2018-08-14T17:30:17+00:00August 14th, 2018|gist|

YouTube automatically creates subtitles for a lot of videos that are uploaded to YouTube. So instead of paying to have your videos transcribed, you can upload your video to YouTube, and programatically download the subtitles. But it took me a while to figure out how to get those subtitles programatically. I started with youtube-dl, but [...]

How to safely store credentials in GitHub

By |2018-04-03T18:58:39+00:00April 3rd, 2018|blog|

It is actually pretty convenient to have credentials and keys stored in the same repository as your codebase. Of course this is unsafe, as anyone (if you're using public repos) can use those credentials to access your infrastructure (databases, servers, 3rd party APIs). So firstly if your code is not for public use, a private [...]

How to add a subdomain to an existing certificate using certbot

By |2018-02-28T06:07:20+00:00February 28th, 2018|blog|

You're probably reading this because you already have a Let's Encrypt certificate issued using certbot for a domain, and now want to add-on subdomains. If you want to create a new certificate, have a look at the end of this article. In my case I already had a certificate which covered golightlyplus.com www.golightlyplus.com I have [...]

How to automatically and permanently delete unwanted emails

By |2018-01-23T10:31:04+00:00January 23rd, 2018|blog|

Gmail provides the option to filter unwanted emails to your Bin. Click here for the instructions on how to do that. The emails though only get automatically permanently deleted after 30 days. So if you are trying to block someone from emailing you, and you have weak moments and end up checking the trash, you [...]