Skip to content

Instantly share code, notes, and snippets.

Avatar
👷‍♂️
Wörk, Wörk

Philip Henning shokinn

👷‍♂️
Wörk, Wörk
View GitHub Profile
@shokinn
shokinn / clipboard_auto_type.ahk
Last active June 10, 2021 14:25
AutoHotKey clipboard typer (send your clipboard as painfully slow keystrokes)
View clipboard_auto_type.ahk
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
View README.md

Docker CA cert get helper

Folder structure

.
├── ca-key.pem
├── ca.pem
├── ca.srl
├── gen_client_cert.sh
@shokinn
shokinn / start_keepass_agent.sh
Created February 18, 2019 13:35
start_keepass_agent.sh
View start_keepass_agent.sh
#!/bin/sh
export KEEAGENT_SOCK="/mnt/c/Users/philip/keeagent.sock"
ssh_auth_tmpdir=`mktemp --tmpdir --directory keeagent-ssh.XXXXXXXXXX`
export SSH_AUTH_SOCK="${ssh_auth_tmpdir}/agent.$$"
PIDFILE="${ssh_auth_tmpdir}/pid.$$"
python3 ~/bin/msysgit2unix-socket.py --pidfile $PIDFILE $KEEAGENT_SOCK:$SSH_AUTH_SOCK
@shokinn
shokinn / start_rec.sh
Created September 10, 2018 18:01
Record Livestream
View start_rec.sh
#!/bin/bash
die () {
echo -e >&2 "$@"
exit 1
}
if screen -list | grep -q "rec"; then
screen -S rec -X stuff "q"
fi
@shokinn
shokinn / wsl_mount
Created September 1, 2018 18:33
WSL Windows drive un/mount scripts
View wsl_mount
#!/bin/bash
die () {
echo -e >&2 "$@"
exit 1
}
# check if script runs as root or via sudo
[ "$UID" -eq 0 ] || die "You have to run this script as root!"
@shokinn
shokinn / concourse_updater.sh
Last active July 13, 2018 09:17
Concourse/Fly update/install scripts
View concourse_updater.sh
#!/bin/bash
#
# App update script
# by Philip "ShokiNN'" Henning <mail@philip-henning.com>
#
# License: MIT
# Copyright 2018 Philip Henning
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@shokinn
shokinn / emby_updater.sh
Last active July 1, 2020 15:12
Emby Update script
View emby_updater.sh
#
# 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 / get_currency.js
Created December 15, 2017 09:40 — forked from fliptheweb/get_currency.js
Google Sheets Macros (Google App Script) for getting currency of number cell
View get_currency.js
CURRENCY_MAP = {
'$': 'USD',
'₽': 'RUB', // there is a missing character in editor font
'€': 'EUR',
'฿': 'THB'
}
function _formatToCurrency(formatString) {
var currencyRegexp = /\[.*(.)\]/g;
var currency = currencyRegexp.exec(formatString)[1];
@shokinn
shokinn / _blank_black.html
Last active September 22, 2017 09:02
Blank black page with centered text input box
View _blank_black.html
<html>
<head>
<!DOCTYPE html>
<style>
@import url('https://fonts.googleapis.com/css?family=Roboto:300');
</style>
</head>
<body style="background: #000;">
<div style="width: 98%;
height: 100%;
View keybase.md

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: