Skip to content

Instantly share code, notes, and snippets.

View shokinn's full-sized avatar

Philip Henning shokinn

View GitHub Profile

Keybase proof

I hereby claim:

  • I am shokinn on github.
  • I am pphg (https://keybase.io/pphg) on keybase.
  • I have a public key ASDWlJytUnzhjY_VAbqAVdyTtoJu10FrfrIoXj9H5OVkhAo

To claim this, I am signing this object:

@shokinn
shokinn / windows_terminals_hotkeys.ahk
Created April 13, 2017 15:01
A little AHK-script to open WSL Terminal and Cmder
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Start WSL Terminal
#Enter::
Run, C:\tools\wsl-terminal\open-wsl.exe -l
Return
@shokinn
shokinn / .wsl_fix
Last active June 18, 2020 21:13
WSL - Use KeePass KeeAgent for SSH Keys; Use external X11
## Just source this file in your .$SHELLrc
# Import SSH-Keys from KeePass KeeAgent
# Enable msysgit socken in KeeAgent!
if [[ -z $SSH_AUTH_SOCK ]]; then
export SSH_AUTH_SOCK="/tmp/.ssh-auth-sock"
fi
if [[ ! -f /tmp/msysgit2unix-socket.pid ]]; then
~/bin/msysgit2unix-socket.py /mnt/c/Users/$USER/keeagent.sock:$SSH_AUTH_SOCK
@shokinn
shokinn / initramfs-unlocker.sh
Last active November 22, 2017 06:40 — forked from BinaryShrub/initramfs-unlocker.sh
LUKS remote decrypt (dropbear) for Ubuntu 16.04.1 on btrfs array
#!/bin/bash
## LUKS remote decrypt for Ubuntu 16.04.1 - by BinaryShrub
# NOTES:
# Tailor lines 108 - 110 to your system before running!
# Use at your own risk!
# Safety Check
if [ "$EUID" -ne 0 ]
then echo "You must run this as root"

Keybase proof

I hereby claim:

  • I am shokinn on github.
  • I am philip_henning (https://keybase.io/philip_henning) on keybase.
  • I have a public key whose fingerprint is A171 CB48 9D79 2B23 FFD1 23C7 E24C 1780 06ED 3FBF

To claim this, I am signing this object: