Twitter

Just created a #LEGO Brickheadz figure of my girl and me. Super happy with the result! https://t.co/t4JkJsukYT

1 month ago

Follow

Tomorrow: #meetup @wehkamp! Pizza. Beer. Subject: #meetup with chatbots. Get your own running in 5 minutes!… https://t.co/5yrtRlICxf

2 months ago

Follow

Trying to learn some #Python3 👊. Made a palindrome detector: https://t.co/pcWQOYGyCI "A man, a plan, a canal – Pana… https://t.co/pcWQOYGyCI

2 months ago

Follow

How to do proper dependency injection with IOption support in .NET Console apps? It not that hard! ♥️#csharp https://t.co/cfGSYUMc5K

3 months ago

Follow

Categories

Category: PowerShell

PowerShell

Create mp3 playlist with PowerShell

Playlist are a dandy way of organizing the files into one list (easy to find on your device). The m3u playlist format is a no-hassle straight forward format, that’s why I love it. It is basically a list of relative file paths. Well… if it is that simple, it should be easy to write into a PowerShell statement.

PowerShell

Comparing files with PowerShell

Sometimes you want to test if two files are the same. You could run MD5 or SHA hashes of the files, but it might take some time to compute them. A byte by byte comparison might be the faster instead. I’ve wrote a script doing it in PowerShell.

PowerShell

$1 Regex Replacement Problem PowerShell [solved]

Madre mia! I’ve been trying to edit an HTML file using PowerShell. I only wanted to eliminate all the spans and paragraphs using regular expressions (would make sense)… and how hard can that be?
Well, it turned out to be pretty hard if you’re used to the replacement syntax of regular .Net expressions! After searching for hours I’ve discovered that $1 can’t be used in the same way as in .Net. Just use ${1}. Ouch!