DCSIMG
Misc,PowerShell - Shay Levy

Shay Levy

If you repeat it, PowerShell it!

News


btn_donate_LG

View Shay Levy's profile on LinkedIn Follow Shay Levy at Twitter Shay Levy's Facebook profile Subscribe to my FriendFeed


site statistics




Browse by Tags

All Tags » Misc » PowerShell (RSS)
PowerShell Popcorn
My son heard all the alien beeps and asked me for this one, the Popcorn tune. I couldn't say no :) 1..2 | % { 1..2 | % {900,800,900,700,550,700,450 | % { [console]::beep($_,50); sleep -m 150}; sleep -m 250} 900,1000,1050,1000,1050,1000,1050,900,1000,900,1000,800,900,800,900 | % { [console]::beep($_,50); sleep -m 150} sleep -m 250 1..2 | % {900,800,900,700,550,700,450 | % { [console]::beep($_,50); sleep -m 150}; sleep -m 250} 900,1000,1050,1000,1050,1000,1050,900,1000,900,1000,800,900,1000,1050...
Scripting Sysadmin meme
In response to Steve's Scripting/Sysadmin Meme How old were you when you started programming? I was 27 when I started to write HTML/ASP pages. What was your first machine? My first real computer was Windows 95 PC. When I was 12 (I think), my uncle gave me a Texas Instruments (I can't remember the model name) but at that time I wasn't a computer geek. What was the first real script you wrote? Looping through ADO recordset and populating Active Server Pages (ASP). What scripting languages...
Close Encounters of the PowerShell Kind
Five tones: $notes = 900,1000,800,400,600 $duration = 400,400,400,400,1600 0..($notes.length-1) | % {[console]::beep($notes[$_],$duration[$_]) } Spaceship Siren: 1..10 | % { 370..470 | % { [console]::beep($_,5) }} Talking alien :) 900,500,1000,800,400,600,1200,300,200,500,1100,300 | % {[console]::beep($_,100)} CTP2 Alien: 1..20 | foreach { $rnd = (Get-Random -min 0 -max 20)*100 if ($rnd -eq 0) { sleep -m 10 } else { [console]::beep($rnd,100) } }