This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$list = @" | |
1 Partridge in a pear tree | |
2 Turtle Doves | |
3 French Hens | |
4 Calling Birds | |
5 Golden Rings | |
6 Geese a laying | |
7 Swans a swimming | |
8 Maids a milking | |
9 Ladies dancing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-RickAstley(){ | |
[console]::beep(440,150)#A | |
[console]::beep(493,150)#B | |
[console]::beep(587,150)#D | |
[console]::beep(493,150)#B | |
Start-Sleep -m 20 | |
[console]::beep(698,400)#F | |
[console]::beep(698,400)#F | |
[console]::beep(659,500)#E | |
Start-Sleep -m 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Endless PowerShell Tetris tune | |
#adapted from https://gist.github.com/XeeX/6220067 | |
function Play-TetrisTuneForever(){ | |
While(1 -eq 1){ | |
[console]::beep(658, 125) | |
[console]::beep(1320, 500) | |
[console]::beep(990, 250) | |
[console]::beep(1056, 250) | |
[console]::beep(1188, 250) | |
[console]::beep(1320, 125) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################# | |
$t = "3rd party Code: If you can't read it, you shouldn't run it..." | |
############################################################################# | |
$V = @('a';'e';'i';'o';'u';'y';'A';'E';'I';'O';'U';'Y') | |
foreach($x in $v){$t = $t.replace($x,('"+$v['+($v.IndexOf($x))+']+"'))} | |
$t = '$V = @("a";"e";"i";"o";"u";"y";"A";"E";"I";"O";"U";"Y");'+'"'+$t+'"'|` | |
clip.exe | |
############################################################################# | |
# press F5 in console & ctrl-V into a new powershell console for demo # | |
############################################################################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Play-ImperialMarch(){ | |
[console]::beep(440,500) | |
[console]::beep(440,500) | |
[console]::beep(440,500) | |
[console]::beep(349,350) | |
[console]::beep(523,150) | |
[console]::beep(440,500) | |
[console]::beep(349,350) | |
[console]::beep(523,150) | |
[console]::beep(440,1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################### | |
# $$\ $$$$$$\ $$$$$$\ $$\ $$$$$$$\ $$\ $$\ $$\ # | |
# $$ | $$ ___$$\ $$ ___$$\ $$ | $$ __$$\ $$ | $$ | $$ | # | |
# $$ | \_/ $$ |\_/ $$ |$$$$$$\ $$ | $$ |$$ | $$ |$$$$$$\ # | |
# $$ | $$$$$ / $$$$$ / \_$$ _| $$$$$$$ |$$$$$$$$ |\_$$ _| # | |
# $$ | \___$$\ \___$$\ $$ | $$ __$$< \_____$$ | $$ | # | |
# $$ | $$\ $$ |$$\ $$ | $$ |$$\ $$ | $$ | $$ | $$ |$$\ # | |
# $L33tR4t\\$Kali$ |\$Linux | \$$$$ |$$ | $$ | $$ | \$ISO | # | |
# \________|\______/ \______/ \____/ \__| \__| \__| \____/ # | |
######################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################### | |
# $$\ $DEAD$\ $MOUSE\ $$\ EDITION\ $$\ V2\ $$\ # | |
# $$ | $$ ___$$\ $$ ___$$\ $$ | $$ __$$\ $$ | $$ | $$ | # | |
# $$ | \_/ $$ |\_/ $$ |$$$$$$\ $$ | $$ |$$ | $$ |$$$$$$\ # | |
# $$ | $$$$$ / $$$$$ / \_$$ _| $$$$$$$ |$$$$$$$$ |\_$$ _| # | |
# $$ | \___$$\ \___$$\ $$ | $$ __$$< \_____$$ | $$ | # | |
# $$ | $$\ $$ |$$\ $$ | $$ |$$\ $$ | $$ | $$ | $$ |$$\ # | |
# $L33tR4t\\$Kali$ |\$Linux | \$$$$ |$$ | $$ | $$ | \$ISO | # | |
# \________|\______/ \______/ \____/ \__| \__| \__| \____/ # | |
######################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Out-Loud(){ | |
Param( | |
#Message | |
[Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)] | |
[ValidateNotNull()] | |
[String[]]$Speech, | |
#Voice | |
[ValidateSet('David', 'Zira', 'Hazel')] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
____ _ _ ___ _ _ _ | |
| __(_)__| |_ / __| |_(_)__| |__ ___ | |
| _|| (_-< ' \\__ \ _| / _| / /(_-< | |
|_| |_/__/_||_|___/\__|_\__|_\_\/__/.v1 | |
"Life is like a box of FishSticks, you never know what you're gonna get..." | |
Benjamin Buford "Bubba" Blue - 1965. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##PoShSysX.v1 - WalterLegowski | |
<# | |
.Synopsis | |
PoShSysX: External SysInternal toolbox via PowerShell | |
.DESCRIPTION | |
This cmdlet generates a powershell string that can be run on the localhost (default) or used as scriptblock for other tool (via clipboard). | |
When executed, connects \\live.sysinternals.com\tools\ as PSDrive and runs .exe from that path. | |
Always latest version of tools. No install to disk. (But slower...) | |
.EXAMPLE |
OlderNewer