-
CentOS | Code | Fedora | macOS | PowerShell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
-
Azure | Code | MSSQL | MSSQL - Audit | SQL
Azure – MSSQL Server Information
Same as MSSQL Server Information but is specific to what will work in Azure
-
CentOS | Code | Fedora | macOS | macOS Shell | Red Hat | Ubuntu | UNIX | UNIX Shell Scripts
Linux/Unix/Mac OSX – Find & Remove Empty Directories
Occasionally you get empty directories and need to clear them out, these scripts below will help with that, just be careful what directory you choose. The scripts below are set to ~/ (current user home directory) but can easily be changed to any directory on your system. This first block will only list the empty…
-
UNIX – Extract RedHat/CentOS/Fedora RPM File
I love to find RPM files that someone has compiled so that I don’t have to do the manual work but when I find one at a questionable location or one I’m simply not familiar with it’s nice to know what is in it. Recently I did a search on RPMFind.net for Redis (https://www.rpmfind.net/linux/rpm2html/search.php?query=redis) I…
-
-
PowerShell – Azure – Create UNIX VM
If you have a need to create a few VMs it can get a bit tedious to build them in one of the various portals. Set the variables then let this script run. At some point I will create a function around this but for now the script works as is.
-
PowerShell – Disable Auto Run In Windows
Reference: http://stackoverflow.com/questions/14564380/how-to-disable-autorun-for-all-drives
-
Azure | Code | PowerShell
PowerShell – Azure – Get Certificate List
Working in Azure creating VMs with certificates it’s helpful to know what you have.
-
PowerShell – Azure – Get VM Image List
When installing a new VM in Azure it’s helpful to know your options Another example, say you are looking for a specific released version of Red Hat This command currently comes up with this as a response Get latest image
-
Code | macOS | macOS Shell | UNIX | UNIX Shell Scripts
Mac OSX Terminal – Turn off system sleep
If you use a Mac whether true server or a Mac Mini for a server this script below is very helpful to prevent the Mac from falling asleep and preventing the machine from being a server. If all of this still does not do it you can try to caffeinate your mac To re-enable sleep…