aboutsummaryrefslogtreecommitdiff
path: root/sh/util.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sh/util.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/sh/util.sh b/sh/util.sh
deleted file mode 100644
index 89199c11..00000000
--- a/sh/util.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-genpassword() {
- length="${1-99}"
- tr -cd '[:alnum:]' < /dev/urandom | fold "-w$length" | head -n1 ||:
-}
-
-t() {
- expand "$1" -t2 | sponge "$1"
-}
-
-ut() {
- unexpand "$1" -t2 | sponge "$1"
-}
-
-gvi() {
- if [ -e "$1" ]; then
- INIT="gpg -qd"
- else
- INIT="echo"
- fi
- $INIT "$1" | vipe | gpg -qer eu@euandre.org | sponge "$1"
-}
-
-disable_ci() {
- NAME="$(basename "$PWD")"
- rm -f ".git/hooks/$NAME/pre-push"
- ssh euandreh.xyz rm -f "/srv/git/$NAME.git/hooks/post-receive"
-}