X

PowerShell Terminal: Menu Template

I created this for part of a bigger project and figured it'd make a good generic template for any PowerShell script needing a basic menu using the up and down arrow keys and enter key to make a selection.  For…

PowerShell & Windows Task Scheduler: Trigger Audio Clip at Set Time Daily

Inspired by a scene in The Office, Season 8, Episode 6 where Andy plays Semisonic's "Closing Time" at the end of every workday, I decided to configure my computer to automatically do the same. The base script is pretty succinct.…

Schedule Windows Notifications with PowerShell (Windows Task Scheduler / Toast Notifications)

I’ve found too many times that I can sit in front of a computer screen for several hours without taking a break but that later in the day the eye strain catches up with me. I wanted something to remind…

Raspberry Pi: Schedule Print Job

After having a couple sets of ink cartridges dry up on me after extended non-use, I learned that I'd need to print something regularly to keep my cheap inkjet printer working. After ignoring a few of my own reminders to…

Security vs Usability – Paper I Wrote

Here's an 8 page paper I wrote for a systems administration class. The assigned topic was "security vs usability." Abstract In the field of information technology, usability and security are often seen as opposites where an increase in one comes…

Raspberry Pi – Minimal Headless Setup

For my own quick reference, mostly taken from here: See end of article if SD card was previously used. Download Raspbian from https://www.raspberrypi.org/downloads/raspbian/ Download and install Win32DiskImager from https://sourceforge.net/projects/win32diskimager/ Using Win32 Disk Imager, write the ISO to the SD card Add a…

Ubuntu: Resume Script in Terminal After Reboot

I needed to reboot in the middle of my shell script to install Kubernetes / Brigade, and my Googling found several people with similar questions, but no answers that quite worked for me. Here's the basic code just to get…

Self-Elevating PowerShell and Batch Scripts

Many scripts require admin permissions, but remembering to right click and select "Run as Administrator" can be a pain. Fortunately, both batch and PowerShell scripts can written so that they'll prompt for admin permissions if not run as an administrator.…