Skip to content

Instantly share code, notes, and snippets.

View Iksas's full-sized avatar

Iksas

View GitHub Profile
@Iksas
Iksas / wg-multi-tunnel.md
Last active November 17, 2024 20:38
Auto-connecting multiple Wireguard tunnels in Windows

Wireguard multi-tunnel auto-connect in Windows

Set up multiple simultaneous Wireguard tunnels that auto-connect on boot in Windows.

Install the Wireguard tunnels

Install the Windows version of Wireguard and import the two tunnel .conf files.

Set required registry key

@Iksas
Iksas / pdf_index.md
Last active November 7, 2024 14:27
Full-text search for PDFs

Fast PDF full-text search

The following setup can search the contents of 7000 .pdf files in 0.08 seconds on an i7-1260P (less than 12 microseconds per PDF).

To do so, each .pdf file is first converted to a .txt file, which is stored next to the .pdf. If necessary, OCR is performed. This process takes hours.

As soon as all .txt files are created, they can be quickly searched with ripgrep.

The solution is a bit hacky, but it's what I use at the moment. I'll probably benchmark it against ripgrep-all in the future, and maybe switch to that.

@Iksas
Iksas / offscreen-fix.md
Created February 7, 2025 11:50
Recover off-screen windows

Recover off-screen windows

Sometimes, in Windows 10/11, an application's window can get "stuck" off-screen, and cannot be moved.

The following steps can be used force the window to move to the currently used screen:

  • Activate the window in the task bar
  • Press Alt + Space to open the window's menu
  • Press M
  • Press Enter