Skip to content

Instantly share code, notes, and snippets.

@SadProcessor
Created March 21, 2016 23:46
Show Gist options
  • Save SadProcessor/3e413f9542b01ee90979 to your computer and use it in GitHub Desktop.
Save SadProcessor/3e413f9542b01ee90979 to your computer and use it in GitHub Desktop.
Not intended for nefarious purposes...
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
##
[console]::beep(440,150)#A
[console]::beep(493,150)#B
[console]::beep(523,150)#C
[console]::beep(444,150)#B
Start-Sleep -m 20
[console]::beep(659,400)#E
[console]::beep(659,400)#E
[console]::beep(587,400)#D
[console]::beep(523,100)#C
[console]::beep(440,100)#A
Start-Sleep -m 50
##
[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(587,400)#D
[console]::beep(659,400)#E
[console]::beep(523,400)#C
[console]::beep(493,150)#B
[console]::beep(440,150)#A
Start-Sleep -m 20
[console]::beep(440,150)#A
[console]::beep(659,250)#E
[console]::beep(587,250)#D
Start-Sleep -m 200
##
[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
##
[console]::beep(440,150)#A
[console]::beep(493,150)#B
[console]::beep(523,150)#C
[console]::beep(440,150)#A
Start-Sleep -m 20
[console]::beep(880,600)#A
[console]::beep(523,400)#C
[console]::beep(587,400)#D
[console]::beep(659,100)#E
[console]::beep(587,100)#D
start-sleep -m 50
##
[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(587,400)#D
[console]::beep(659,400)#E
[console]::beep(523,400)#C
[console]::beep(493,150)#B
[console]::beep(440,150)#A
Start-Sleep -m 50
[console]::beep(440,150)#A
[console]::beep(659,250)#E
[console]::beep(587,250)#D
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment