Posts
All the articles I've posted.
-
Guide how to easy screw up your git repository
A real incident where a wrong-branch git reset --hard corrupted a release branch, with recovery steps for the team.
-
PowerShell + XAML => GUI
How to build a WPF GUI window in PowerShell using XAML, with a note on the STA threading requirement for PowerShell 2.
-
PowerShell Get-Content vs _System.IO.File___ReadAllText
Difference between Get-Content (returns array of lines) and ReadAllText (returns full string), with alternatives for both PowerShell versions.
-
WTF Exception.ToString() and FaultException
FaultException inner details are silently dropped by Exception.ToString(); an extension method restores the full fault message.
-
PowerShell Sort-Object and Hashtables
Explains why Sort-Object -Property fails on PowerShell hashtables and how to sort them correctly using a script block.
-
posh-git _ WARNING_ Could not find ssh-agent
How to suppress the posh-git ssh-agent warning by commenting out Start-SshAgent in the profile script.
-
Copy PowerShell command into clipboard
One-liner to copy the last executed PowerShell command to the clipboard using Get-History and clip.
-
Dropbox and Symbolic Links
Explains how to sync arbitrary folders with Dropbox by creating symbolic links using Link Shell Extension.
-
Git Extensions from console
How to launch Git Extensions GUI from the command line on Windows by creating a custom git alias script.
-
Git and typos
Shows how to enable git help.autocorrect to automatically fix and run mistyped git commands.