I have blog on wordpress at savedkeystrokes.wordpress.com, but found they had an REST api, so I thought it would be fun to write something that reads that for you
What often gets old is when people disconnect from servers and leave files and folders locked, that could affect a release run. nb: This isnt 100% pure powershell, but I am using powershell to perform the loop behaviour needed query user /server:[Machinename] queries for user sessions, both connected and disconnected. $env:COMPUTERNAME targets the current machine, […]
I don’t think that I write that well, and I generally just type and type until something looks ok, then I have to go back and review what I have typed to make sure it makes sense, using a tool like Grammarly helps with that. It doesn’t improve your writing but it does clearly show […]
Let’s look at something that I did, I needed to keep an eye on all the recycle bins on a server, that was a separate problem, but I wanted to schedule the job to occur once a week. Just in case you are interested the script to do the recycle clean looks like this Register-ScheduledJob […]
In the beginning, there was a cmdlet… Most times, when you think about writing something in PowerShell, you will usually find within the first lines a Get-ChildItem, you will then inevitably have a for each loop. Normally I would write this as foreach($item in $items), but on one occasion the autocomplete came up on the […]
I’ve been listening to a podcast called Masters of Scale with Reid Hoffman Reid Hoffman was the founder of LinkedIn (Interestingly I believe I am 4 degrees of separation away!). In Episode 8 Reid talks to Reed Hastings from Netflix, they mentioned Netflix’s culture deck, so I thought I would take a look. There is […]
When working with git, I find myself doing a lot of the same requests, by creating an alias I reduced my keystrokes.
I was asked to setup a transfer for some of our tfvc sources to git. I was already quite up to speed with what git-tfs would allow you to do, but this was an experience to flex what I knew.
Connectivity outage was stopping services We had this issue during some intermittent network outage or slowdown; the database connection used by an nsb service would drop and cause the services to stop because an error was detected. To get around that we set all the services to have a recovery to restart after 3 minutes, […]
It be a bit painful sometimes when you write a script and it end up going off the screen and there isn’t always a natural break […]