Skip to content

Instantly share code, notes, and snippets.

@jawee
jawee / settings.json
Created March 19, 2023 09:38
Windows Terminal Settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
public readonly struct Result<TValue, TError>
{
private readonly TValue? _value;
private readonly TError? _error;
public bool IsError { get; }
public bool IsSuccess => !IsError;
private Result(TValue value)
{
@jawee
jawee / adv360-dual-boot.md
Created December 23, 2023 06:09
adv360 dual boot

From https://blog.christopherhoelter.com/kinesis-advantage-360-bluetooth-dualboot

  1. Boot into windows and pair the keyboard on the target bluetooth profile.
  2. Restart and boot into linux. On the keyboard, forget the pairing of the previous target profile (mod+right win). Now, pair the keyboard on linux.
  3. Copy the paired bluetooth key from linux. This will be in a file at the path /var/lib/bluetooth/{controller-mac-address}/{keyboard-mac-address}/info. Look for a line like key={32 characters here} in the file, that's the key. It may there multiple times. Write it down or copy it somewhere accessible when you reboot into windows.
  4. Reboot into windows and ensure the keyboard doesn't try and connect. Now, you need to edit the registry file for the bluetooth keyboard and replace the key with the key grabbed from the linux partition.
  5. Download PSExec in order to open up the registry editor with the proper permissions. Once the tool is unzipped, in an admin command shell run .\PsExec64.exe -s -i regedit.exe
@jawee
jawee / .clangd
Created December 23, 2023 07:05
.clangd
CompileFlags: # Tweak the parse settings
Add: [-I/usr/local/include]