Skip to content

Instantly share code, notes, and snippets.

@lazywinadmin
Created January 31, 2016 03:01
Show Gist options
  • Save lazywinadmin/437461113a8447f194cd to your computer and use it in GitHub Desktop.
Save lazywinadmin/437461113a8447f194cd to your computer and use it in GitHub Desktop.
Excuse for SysAdmins
function Get-Excuse {
(Invoke-WebRequest http://pages.cs.wisc.edu/~ballard/bofh/excuses -OutVariable excuses).content.split([Environment]::NewLine)[(get-random $excuses.content.split([Environment]::NewLine).count)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment