Errors and Fixes using AWS CloudFormation to Deploy Shell Scripts via AWS Systems Manager Associations

While developing a CloudFormation template recently, I received a variety of different error messages from the AWS CloudFormation service. These errors predominantly were centered around the AWS Systems Manager service, which enables you to perform automation tasks. One such automation task that I wanted to perform was to deploy a shell script to an Amazon … Read moreErrors and Fixes using AWS CloudFormation to Deploy Shell Scripts via AWS Systems Manager Associations

[Video] Improving Randomness in the Get-Random PowerShell Command

Although it may seem like the Get-Random command in PowerShell provides random data, it actually returns data that is more predictable than you think. If you’re looking to generate some truly “interesting” data for your project, then you’ll want a better approach. In this video, we’ll explore the limited randomness of the Get-Random command, using … Read more[Video] Improving Randomness in the Get-Random PowerShell Command

Rescan SCSI Controller on Linux to Detect New Disks

I am running Ubuntu Linux virtual machines on VMware ESXi (vSphere Hypervisor), and needed a mechanism to add SCSI disks to VMs without having to reboot. After adding the disk in VMware ESXi, the disk still wasn’t visible to the guest operating system. It seemed like I needed some mechanism to force Linux to rescan … Read moreRescan SCSI Controller on Linux to Detect New Disks

Fixing a git clone error: protocol error: bad line length character: logi

This morning, I ran into a new issue doing a simple git clone command on Windows 10, from a PowerShell console. It turns out that it was just a mistake on my part (surprise, right?). Let me describe my train of thought to you. I wanted to clone a repository, so I ran this command. … Read moreFixing a git clone error: protocol error: bad line length character: logi

Wipe disk and create a new VMFS Datastore in VMware ESXi

Recently I installed VMware ESXi on a spare laptop, to expand my local infrastructure at home. During the installation of ESXi, I selected an option to wipe the main disk and install ESXi over top of it. However, I had a secondary SSD installed in the laptop as well, which wasn’t touched at all during … Read moreWipe disk and create a new VMFS Datastore in VMware ESXi

Build Docker Container for PowerShell on Raspberry Pi

If you want to run PowerShell applications on your Raspberry Pi, you can run them inside a Docker container. Keep in mind that you can’t use Docker images that were built for the Intel x86 platform, because the Raspberry Pi uses an ARM processor. You can build your own Docker container, with PowerShell Core edition … Read moreBuild Docker Container for PowerShell on Raspberry Pi

JavaScript alternative to range() function to iterate over array items

JavaScript doesn’t have a built-in range() function. This can be useful to perform an iteration a certain number of times. As an alternative to this, you can use a JavaScript array. If you don’t care about the actual values from range(), and just want to iterate “x” number of times, you can do so by … Read moreJavaScript alternative to range() function to iterate over array items

Delete Old Ubiquiti EdgeRouter Firmware

The directions to upgrade firmware on the Ubiquiti EdgeRouter X suggest that you can optionally delete the old firmware, before adding the new one. I elected to skip this step, in case I needed to roll back for some reason. However, after performing the firmware upgrade, and rebooting the device, I felt comfortable cleaning up … Read moreDelete Old Ubiquiti EdgeRouter Firmware

Quick Solution for npm publish “Operation Not Permitted” Error

I recently set up Verdaccio, an open source npm private registry, as a Docker container. This is incredibly easy, using a couple of PowerShell commands: When I tried to publish a scoped npm package to this private registry, I received an ugly, generic-looking error message (see below). PS C:\git\node-diskscan> npm publish npm notice npm notice … Read moreQuick Solution for npm publish “Operation Not Permitted” Error

Use Elmer’s Spray Adhesive for 3D Printing

I’ve been using my Creality CR-10 3D printer to build some models. One of the challenges you’ll encounter, if you’re new to 3D printing, is getting your 3D print to adhere to the bed of your printer. If your print job doesn’t adhere to the bed, then it is subject to warping, or worse, total … Read moreUse Elmer’s Spray Adhesive for 3D Printing