Le petit script qui ne sert pas à grand chose

#1

Originally published at: https://powershell-du-zero.fr/2019/04/30/le-petit-script-qui-ne-sert-pas-a-grand-chose/

Un petit « hors-sujet » mais qui m’aura arraché un sourire lors d’un de ces difficiles matins où le sommeil vient à manquer.

  1. Mettez du son sur votre ordinateur
  2. Lancez Powershell
  3. Glissez les quelques lignes de code suivantes dans votre console PowerShell
  4. Validez avec Entrée
  5. Souriez

Star Wars

[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)
[console]::beep(659,500)
[console]::beep(659,500)
[console]::beep(659,500)
[console]::beep(698,350)
[console]::beep(523,150)
[console]::beep(415,500)
[console]::beep(349,350)
[console]::beep(523,150)
[console]::beep(440,1000)

Mission Impossible

[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(932,150)
Start-Sleep -m 150
[console]::beep(1047,150)
Start-Sleep -m 150
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(699,150)
Start-Sleep -m 150
[console]::beep(740,150)
Start-Sleep -m 150
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(932,150)
Start-Sleep -m 150
[console]::beep(1047,150)
Start-Sleep -m 150
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(784,150)
Start-Sleep -m 300
[console]::beep(699,150)
Start-Sleep -m 150
[console]::beep(740,150)
Start-Sleep -m 150
[console]::beep(932,150)
[console]::beep(784,150)
[console]::beep(587,1200)
Start-Sleep -m 75
[console]::beep(932,150)
[console]::beep(784,150)
[console]::beep(554,1200)
Start-Sleep -m 75
[console]::beep(932,150)
[console]::beep(784,150)
[console]::beep(523,1200)
Start-Sleep -m 150
[console]::beep(466,150)
[console]::beep(523,150)

Game of throne

[console]::beep(700,1000)       
[console]::beep(450,1000)     
[console]::beep(550,150)     
[console]::beep(620,150)     
[console]::beep(700,850)       
[console]::beep(450,850)     
[console]::beep(550,150)     
[console]::beep(620,150)     
[console]::beep(520,1000)  
Start-Sleep -m 200   
[console]::beep(620,1000)     
[console]::beep(420,800)     
[console]::beep(520,150)     
[console]::beep(550,150)     
[console]::beep(620,1000)     
[console]::beep(420,800)     
[console]::beep(550,150)     
[console]::beep(520,150)     
[console]::beep(450,800) 

Voila! Passez une bonne journée! 😀

1 Like