Use PowerShell to Persist Environment Variables

Persistent Environment Variables PowerShell

In PowerShell, you can easily create environment variables using a few different methods. However, these are only scoped to the current PowerShell process, and not to any process running inside the user’s profile, or any process running on the system. Here are a few examples of methods that you can …

Continue reading

Merge AVHDX Hyper-V Checkpoints

Hyper-V Edit Disk - Merge Action

When you create a snapshot of a virtual machine in Microsoft Hyper-V, a new file is created with the .avhdx file extension. The name of the file begins with the name of its parent VHDX file, but it also has a GUID following that, uniquely representing that checkpoint (sometimes called …

Continue reading

A Story of PowerShell Quoting Rules

PowerShell Quoting Rules

This will be a fairly brief article that talks about single quotes vs. double quotes in the PowerShell automation language. Single Quotes In PowerShell, single quotes are commonly used to define string literals. If you want to include a single quote inside of a single-quoted string literal, then you simply …

Continue reading

Designing Command Line Tool User Experience

Linux Terminal Running Docker

Introduction Software developers, infrastructure & DevOps engineers, and operational IT staff are heavy users of the command line. The benefits of the command line are clear: Commands are / should be readable Commands are repeatable Commands can be shared amongst a team (eg. via source control / chat / etc.) …

Continue reading

Digital Ocean Droplet – Linux VPS Review

I’ve been using the Digital Ocean Virtual Private Server (VPS) host on and off for a few months now, and I must say, they are incredibly easy to use! First of all, their web UI is simple, easy to use, and dare I say, enjoyable to use. They have one, and …

Continue reading

Find and Remove Package on Ubuntu Linux

I recently installed a couple packages that I didn’t need any longer on an Ubuntu Linux system. Most likely, you’ve installed packages using apt install or apt-get install. However, neither of these commands offer a command that lists out the packages that you’ve installed. To list out the installed packages, …

Continue reading

Hyper-V SecureBoot Error

I recently was trying to install Ubuntu Desktop 16 under a Hyper-V VM on Windows 10. Naturally, I downloaded the ISO image for the operating system, mounted it to a new Generation 2 Virtual Machine, and then proceeded to boot the VM. Unfortunately the VM was unable to boot to …

Continue reading

Select Unique Lines in Bash on Linux

If you have a file with repeated lines, and you want to remove duplicate lines, you can use the uniq command. The description of this utility, from its man page is simply: “report or omit repeated lines.” Consider the following example: trevor@MyUbuntuVM:~$ echo “this is is great” | uniq The output …

Continue reading

Azure Functions Error Message

Microsoft Azure recently introduced a new feature called Azure Functions. This service is, in some ways, very similar to the Amazon Web Services (AWS) Lambda service. Both services enable software developers to create scalable microservices using a Platform-as-a-Service (PaaS) model. In Microsoft Azure, the Functions feature is actually a component …

Continue reading

ncdu: Identify Large Files on Windows 10

If you’re looking for a solution to find large files (high disk utilization) on Windows 10, you’re in luck! In fact, you can even do this from the Ubuntu on Windows Bash console. There’s a tool called ncdu, which is short for nCurses du. “du” refers to the “disk utilization” tool …

Continue reading