Tag Archives: Fun

Puzzle

Just having a bit of fun with Powershell:

48 6F 6C 64 20 66 61 73 74 20 74 6F 20 64 72 65 61 6D 73 A 46 6F 72 20 69 66 20 64 72 65 61 6D 73 20 64 69 65 A 4C 69 66 65 20 69 73 20 61 20 62 72 6F 6B 65 6E 2D 77 69 6E 67 65 64 20 62 69 72 64 A54 68 61 74 20 63 61 6E 6E 6F 74 20 66 6C 79 2E A 48 6F 6C 64 20 66 61 73 74 20 74 6F 20 64 72 65 61 6D 73 A 46 6F 72 20 77 68 65 6E 20 64 72 65 61 6D 73 20 67 6F A 4C 69 66 65 20 69 73 20 61 20 62 61 72 72 65 6E 20 66 69 65 6C 64 A 46 72 6F 7A 65 6E 20 77 69 74 68 20 73 6E 6F 77 2E 20 A A 2D 2D 4C 61 6E 67 73 74 6F 6E 20 48 75 67 68 65 73

Solution:
convert-texttohexandback

»crosslinked«

Countdown to 2009

function CountDown
{
 While ((Get-Date).Year -lt 2009)
 {
  Clear-Host
  Write-Host “COUNTDOWN TO 2009:”
  (Get-Date “1/1/2009 0:00″) – (Get-Date) | Format-Table Days, Hours, Minutes, Seconds -AutoSize
  Write-Host “Countdown brought to you by:”
  Write-Host “http://www.peetersonline.nl
  Start-Sleep -Seconds 1
 }
 Clear-Host
 Write-Host “HAPPY NEW YEAR!”
 Write-Host “from Hugo at http://www.peetersonline.nl
}
CountDown

Happy Holidays to all of you!

TOP 10 Commandlets in a Oneliner

“It’s the time for lists”, I read somewhere today. Sure, that is true. But blogging little lists isn’t much fun.

So, I will let you generate your very own TOP 10 list. Use the following Powershell Oneliner to get a TOP 10 list of your most frequently used cmdlets in your scripts. (Remember to modify the path to your script storage location.)

Happy Holidays!

Get-ChildItem D:Scripts -Filter *.ps1 -Recurse |
 Select-String (Get-Command|%{$_.Name}) |
 Group Pattern |
 Sort Count -Descending |
 Select -First 10 |
 Format-Table Name, Count -AutoSize

Powershell Poker Game

There is more to life than just work. For that reason, and because I enjoy a puzzle, I have created a little Poker game in Powershell. The games’ concept is based on a poker game by Arne Rippe, which I enjoyed so much, I recreated it. You have to survive 20 rounds of poker. You can bet 100 credits, half your bankroll or go all-in. The payout is always 2 to 1. The special part about this game is the fact you get to see all starting hands and get to choose which you prefer. Give it a go, I’m sure you’ll like it! My high score is 3400 credits.

Hugo
Continue reading

Virtual Jedi

When you first look at the official VMware website, it looks like any other website of any other company that wants to sell their product. It’s filled with “management-talk”, nice charts and graphs and so on and so forth. But there is more than meets the eye…

 When filling in a form on the VMware website to register for the upcoming Virtualization Forum 2008, I found the possibility to enter a prefix, such as Mr. or Prof. in front of my name. And although I could not find my titles ir. or MSCE, I did find the following list:

VMware Starwars Prefixes

My first thoughts? “Rogue Leader, this is Rogue Two. I’ve got a bogey on my tail. Get rid of it R2D2!”

It turns out that these are all official Airforce titles, but I can’t help but think about a real IT-nerd, sick off all the management-talk, starwars fan of course, having a chuckle while publishing this form. It is subtle proof of the fact that VMware products are made by real people after all.

UPDATE: Strangely, the registration page on the VMware Forum website, does not contain these prefixes, while the page I found after clicking a link in the invitation thay emailed me did…