Same as MSSQL Server Information but is specific to what will work in Azure
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
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. Similarly if you…
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…
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…
PowerShell – Disable Auto Run In Windows
Reference: http://stackoverflow.com/questions/14564380/how-to-disable-autorun-for-all-drives
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
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…
Mac OSX Terminal – Get System Details
If you only have SSH access to a Mac OSX server and need some details on the machine you can use these commands to help. System_Profiler can get you a lot of the information you are likely looking for but it pulls a lot of information so initially you may…