Open Terminal Sessions on EC2 Instances in your Web Browser

Amazon Web Services (AWS) just recently announced support for running terminal sessions on your Amazon EC2 instances directly inside of your web browser. This feature works with both Bash on Linux and PowerShell sessions on EC2 instances running Windows Server. AWS Systems Manager is the service that introduced this new functionality, by way of a … Read moreOpen Terminal Sessions on EC2 Instances in your Web Browser

Motorcycle vlogging via Bluetooth / Android

Overview If you’re a motorcycle rider, like me, you might be interested in recording audio and video during your rides. Recording your ride can offer both entertainment and security. I bought a Bilt Techno 2.0 Evolution modular helmet from Cyclegear, which also included an integrated Sena DWO-5 headset (Sena SMH-5 equivalent functionality). This headset works … Read moreMotorcycle vlogging via Bluetooth / Android

Set up a PowerShell and .NET Development Environment with AWS Cloud9 and Amazon EC2

Background Amazon Web Services (AWS) Cloud9 provides a cloud-based Integrated Development Environment (IDE) where you can author, test, and deploy your .NET Core and PowerShell-based applications. You can connect to your Cloud9 IDE using a web browser. One of my favorite features offered by Cloud9, that enables developers to comfortably use it, is the support … Read moreSet up a PowerShell and .NET Development Environment with AWS Cloud9 and Amazon EC2

Initialize a Byte Array in PowerShell

Sometimes you’ll need to initialize a new buffer as an array of bytes. For example, if you want to generate random data using the NextBytes() method on the System.Random class,  you need to pass in a byte array buffer for the method to write to. Creating a byte array in PowerShell may not be immediately … Read moreInitialize a Byte Array in PowerShell

Keep AWS PowerShell Module Updated on Mac OS

Are you on Mac OS and need to keep your AWS PowerShell module up-to-date? As you’ve probably noticed, there are frequently new versions of the AWS PowerShell module being released, to keep pace with new services and service features being added to Amazon Web Services (AWS) cloud. Updating PowerShell modules manually can take up extra … Read moreKeep AWS PowerShell Module Updated on Mac OS

PowerShell Intellisense: ScriptBlock Handler Parameters

I keep forgetting the names of the parameters that are passed into the ScriptBlock handlers for PowerShell Intellisense (aka. tab-completion / auto-completion). Hence, I’m posting the list of parameters here, along with a simple example. $commandName – the name of the PowerShell command that Intellisense was invoked for. $parameterName – the name of the parameter … Read morePowerShell Intellisense: ScriptBlock Handler Parameters

Restore Default PowerShell Gallery Repository

If you’ve accidentally deleted the PowerShell Gallery (PSGallery) repository from your system, you can restore it using the following command. Register-PSRepository -Default In fact, if you try to re-register the PowerShell Gallery using the same method that you’d register a custom repository (see below) … $Repository = @{ Name = ‘PSGallery’ SourceLocation = ‘https://www.powershellgallery.com/api/v2/’ PublishLocation … Read moreRestore Default PowerShell Gallery Repository

Develop Binary Cmdlets for PowerShell Core on Mac OS X

2017-07-13: This article was updated to reflect a new beta of the PowerShell SDK. Have you wanted to develop binary cmdlets using C# .NET for PowerShell Core on Mac OS X or Linux? If so, you and I are in the same boat. In this document, I’ll cover the steps necessary to develop C# cmdlets … Read moreDevelop Binary Cmdlets for PowerShell Core on Mac OS X

Change VSCode Integrated Terminal to PowerShell

Visual Studio Code :: Integrated Terminal Setting

Visual Studio Code is an excellent developer tool for PowerShell projects. However, regardless of which type of project you’re developing (C#, Node.js, Python, etc.), you can benefit from changing your default shell to the powerful, object-oriented PowerShell shell. Now, you may not want to change your default shell for the entire operating system. VSCode thankfully … Read moreChange VSCode Integrated Terminal to PowerShell

Write PowerShell Modules, not Scripts

Write PowerShell Modules, Not Scripts

When you think of PowerShell, is writing a PowerShell “script” one of the first things you think of? If so, I implore you to read on and think about the next time you write any PowerShell code. During the rest of this article, I’ll attempt to describe a gap I’ve identified in the PowerShell ecosystem, … Read moreWrite PowerShell Modules, not Scripts