Ping from iDRAC:
racadm ping <ip>
Raw gist URLs follow the pattern below:
https://gist.githubusercontent.com/[gist username]/[gist ID]/raw/[gist commit ID]/[file name]
To view the latest version, simply remove the [gist commit ID] part:
https://gist.githubusercontent.com/[gist username]/[gist ID]/raw/[file name]
This is mostly an experiment with dynamic parameters in PowerShell.
It wraps around ColorTool.exe:
choco install colortool
and uses console themes from this repository:
| function Invoke-GridHistory { | |
| [Alias('ghistory')] | |
| param( | |
| $Filter = '*' | |
| ) | |
| Get-History | | |
| Where-Object CommandLine -Like $Filter | | |
| Select-Object -ExpandProperty CommandLine | | |
| Out-GridView -OutputMode Single | |
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
| $VerbosePreference = 'Continue' | |
| foreach ($vmh in (Get-VmHost)) | |
| { | |
| Write-Verbose "Move all VMs from $vm to $targetHost" | |
| $vmh | Get-VM | Move-VM -Destination $targetVMHost | |
| Write-Verbose "Send $vmh to Maintenance mode" | |
| $vmh | Set-VMHost -State Maintenance | |
| Write-Verbose "Restart $vmh" |
Use this in a function to exit on ESC, without overriding the ESC key globally.
GuiEscape:
Gui, Destroy
return