.
├── ca-key.pem
├── ca.pem
├── ca.srl
├── gen_client_cert.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
die () { | |
echo -e >&2 "$@" | |
exit 1 | |
} | |
if screen -list | grep -q "rec"; then | |
screen -S rec -X stuff "q" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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%; |
NewerOlder