Scenario, you’re on a Windows Server and don’t want to or can’t install a zip program. This script will help you create a zip file without any special program. Caveat: Currently this does not give you any kind of status so it could seem to be doing nothing for a…
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
PowerShell – Test Port
Similar to CMD Telnet this PowerShell will test a port for you based on certain parameters. Reference: http://www.travisgan.com/2014/03/use-powershell-to-test-port.html
Embarcadero Delphi – Battery Indicator/Check
If your application runs on a computer or device that has a battery it’s helpful to know the battery level. Setup your application canvas with 3 labels, 1 Gauge (progress bar) and 1 timer. To keep it simple I’m not changing the names of the elements so you should have:…
Azure PowerShell – Create Virtual Network Within Resource Group
This is still a work in progress to include all the variables but the script below will create a Resource Group then create a Virtual Network with 3 subnets and a gateway along with custom DNS.
Mac OSX Terminal – Get Artist and Song From iTunes PlayList Export
There are more elegant ways to do this but I got bored and thought I’d do something that is only done with base Mac OSX tools
Azure Red Hat – RHUI Update
Most of the this script is based on the document “Red Hat Update Infrastructure (RHUI) for on-demand Red Hat Enterprise Linux VMs in Azure” at https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-update-infrastructure-redhat?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json My change will first check if the update was already installed, if not it will follow the process to install See updates at: https://gitlab.com/Kittell-RedHat/AzureRepo/raw/master/AzureRedHatRepoUpdate.sh
Windows CMD – Disk Partition and Format with DiskPart
NOTE: This is not put in code as it can be VERY difficult reverse the process below. ONLY do this if you have a clue of what you are doing . This process has been tested on a USB Hard Drive, Thumb Drive, and Physical (Internal to computer) Hard Drive…