Skip to content

Instantly share code, notes, and snippets.

@001SPARTaN
Created April 10, 2018 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 001SPARTaN/6f92a04740f369cb2be9500ffb7ff314 to your computer and use it in GitHub Desktop.
Save 001SPARTaN/6f92a04740f369cb2be9500ffb7ff314 to your computer and use it in GitHub Desktop.
A ritual to invoke the favor of the demo gods.
#DemoGod
###########################
Function Invoke-DemoGod{
[Alias('DemoGod','ShowMeWhatYouGot','GiantHead')]
Param(
# No Speech
[Parameter()][Switch]$Silent,
# Head Only
[Parameter()][Switch]$NoText
)
# Head
$Head = @("
___
. -^ ``--,
/# =========``-_
/# (--====___====\
/# .- --. . --.|
/## | * ) ( * ),
|## \ /\ \ / |
|### --- \ --- |
|#### ___) #|
|###### ##|
\##### ---------- /
\#### (
``\### |
\### |
\## |
\###. .)
``======/
 
 
")
# Banner
$Banner = @("
___
. -^ ``--,
/# =========``-_ ____ _ _ __ _ _ _ _ ____
/# (--====___====\ / ___)/ )( \ / \ / )( \ ( \/ )( __)
/# .- --. . --.| \___ \) __ (( O )\ /\ / / \/ \ ) _)
/## | * ) ( * ), (____/\_)(_/ \__/ (_/\_) \_)(_/(____)
|## \ /\ \ / |
|### --- \ --- | _ _ _ _ __ ____
|#### ___) #| / )( \/ )( \ / _\(_ _)
|###### ##| \ /\ /) __ (/ \ )(
\##### ---------- / (_/\_)\_)(_/\_/\_/(__)
\#### (
``\### | _ _ __ _ _ ___ __ ____
\### | ( \/ )/ \ / )( \ / __) / \(_ _)
\## | ) /( O )) \/ ( ( (_ \( O ) )(
\###. .) (__/ \__/ \____/ \___/ \__/ (__)
``======/
 
 
")
## ACTION
Clear
sleep -sec 1
if(!$Silent){
# Load Voice Stuff
Try{
Add-Type -AssemblyName System.speech
$SpeechSynth = New-Object System.Speech.Synthesis.SpeechSynthesizer
#adjust voice settings
$SpeechSynth.volume=90
$SpeechSynth.Rate=-7
}
Catch{Write-Warning 'Could Not Load voice...'}
}
If($NoText){$Head}
Else{$Banner}
If(!$Silent){
Start-Sleep -Mil 50
# Speak
Try{$SpeechSynth.SpeakAsync("Show Me What You Got") | Out-Null}Catch{}
}}
######End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment