I hereby claim:
- I am finkregh on github.
- I am finkregh (https://keybase.io/finkregh) on keybase.
- I have a public key whose fingerprint is 327E 822C 5533 8A8A 51AF 2CC4 FFC0 1051 DEE0 B735
To claim this, I am signing this object:
#!/bin/bash | |
# Make this executable and name it .git/hooks/pre-commit to have commits | |
# randomly rejected with a prompt to rethink it. The odds are higher for | |
# longer commits | |
set -eu | |
# How many lines a commit must have before it's considered long and should | |
# have the highest odds of getting an extra prompt |
#!/bin/sh | |
# extend non-HiDPI external display on DP* above HiDPI internal display eDP* | |
# see also https://wiki.archlinux.org/index.php/HiDPI | |
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949 | |
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319 | |
EXT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^eDP | head -n 1` | |
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^DP | head -n 1` | |
ext_w=`xrandr | sed 's/^'"${EXT}"' [^0-9]* \([0-9]\+\)x.*$/\1/p;d'` |
map $http_origin $allow_origin { | |
default ""; | |
"~^https?://(?:[^/]*\.)?(stevebuzonas\.(?:com|local))(?::[0-9]+)?$" "$http_origin"; | |
} | |
map $request_method $cors_method { | |
default "allowed"; | |
"OPTIONS" "preflight"; | |
} |
#!/bin/bash | |
# | |
# Converts LDIF data to DW-table. | |
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them. | |
# | |
# 2010-03-07, [email protected] | |
# 2016-01-21, [email protected] | |
# rewrite to output dokuwiki-data | |
# |
#!/bin/bash | |
# hacked together, might eat your kittens. | |
# for auth agains LDAP/AD look at https://blogs.mafia-server.net/nur-bahnhof/2013/12/prosody-authentification-ldapactivedirectory/ | |
tmpfile=/tmp/sharedgroups.txt | |
XMPP_DOMAIN=xmpp.example.org | |
AD_DC=dc1.corp.example.org | |
LDAP_ROOT="dc=example,dc=org" | |
LDAP_SUB_OU="ou=OE" | |
ALL_USERS_GROUP="Everybody" |
HOSTNAME="$(hostname)" | |
HOSTNAME_SHORT="${HOSTNAME%%.*}"\\\\\ | |
HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME_SHORT}_$$" | |
# FIXME: upload to a central place. rsync? owncloud? |
[Unit] | |
Description=Live Syncing (Mirror) Daemon | |
After=network.target | |
[Service] | |
Restart=always | |
Type=simple | |
Nice=19 | |
#EnvironmentFile=-/etc/default/lsyncd | |
#ExecStart=/usr/bin/sh -c 'eval `/usr/bin/lsyncd -nodaemon $LSYNCD_OPTIONS /etc/lsyncd/lsyncd.conf.lua`' |
#!/bin/sh | |
# initially from http://bredsaal.dk/cracking-encfs-made-easier | |
# usage: crackencfs.sh /path/to/encrypted/folder /path/to/mountpoint /path/to/wordlist | |
counter=1 | |
while [ true ]; do | |
echo "$(head -n $counter $3 | tail -n 1)" | encfs $1 $2 --stdinpass | |
if [ $? -eq 0 ]; then | |
echo Key recovered - the password is: |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Did not receive identification string from ::ffff:[\.0-9]+$ | |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: fatal: Read from socket failed: Connection reset by peer \[preauth\]$ | |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: I(llegal|nvalid) user [^[:space:]]* from ([:.[:xdigit:]]+|UNKNOWN)$ | |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: invalid public DH value: <= 1 \[preauth\]$ | |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Disconnecting: bad client public DH value \[preauth\]$ | |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Disconnecting: Change of username or service not allowed: \([[:alpha:]]+,ssh-connection\) -> \([[:alpha:]]+,ssh-connection\) \[preauth\]$ | |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Received disconnect from [:.[:xdigit:]]+: 3: com.jcraft.jsch.JSchException: Auth fail \[preauth\]$ | |
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[: |
I hereby claim:
To claim this, I am signing this object: