@pwshguy@programming.dev
@pwshguy@programming.dev avatar

pwshguy

@pwshguy@programming.dev

Father, author, blogger, enthusiast of all things PowerShell and automation. linktr.ee/mdowst

This profile is from a federated server and may be incomplete. Browse more on the original instance.

pwshguy,
@pwshguy@programming.dev avatar

Thanks! I’m glad to hear others are finding it useful.

pwshguy,
@pwshguy@programming.dev avatar

I installed some security cameras around my house and set up Shinobi using an old PC. Unfortunately the PC is too old to use the built-in detectors in Shinobi. So, I took my first dive into playing around with some image detectors.

I wrote some python to download the daily recording from old PC to a newer one with a 3080 GPU. Then checks the videos for people. It will then trim the videos to only include times were there are people in frame. It cut my the storage requirements by over 95%.

Guidance on developing locally with Azure Automation

I’ve always developed and ran scripts locally through VS Code. I’m just getting started with Azure Automation and am not a fan of waiting for the job to complete before seeing my results. In fact, it’s very frustrating. I’d rather develop and test my script locally first before running it in Azure Automation....

pwshguy,
@pwshguy@programming.dev avatar

Just a heads up, I received confirmation from the product team that the AZUREPS_HOST_ENVIRONMENT environment variable is going away. They are moving the backend to containers. Also, the COMPUTERNAME one that was always “client” is going to change too. The COMPUTERNAME will now be “Sandbox-###” with # being random numbers. I started using the code block below in my runbooks to find if they are running in Azure or hybrid worker/locally. It accounts for the current and the updates that will be rolling out in the near future.


<span style="color:#323232;">$isHybridWorker = $true
</span><span style="color:#323232;">if (($env:computername) -eq "CLIENT") {
</span><span style="color:#323232;">    $isHybridWorker = $false
</span><span style="color:#323232;">}
</span><span style="color:#323232;">elseif ($env:USERNAME -eq 'ContainerAdministrator') {
</span><span style="color:#323232;">    $isHybridWorker = $false
</span><span style="color:#323232;">}
</span><span style="color:#323232;">``
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • GTA5RPClips
  • rosin
  • mdbf
  • Youngstown
  • love
  • slotface
  • khanakhh
  • ngwrru68w68
  • kavyap
  • ethstaker
  • thenastyranch
  • DreamBathrooms
  • magazineikmin
  • anitta
  • osvaldo12
  • tacticalgear
  • modclub
  • InstantRegret
  • Durango
  • normalnudes
  • everett
  • cisconetworking
  • cubers
  • Leos
  • provamag3
  • tester
  • JUstTest
  • All magazines