Home Assistant logo

How to fix disconnected Sonoff Zigbee sensors in Home Assistant?

This article explains how to fix and reconnect Sonoff Zigbee sensors in Home Assistant, after they have mystically disconnected themselves. The neatness of this solution is that while the eWelink app will assign your sensors a new device id any time you have to re-register them, this approach lets you use the same entity id you had for them before you had to reconfigure them. They don’t unfortunately retain their…Continue reading How to fix disconnected Sonoff Zigbee sensors in Home Assistant?

Microsoft Privacy

How to fix all UWP/WinUI apps being laggy in Windows 10/11?

This article explains one way to fix horribly laggy desktop user experience in Windows 10 (and probably 11) when your laptop is beefy enough it should not lag, and even has a dedicated NVIDIA Graphics card. At least applying this fix is going to be quite straightforward – but let me explains first what the issue I experienced actually was like. Background Posts Related to “How to fix all UWP/WinUI…Continue reading How to fix all UWP/WinUI apps being laggy in Windows 10/11?

Do you have a hole in the shape of pfx, and the only thing you have is pfx? Tough luck.

How to export the SSL/TLS certificate from a website using PowerShell?

Every now and then, you run into a situation where you might need a SSL/TLS certificate. You could always generate a self-signed one – but that won’t be trusted by anyone, so that’s no bueno. You could also order one online, even for free – but that’s kind of cumbersome, and might come with some weird verification steps. Sounds quite bothersome. Most of the time, it’s the easiest to just…Continue reading How to export the SSL/TLS certificate from a website using PowerShell?

Run Kubernetes in production - it'll be easy, they said

How to replace the default fake “ACME” certificate for Kubernetes/AKS?

A while back I got a request to change the default certificate for an AKS cluster. A customer didn’t like the “Kubernetes Fake Certificate” that’s shown when no other matching certificates can be found, and they wanted it changed. So yours truly started googling, and as a result, this article explains how to do just that! Background Posts Related to “How to replace the default fake “ACME” certificate for Kubernetes/AKS?”:How…Continue reading How to replace the default fake “ACME” certificate for Kubernetes/AKS?

Not storing your private keys properly is dangerous.

How to export the private key from your Certificate Signing Request on Windows?

This article explains another small but significant gotcha you “just need to know” when working with certificates and certification authorities, and you – just like me – are for some reason still using Windows as your workhorse. I’ll go through how to export the private key that has been stored on your machine when you generated a Certificate Signing Request (or a “Certificate Enrollment Request” if you’re speaking Contosoan”) to…Continue reading How to export the private key from your Certificate Signing Request on Windows?

Always ship Azure DevOps.

Working YAML sample of a remote repository CI trigger in Azure DevOps

It took me something like 10 years of struggling to get remote triggers to finally fire in Azure DevOps, and in this article I’ll share how I finally got the remote repository trigger to work for an actual Team Project in real production use (and that’s a first!) 😃 Okay, I know, that’s a bit rich – they’ve been supported for maybe a few years, so there’s no way I’ve…Continue reading Working YAML sample of a remote repository CI trigger in Azure DevOps

Powershell is hell

winrm complaining “Error: Invalid use of command line.” – easy fix :)

Heh, this article is going to be another one of those “Drat, I should’ve known this” articles. But maybe it’ll be helpful for someone else as well! In this post I will explain how to get around the “Error: Invalid use of command line. Type “winrm -?” for help.” error being thrown at you. And if you’re like me (and your error is the same as mine), you’ll mostly get…Continue reading winrm complaining “Error: Invalid use of command line.” – easy fix :)

Microsoft. Word.

How to apply a .dotx template to your existing Word files (.docx)?

This article explains how you can apply formatting and styles from a Microsoft Office Word Document Template (.dotx) to your already existing Word Document (.docx). You might want to do this if you’ve got a file with plenty of content, especially if it’s stuff that might break when copy-pasting (embedded media, pictures with text around them, table of contents, references – actually, anything else than just normal paragraphs). Took me…Continue reading How to apply a .dotx template to your existing Word files (.docx)?

Do you have a hole in the shape of pfx, and the only thing you have is pfx? Tough luck.

How to verify a private key matches an x509 certificate?

This post explains how to verify a private key (possibly a .key file) that you somehow got your hands on, that matches a certificate file (.cer) you also somehow are in possession of. I have no idea where I got mine, but I had to figure out how to make sure a key and a certificate matched before I uploaded mine to AKS (Azure Kubernetes Service). Problem This is yet…Continue reading How to verify a private key matches an x509 certificate?

Stage failing in Azure DevOps pipeline

How to avoid global.json version conflicts in Azure DevOps

In Azure DevOps, you sometimes have a project that’s being built with a certain .NET version. It’ll require that particular SDK version, and most typically that is defined in the global.json file. However, if you also need to install a certain .NET tool, running dotnet tool install MyBuildTool will fail. And it’ll fail before it actually tries to install the version of the tool you wanted! This article explains how…Continue reading How to avoid global.json version conflicts in Azure DevOps