I've set up my .bash_profile to colour code the hostname in the command prompt differently depending on which machine I'm on. I have a separate file for specifying the host colours, which is sourced ...
I'm trying to pull SIDs and usernames from the registry on a windows box for use later in a script, so I wrote a bit of powershell to pull those out, trim off the crap and feed them into an array. The ...