Skip to content

Instantly share code, notes, and snippets.

View tribut's full-sized avatar
🕺
Never gonna give you up

Felix Eckhofer tribut

🕺
Never gonna give you up
View GitHub Profile
@tribut
tribut / vcsh-new.sh
Created September 10, 2015 20:35
Create new repo for mr/vcsh
#!/bin/sh
set -e
repourl="$1"
reponame="$(echo "$repourl" | sed -r 's#.*/([^.]+).git#\1#')"
status() {
echo "[vcsh-new] $@" >&2
}
@tribut
tribut / keybase.md
Created April 15, 2014 13:12
Keybase Identification

Keybase proof

I hereby claim:

  • I am tribut on github.
  • I am tribut (https://keybase.io/tribut) on keybase.
  • I have a public key whose fingerprint is 7A3D F066 029F B9FF C538 1AF5 B454 3DCD E458 BF73

To claim this, I am signing this object:

#!/bin/sh
if [ -x /usr/bin/apg ]; then
if [ -z "$1" ]; then
/usr/bin/apg -m 10 -x 15 -n 1 -a 1
else
/usr/bin/apg $@
fi
elif [ -x /usr/bin/pwgen ]; then
if [ -x /usr/bin/shuf ]; then
@tribut
tribut / mosh_wrapper.sh
Created April 10, 2013 09:03
call mosh_pc.sh for list of hosts, mosh otherwise
#!/bin/bash
# ########################################################## #
# wrapper for mosh that will call mosh_pc.sh for a list of #
# host and mosh otherwise. see mosh_pc.sh why you might want #
# this. #
# ########################################################## #
# >> modify this
indirect_access=(asterix obelix idefix)
@tribut
tribut / mosh_pc.sh
Last active June 4, 2018 11:33
wrapper for mosh to work with ssh's proxycommand directive. this only makes sense if the target machine is directly reachable from the internet using udp (but probably not via tcp). usage: mosh_pc.sh [host as mentioned in .ssh/config] [public ip of host]
#!/bin/sh
# ########################################################## #
# wrapper for mosh to work with ssh's proxycommand directive #
# this only makes sense if the machine is directly reachable #
# from the internet using udp. #
# ########################################################## #
THISSCRIPT="`basename \"$0\"`"
REMOTE="$1"