diff --git a/bin/gdrive-backup b/bin/gdrive-backup deleted file mode 100755 index 1fab8d7..0000000 --- a/bin/gdrive-backup +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -rclone \ - --checksum \ - --delete-excluded \ - --exclude /.cache/ \ - --exclude /.vagrant.d/ \ - --exclude /.minikube/ \ - --exclude /Downloads/ \ - --exclude /downloads/ \ - --exclude /tmp/ \ - --verbose \ - --stats 60s \ - sync \ - $HOME \ - gdrive:backup diff --git a/bin/kubectl-env b/bin/kubectl-env deleted file mode 100755 index b250a48..0000000 --- a/bin/kubectl-env +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -case "$1" in -mycloud) - shift - command kubectl --kubeconfig=<(pass show mycloud/kubeconfig) "${@}" - ;; -*) - command kubectl "${@}" - ;; -esac diff --git a/bin/restic-backup b/bin/restic-backup deleted file mode 100755 index 1b13366..0000000 --- a/bin/restic-backup +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -nice --adjustment 19 \ -ionice --class 3 \ -restic -r rclone:restic:restic --password-file=$HOME/restic_password backup --exclude-file=$HOME/restic_exclude.lst $HOME diff --git a/bin/share-screen b/bin/share-screen deleted file mode 100755 index ac31df4..0000000 --- a/bin/share-screen +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -~/code/helper-scripts/sysop-share-screen.sh pi@monitor-sysop-${1:-middle}-${2:-top} 1 diff --git a/bin/since b/bin/since deleted file mode 100755 index acfb517..0000000 --- a/bin/since +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env python3 - -import datetime -import sys - -USAGE="""Usage: {program} PATH_TO_FILE""".format(program=sys.argv[0]) - -def die(message, code=1): - print(message) - sys.exit(code) - -def die_usage(code=1): - die(USAGE, code) - -def read_date_from_file(path): - text = open(path).readline().strip() - try: - time = datetime.datetime.strptime(text, '%Y-%m-%d') - except ValueError as e: - die(e) - return time - -def main(argv): - if len(argv) < 2: - die_usage() - last = read_date_from_file(argv[1]) - now = datetime.datetime.now() - diff = now - last - days = diff.days - #hours = diff.seconds // (60 * 60) - if days == 1: - msg = "1 day" - else: - msg = "{days} days".format(days=days) - - #msg += " " - #if hours == 1: - # msg += "1 hour " - #else: - # msg += "{hours} hours ".format(hours=hours) - - print(msg) - -main(sys.argv) diff --git a/bin/tasktrack b/bin/tasktrack deleted file mode 100755 index 25f3c22..0000000 --- a/bin/tasktrack +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -cd $HOME/sync/projects/time-tracking -source venv/bin/activate -./call.py "${@}"