Remove unneeded scripts
This commit is contained in:
@@ -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
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
mycloud)
|
|
||||||
shift
|
|
||||||
command kubectl --kubeconfig=<(pass show mycloud/kubeconfig) "${@}"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
command kubectl "${@}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
@@ -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
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
~/code/helper-scripts/sysop-share-screen.sh pi@monitor-sysop-${1:-middle}-${2:-top} 1
|
|
||||||
44
bin/since
44
bin/since
@@ -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)
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -o errexit
|
|
||||||
cd $HOME/sync/projects/time-tracking
|
|
||||||
source venv/bin/activate
|
|
||||||
./call.py "${@}"
|
|
||||||
Reference in New Issue
Block a user