1. Future Decoded 2017 Powershell session

    A big thank you to Microsoft for their kind invitation to speak at Future Decoded 2017 in London! …


  2. Pester - Mocking a function with a parameter of type System.Array

    Pester has a very cool Mock function that allows you to replace a function with a Mocked function, which you can then test to see if it’s run with certain parameters. …


  3. Display a VSTS dashboard on a TV screen with custom CSS

    I have a tablet set up at work that always shows me my VSTS dashboard, which I’ve configured with widgets just for my consumption. …


  4. [Reblog] Refactoring a monolithic Powershell DSC project using PSForge

    Over the last couple of years, we have been managing environment configuration of a Windows-based production environment with Powershell DSC. It’s been working rather nicely so far – any configuration drift is fixed within 15 minutes, and Windows-literate engineers are quick to get used to the Powershell-based configuration syntax.


  5. Atlassian svn-git migration scripts are not creating branches and tags

    Atlassian have some really useful scripts to help you to convert a Subversion repository over to Git. The clean-git script is supposed to generate all the local branches and Git tags from the imported SVN branches and tags, however when I tried running the script it didn’t actually do anything! …


  6. Powershell DSC: Solving duplicate keys in Script resource

    Recently I came across a puzzling issue while writing a custom Powershell DSC resource - when I tried to use it more than once in a single configuration, I would get this error message; …


  7. Working on multiple Git branches simultaneously

    Working on multiple branches at the same time has been a staple part of traditional source control tools such as CVS, SVN and Perforce, due to the fact that each branch is kept in a separate folder. Multiple branch versions of a single file can be opened in text editors and modified alongside each other, and this was taken for granted. …


  8. Ansible: delegate_to and variables

    One nice feature of Ansible is its ability to “delegate” tasks to the control machine, or any other host that the control machine can SSH to. …


  9. Unable to use 'open' command in OSX tmux

    I recently installed tmux on my laptop running OSX 10.10.4. I’d not had any issues until I tried to use the ‘open’ command in order to install a .pkg file manually. …


  10. Run a script on a Test Kitchen VM before converge starts

    Recently I hit a snag while using a community vagrant box to test an Ansible role using test-kitchen. …