cleaned up scripts

-1
scripts/README.md
···
-
For want of a better place, and as they often rely on system configutration, e.g. `/etc/hosts/`/`~/.ssh/`.
-3
scripts/gitlab_proxy.sh
···
-
#!/bin/sh
-
-
ssh -D 8123 -f -C -q -N rtg2@rtg2.host.cs.st-andrews.ac.uk
+1 -1
scripts/import_xochitl.sh
···
-
#!/bin/sh
+
#!/usr/bin/env sh
# adapted from https://github.com/adaerr/reMarkableScripts/blob/master/pdf2remarkable.sh
XOCHITL_DIR=${XOCHITL_DIR:-.local/share/remarkable/xochitl/}
+2
scripts/obsidian_sync.sh
···
+
#!/usr/bin/env sh
+
cd /storage/emulated/0/Documents/vault
git pull &&
git add . &&
+2 -1
scripts/pdf2remarkable.sh
···
-
#!/bin/sh
+
#!/usr/bin/env sh
+
# Transfer PDF and EPUB file(s) to a reMarkable
# Adrian Daerr and contributors, 2017 -- 2022 - public domain
# https://github.com/adaerr/reMarkableScripts
-12
scripts/socs_mc/process_signups.sh
···
-
infile=${1:-$(dirname $0)/signups.xlsx}
-
outfile=$(dirname $0)/signups.csv
-
remote_file='~/allowlist_management/signups.csv'
-
remote_command='~/allowlist_management/update_allowlist.sh'
-
-
echo "Converting to CSV..."
-
sudo ssconvert "$infile" "$outfile"
-
echo "Copying to remote..."
-
scp -J rtg2@rtg2.host.cs.st-andrews.ac.uk "$outfile" minecraft@mcse.cs.st-andrews.ac.uk:"$remote_file"
-
echo "Updating allowlist..."
-
ssh -J rtg2@rtg2.host.cs.st-andrews.ac.uk minecraft@mcse.cs.st-andrews.ac.uk "$remote_command"
-
echo "Done"
-3
scripts/socs_mc/proxy.sh
···
-
#!/bin/sh
-
-
ssh rtg2@rtg2.host.cs.st-andrews.ac.uk -L 25565:mcse.cs.st-andrews.ac.uk:25565 -N
+1 -2
scripts/switch_nw.sh
···
-
#!/bin/bash
+
#!/usr/bin/env sh
nmcli con up "$1"
sleep 60
systemctl restart ddclient
-