Powershell script picking wisdoms from GoatOps
https://github.com/binford2k/goatops
PS> .\goatops.ps1 -Run
-------------------------------------------------------------------
<[ Goats don't have a particular preference between Java and C#. ]>
-------------------------------------------------------------------
\
\
)__(
'|oo|'________/
|__| |
V ||"""""""||
|| ||
# Example backup script
try {
....
} catch {
. C:\scripts\goatops.ps1
$goatWisdom = Get-GoatWisdom;
Write-Output "Backups failed...`n${goatWisdom}";
};
PS> .\backup.ps1
Backups failed...
-----------------------------------------------------------------------------------------
<[ Nobody can go through your goat and get you in trouble for what they find in there. ]>
-----------------------------------------------------------------------------------------
\
\
)__(
'|oo|'________/
|__| |
V ||"""""""||
|| ||
----------
<[ Meh! ]>
----------
\
\
)__(
'|oo|'________/
|__| |
V ||"""""""||
|| ||