Skip to content

Instantly share code, notes, and snippets.

@Dimtemp
Created November 2, 2023 15:02
Show Gist options
  • Save Dimtemp/20d8415b66269d97b5d92ec2766eae6f to your computer and use it in GitHub Desktop.
Save Dimtemp/20d8415b66269d97b5d92ec2766eae6f to your computer and use it in GitHub Desktop.
Message of the day
function Get-MessageOfTheDay {
<#
.SYNOPSIS
Displays a message of the dag.
#>
$msg =
'Knowledge is power -- Sir Francis Bacon',
'Power is the ultimate aphrodisiac -- Henry Alfred Kissinger',
'With great power comes great responsibility -- Uncle Ben',
'If computers get too powerful, we can organize them into a committee. That will do them in.',
"Nearly all men can stand adversity, but if you want to test a man's character, give him power. -- Abraham Lincoln",
'Never go backward. Attempt, and do it with all your might. Determination is power. -- Charles Simmons ',
"Power is like being a lady... if you have to tell people you are, you aren't. -- Margaret Thatcher",
'Power is always dangerous. Power attracts the worst and corrupts the best. -- Ragnar Lodbrok',
"There are 10 types of people who understand binary: those who do and those who don't.",
"I'm sure the universe is full of intelligent life. It's just been too intelligent to come here. -- Arthur C. Clarke",
"If you think it's expensive to hire a professional, wait until you hire an amateur",
'Why is it drug addicts and computer aficionados are both called users? -- Clifford Stoll',
"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something. -- Robert Heinlein",
"That's the thing about people who think they hate computers... What they really hate are lousy programmers. -- Larry Niven",
'Man is the best computer we can put aboard a spacecraft... and the only one that can be mass produced with unskilled labor. -- Wernher von Braun',
'Man is a slow, sloppy and brilliant thinker; the machine is fast, accurate and stupid. -- William M. Kelly',
'Old programmers never die... They just decompile. -- Peter Dick',
'Walking on water and developing software from a specification are easy if both are frozen. -- Edward V. Berard',
'Any smoothly functioning technology will have the appearance of magic. -- Arthur C. Clarke',
'Do. Or do not. There is no try. -- Yoda',
"I'm sorry Dave. I'm afraid I can't do that -- HAL 9000",
"Besides black art, there is only automation and mechanization -- Federico García Lorca"
# select a random message
$msg[(Get-Random($msg.length))]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment