Skip to content

Instantly share code, notes, and snippets.

View Bandicoot's full-sized avatar

Andy Beals Bandicoot

View GitHub Profile
@Bandicoot
Bandicoot / caps-is-ctrl.ps1
Created September 13, 2025 20:33
Make Caps Lock function as Control on Windows. End the ISO/vt220 madness! PowerShell edition.
```
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:SystemCurrentControlSetControlKeyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
```
'Twas the night before Christmas, when all through the racks
Not a server was alerting, not even Compaqs.
The backups were written to tapes with care
In hopes that later the data would be there.
The machines were nestled all snug in their sleds
Whilst visions of vengeance danced in their heads;
And oncall in his three-wolf and I in my rack.
Had just settled down for some syn and some ack.