Skip to content

Instantly share code, notes, and snippets.

View subnut's full-sized avatar
🏛️
Busy. Very very Busy.

Subhaditya Nath subnut

🏛️
Busy. Very very Busy.
View GitHub Profile

Create Root Certificate Authority and self-signed certificate for your Home Assistant. Compatible with Chrome browser > version 58, including the macOS Catalina 10.15 / iOS 13 (and above) new requirements.

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@subnut
subnut / swap_ctrl_caps.ps1
Created April 16, 2021 19:58 — forked from wfxr/swap_ctrl_caps.ps1
Swap ctrl and capslock in Win10
$hexified = "00,00,00,00,00,00,00,00,03,00,00,00,3A,00,1D,00,1D,00,3A,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);