git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/files
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/files')
-rw-r--r--ansible/files/git-out41
-rwxr-xr-xansible/files/udo38
2 files changed, 79 insertions, 0 deletions
diff --git a/ansible/files/git-out b/ansible/files/git-out
new file mode 100644
index 0000000..2ad2c25
--- /dev/null
+++ b/ansible/files/git-out
@@ -0,0 +1,41 @@
+#!/usr/bin/env bash
+
+# author: Harald Pfeiffer <coding@lirion.de>
+# licence:
+# - LGPLv3
+# - CC-by-SA 4.0
+# (choose whichever fits your needs)
+
+MYVAR=( "MMMMMMWKXWMMMMMMMMMMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMM: cMMMMMMMMMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMX XMMMMMMMMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMMk' 'kMMMMMMMMMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMMMX:. '0MMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMWl ''' xMM: " )
+MYVAR=( "${MYVAR[@]}" "NNNO. cMMN. dM: " )
+MYVAR=( "${MYVAR[@]}" " :N0 xMMN' .W: " )
+MYVAR=( "${MYVAR[@]}" "::::oKMMMd 0MMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMMMMMMM. :MMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMMMMMMc . .MMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMMMMMc .N, MMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMMMMMc .NMo OKKKKKd;, " )
+MYVAR=( "${MYVAR[@]}" "MMMMMMc .NMM0 .k " )
+MYVAR=( "${MYVAR[@]}" "MMMMMc .NMMMMxcccccccc:;;lx" )
+MYVAR=( "${MYVAR[@]}" "MMMMc .NMMMMMMMMMMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "MMMc .NMMMMMMMMMMMMMMM: " )
+MYVAR=( "${MYVAR[@]}" "0MM0cclxKMMMMMMMMMMMMMMMd " )
+MYVAR=( "${MYVAR[@]}" " '0MK; .kMMMMMMMMMMMMMMX: " )
+MYVAR=( "${MYVAR[@]}" " .OMX: .xMMMMMMMMMMMMMMX:" )
+
+for loyne in "${MYVAR[@]}";do
+ printf "\\033[1m\\033[48;5;29m %b \\033[0m\\n" "$loyne"
+done
+
+printf "\\n\\033[1;5m\\033[38;5;29m PERFORMING EMERGENCY EXIT \\033[0m\\n"
+sleep 1.337
+if ! logout >/dev/null 2>&1;then
+ SHELLPARENT="$(ps -ef|grep $PPID|awk '{print $3}'|head -n1)"
+ SHELLPPP="$(ps -ef|grep $SHELLPARENT|awk '{print $3}'|head -n1)"
+ kill "$SHELLPPP"
+ exit
+fi
diff --git a/ansible/files/udo b/ansible/files/udo
new file mode 100755
index 0000000..019e149
--- /dev/null
+++ b/ansible/files/udo
@@ -0,0 +1,38 @@
+#!/usr/bin/env sh
+
+printf "\n ;NNNNNNNNNNNNN\n"
+printf " XNNNNNNNNNNNN\n"
+printf " oNNNNNNNNNNNN\n"
+printf " KNNNNNNNNNNN\n"
+printf " .xNNNNNNNXOd\n"
+printf " ;' .;lo;. \n"
+printf " ,' ..:lc\n"
+printf " ..... . c0KO:0\n"
+printf " ...... ,: 'cxxd\n"
+printf " ...... ;okO00Ok\n"
+printf " ........ .0xOKN0ONN\n"
+printf " cXoXNo cON\n"
+printf " x0o . ;l .'.,c,.kN\n"
+printf " :NNNK.......';lkNNx ,XKxxXNN\n"
+printf " ........XNNNNdXd,oKNNNNNNNd .oONNNNN\n"
+printf " ...''',;lclxkNNOcckNXl0NN0NNNl .oXNNNNNNN\n"
+printf " 'KlXNNNNNl0kkdxONNNNNNd0NoNNNc dNNNNNNNNNN\n"
+printf " ',NXKNo0NNNNNNxco0NNNxNOxNN.xNNNNNNNNNNX\n"
+printf " ;N0XoNNo,:lcdOOooXNNNNdNx KNNNNNNNNXc \n"
+printf " . ;NOKK:lKNNXOocxNNNNNN0K. xNNNNXkc. \n"
+printf " :NXNNXkc,;clxxkNNNNKl. .NN0: \n"
+printf ". c. 'lNNNNNNNNNNNNNNNx. ,,,. \n"
+printf " .; .ocONNNNNNNNNNk. cl. \n"
+printf " . .. ,Ol;;:ooooc,. ck \n"
+printf " . . .kNN0kl. xNK;'. \n"
+printf ".. . . :XNNNK.,oX:lNNNx \n"
+printf " ... ' .0NNNNNNNNNNX: \n"
+printf " . . .xNNNNNNNXc .; \n"
+printf " ;ONNNx; \n"
+printf " 'K. \n\n"
+
+case "$1" in
+ "") sudo 2>&1|sed 's/\ s\(udo\ \)/ \1/g' >&2;;
+ "-h") sudo -h|sed 's/\ s\(udo\ \)/ \1/g;s/^s\(udo\ \)/\1/';;
+ *) sudo -p "[udo] Schätzelein, gib doch mal dein Passwort ein: " $@;;
+esac