Skip to content

Instantly share code, notes, and snippets.

View JensForstmann's full-sized avatar

Jens Forstmann JensForstmann

View GitHub Profile

How to Access LUKS-Encrypted Drives on Windows

This guide provides step-by-step instructions on how to install Windows Subsystem for Linux 2 (WSL 2), set up Debian, and mount LUKS-encrypted drives on a Windows system.

Prerequisites

  • A LUKS-encrypted drive that you want to access.
  • Windows 10 (version 2004 and later) or Windows 11 with support for WSL 2.
  • Administrator privileges on your Windows system.
  • Basic knowledge of command-line operations in PowerShell and Linux.
@JensForstmann
JensForstmann / Use-specific-SSH-key-with-Git.md
Last active April 29, 2022 17:12
Use specific SSH key with Git

Sometimes you want to use a specific SSH key when accessing a Git repository, e.g. when using a deploy key.

Method 1 - Overwrite Git's SSH command

Use a key for every following git command:

export GIT_SSH_COMMAND="ssh -i /path/to/id_rsa"
@xavierfoucrier
xavierfoucrier / gpg-signing.md
Last active December 4, 2025 05:41
GPG signing with Git and Github Desktop

GPG signing – git github-desktop

Here is a short guide that will help you setup your environment to create signed commits or signed tags with Git locally. This has been extensively tested on Windows with Git and the Github Desktop application: I use it every day for my professional development projects.

I you face any issue, feel free to leave a comment below.

Summary

  1. Sign commits or tags
  2. Key passphrase
  3. Disable signatures
  4. Renew a GPG key
@fnky
fnky / ANSI.md
Last active December 10, 2025 11:51
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@MatthewSteeples
MatthewSteeples / mousemove.ps1
Created February 26, 2015 19:09
Powershell Script to keep the mouse moving
Add-Type -AssemblyName System.Windows.Forms
while ($true)
{
$Pos = [System.Windows.Forms.Cursor]::Position
$x = ($pos.X % 500) + 1
$y = ($pos.Y % 500) + 1
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
Start-Sleep -Seconds 10
}