Posts
Script to delete Dovecot files in MagicMail
Every once in a while, Dovecot goofs itself up when customers are using multiple devices at the same time to check their mail, and we need to delete some files to get it to allow customers to view their emails again. This is partially a manual process until we’re able to get it more automated, but the script below has made it a bit easier to deal with needing to delete them. ... Read more…
Import Exchange photos script
This script is useful for setting multiple Exchange photos at once. In our still on-prem deployment, this is probably the quickest way for us to set pictures in batches when we have new hires. This script is an amalgamation of a few different scripts I use in production, but mostly based off of a script from user Richard Diphoorn at powershell.org forums. My specific iteration of the task that works for our environment is copying the photo to the local user’s pictures directory, and then running this script to pull those files in. ... Read more…
Using SSH keys with git for Windows
I think everyone would agree that SSH keys are a much better way to authenticate than usernames and passwords. I really just love them. Anyway, I have a freshly reformatted Windows 10 computer that I was wanting to access my GitLab account from, and wanted to set it up with keys for pushing to projects. After installing Git for Windows, I wasn’t quite sure how it really worked until a little bit of Googling and of course help from StackExchange and playing around with some settings. ... Read more…
Using VirtualBox for the Splunker Udemy course
At work, we’ve been looking to take better advantage of our local Splunk infrastructure. It’s a bit lacking in its current state, so I have been looking into kicking it up a notch for that sweet, sweet in-depth look into what’s going on in our environment. Now as you can imagine, Splunk is a very large and daunting beast at first glance. There are seemingly infinite ways to use it depending on what exactly you want to get out of it, and you can really get a lot out of it if you want to. ... Read more…
PowerCLI install script
Credit for this information should go to Kyle Ruddy’s post on the VMware Blogs platform. I have just packaged it up into a PowerShell script for ease of deployment. Currently, this has been tested as of 6/11/2018, and is confirmed working on 64 bit Windows 10 builds 1709 and 1803 (which have PowerShell version 5). PowerCLI is running at 10.1.0 at the current date. Below is a paste of the script hosted on this site. ... Read more…
Adding binaries to the Git for Windows PATH
As WSL becomes more mature, I will surely start using it more than I use the Bash that comes installed with Git for Windows. But for now, my main Bash interface is through the Git Bash terminal. On my Windows computers for work (I don’t have much of a choice), I have a few scripts I like to port from my personal setup that I use frequently. One of the more relative ones that I figured I’d use as an example is my script to generate checksums for the scripts I upload. ... Read more…
Figuring out VLANs on the Zyxel GS1900-24
Every great network needs a great core switch, and I’ve found the Zyxel GS1900-24 to be perfect for my home’s needs. When I moved from DD-WRT on a WNDR3000 to a PC Engines APU2C4 running pfSense, I had to move the switching capabilities to an external device. This sent me out on a search for a new managed switch with gigabit networking capabilities and preferably 24 or more RJ45 ports. ... Read more…
Minifying a Hugo site with Gitlab CI
One of the things I love most about Hugo is the tiny size of the pages. Mine in particular uses very little JavaScript, so it loads very quickly and with minimal requests to the gitlab.io servers. Yet, ever since setting up the site, I’ve wanted to be able to make it even smaller. One of the quirks about Hugo is even if there isn’t anything to render in the partials or layouts for a page, it will still leave a blank line when the HTML is rendered. ... Read more…
Routing the guest wifi through OpenVPN in pfSense
When I originally bought my Unifi AP AC Lite, I hadn’t put much thought into guest access. I was mainly getting it to improve my own network connectivity, and to get an AP that was independent of my router for greater flexibility. At first, I was using DD-WRT as my core router and firewall, but I have since moved to pfSense on an PC Engines APU2C4 which provides even more features than DD-WRT. ... Read more…
Setting up Commento with Hugo
Update 15 Apr 2019 While Commento served its purpose fantastically, I have moved on to Isso. Update 11 Nov 2018 I have Commento working again on the site. Update 11 Jan 2019 Commento has stopped working on my VPS and I have disabled it while I try to troubleshoot and rebuild it. ... Read more…