Skip to content

Instantly share code, notes, and snippets.

View shokinn's full-sized avatar

Philip Henning shokinn

View GitHub Profile
@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 / emby_updater.sh
Last active July 1, 2020 15:12
Emby Update script
#
# This script is depricated go to this repo to get the latest version:
# https://github.com/shokinn/emby-updater
#
#
#
# If you still need the old (bash) version, you can find it in the older Versions of this gist.
#
@shokinn
shokinn / clipboard_auto_type.ahk
Last active June 10, 2021 14:25
AutoHotKey clipboard typer (send your clipboard as painfully slow keystrokes)
SleepBeforeType = 2000 ; sleep in ms
KeystrokeDelay = 200 ; delay between keystrokes in ms
; Clip() - Send and Retrieve Text Using the Clipboard
; by berban - updated February 18, 2019
; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=62156
Clip(Text="", Reselect="")
{
Static BackUpClip, Stored, LastClip
@shokinn
shokinn / README.md
Created May 1, 2019 02:35
Dokcer CA cert gen helper

Docker CA cert get helper

Folder structure

.
├── ca-key.pem
├── ca.pem
├── ca.srl
├── gen_client_cert.sh
@shokinn
shokinn / rclone_cleanup.py
Created March 10, 2024 15:12
Python script to delete already synced remote files (for those stupid ones who forgot to use rclone move) - tqdm required
import os
import subprocess
import argparse
from datetime import datetime, timedelta
import concurrent.futures
from tqdm import tqdm # For progress bar
import logging
import sys
# Set your local and remote paths