Author: Josh Sherman
-
Find unused npm dependencies
As much as I love to sling code, I love that we live in a world where you can stand on the shoulders of giants and easily leverage other people’s hard work by way of Open Source libraries. Simply referred to as “dependencies”, these little code gems can save a…
-
Run command instead of alias
Recently, a buddy of mine was having some issues with Homebrew after upgrading to Big Sur. After doing the Googling he could have done on his own, I came to realize that he needed to manually upgrade to the latest version, that was compatible with Big Sur. He said he…
-
Case statements in shell script
While I do love the command-line, and will throw shell script at most problems if it’s the right tool for the job, it’s actually fairly rare that I write case statements. Generally speaking, my shell scripts will usually interrogate a variable or two, never too crazy or anything. With that,…
-
$5 VPS Showdown – April 2021 – DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr
This month is some what of a special one. First, DigitalOcean recently had their IPO, which helps further legitimizes them as a company. Also, this marks the first month where I’m doing both a $5 and $6 VPS Showdown. I know some of you probably want to see a comparison…
-
$6 VPS Showdown – April 2021 – DigitalOcean – Premium Intel vs. DigitalOcean – Premium AMD vs. Vultr – High Frequency
By popular demand, I am now doing a $6 VPS Showdown to compare the “premium” offerings from both DigitalOcean (which are fairly new) and Vultr (which have been around for a while). In the past, I did include Vultr’s High Frequency plan in my $5 VPS Showdowns, but it always…
-
Repeating Strings in JavaScript
While cleaning up some of my old notes today, specifically stuff I jotted down that would make for a good blog topic, I happened upon the topic of repeating strings in JavaScript. Things are really easy in ES6+, but if you happen to still support Internet Explorer for some crazy…
-
Uninstalling dev dependencies with npm
While looking into some deployment issues recently, I ran into some logic that was in dire need of being refactored. The logic in the build process was installing all dependencies with npm, then removing the node_modules directory, just to install the production dependencies again. Yes, you read that right, the…
-
Automatically update Arch Linux mirrors
Arch Linux is still my favorite Linux distro for desktop use and once you get it set up (which may take you a few tries, if it’s your first foray) it tends to be pretty solid. That is, until you start seeing 404 error messages when you run pacman, yay,…
-
Delete all files in an S3 bucket
Last year I had sunset a project that was using both AWS’ S3 and Linode’s S3-compatible object storage offering. After pulling down some final snapshots, I wanted to delete the buckets on both services. Similar to the error you receive when you attempt to rmdir a directory with files in…
-
VPS Showdown – March 2021 – DigitalOcean vs. Lightsail vs. Linode vs. UpCloud vs. Vultr
Hot on the heels of Linode offering up AMD EPYC processors, DigitalOcean has started to offer “premium” CPUs as part of their Shared CPU Basic plans. Unfortunately, this new offering comes with a slightly elevated price, clocking in at $6 per month instead of $5. This new product offering lines…