lewisroberts.com Blog

PowerShell Core 6 and Raspberry Pi 0

PowerShell Core 6.0 and Raspberry Pi

TL;DR – Start PowerShell as the root user, install the module for All Users and then set up your cron job to run the script in the root user’s crontab. If, like me, you...

Windows PowerShell and PHP 0

Update an installation of PHP on Windows

It will come as no surprise that I operate my website on Windows and WordPress so it should come as no surprise that it also uses PHP. Part of running the server using PHP...

0

Home Automation with Hive Active Plugs

Problem I’ve had a little bee in my bonnet for the last few years with a “feature” on my clothes dryer. It’s an auto-sensing dryer that dries clothes to certain levels such as Ready...

2

Set language, culture and timezone using PowerShell

As much as I’d like to say this is a perfect one-liner solution, it isn’t. It doesn’t actually count as PowerShell either, technically. This article is written for people deploying from Marketplace Azure images...

0

Clean up orphaned Azure resource manager disks

Firstly, let me apologise, this post isn’t about automatically cleaning up disks in Azure Resource Manager storage accounts, instead it’s about obtaining the information which you can use to understand which disks are orphaned...

2

PowerShell for Seasons

I wrote this little snippet to assist me with working out the current season (as in Spring, Summer, Autumn and Winter) with an accuracy of +/- 2 days. No, it’s not a method of...