summaryrefslogtreecommitdiff
path: root/archive
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-07-21 14:48:43 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-07-21 14:48:43 -0700
commit340ce222055d9ca1e81a82f38f030fc1e3ef511d (patch)
tree18e851700d54e8bac4781400d04c29f37387df48 /archive
parent54c6c297a4efa494523dccbbfabe647e201e1428 (diff)
downloaddotfiles-340ce222055d9ca1e81a82f38f030fc1e3ef511d.tar.gz
archive load{cron,sshkeys} as Consfigurator handles these now
Diffstat (limited to 'archive')
-rw-r--r--archive/.config/cron/spwhitton_athena.silentflame.com29
-rw-r--r--archive/.config/cron/spwhitton_chiark.greenend.org.uk3
-rw-r--r--archive/.config/cron/spwhitton_hephaestus.silentflame.com7
-rw-r--r--archive/.config/cron/spwhitton_hestia.silentflame.com4
-rw-r--r--archive/.config/cron/spwhitton_melete.silentflame.com7
-rw-r--r--archive/.config/cron/swhitton_zephyr.silentflame.com14
-rw-r--r--archive/.ssh/host.d/root_artemis.silentflame.com1
-rw-r--r--archive/.ssh/host.d/root_quentin.silentflame.com2
-rw-r--r--archive/.ssh/host.d/root_zephyr.silentflame.com2
-rw-r--r--archive/.ssh/host.d/spwhitton_athena.silentflame.com5
-rw-r--r--archive/.ssh/host.d/spwhitton_chiark.greenend.org.uk1
-rw-r--r--archive/.ssh/host.d/spwhitton_hephaestus.silentflame.com2
-rw-r--r--archive/.ssh/host.d/spwhitton_iris.silentflame.com2
-rw-r--r--archive/.ssh/host.d/spwhitton_melete.silentflame.com2
-rw-r--r--archive/.ssh/host.d/spwhitton_sage.u.arizona.edu2
-rw-r--r--archive/.ssh/host.d/swhitton_quentin.silentflame.com2
-rw-r--r--archive/.ssh/host.d/swhitton_zephyr.silentflame.com2
-rw-r--r--archive/.ssh/pubkey.d/spwhitton@dionysus-2017-08-231
-rw-r--r--archive/.ssh/pubkey.d/swhitton@artemis-2015-08-151
-rw-r--r--archive/.ssh/pubkey.d/swhitton@quentin1
-rw-r--r--archive/.ssh/pubkey.d/swhitton@various1
-rw-r--r--archive/.ssh/pubkey.d/user@zephyr-2018-08-091
-rw-r--r--archive/.ssh/pubkey.d/workstation_to_athena1
-rwxr-xr-xarchive/bin/loadcron56
-rwxr-xr-xarchive/bin/loadsshkeys30
25 files changed, 179 insertions, 0 deletions
diff --git a/archive/.config/cron/spwhitton_athena.silentflame.com b/archive/.config/cron/spwhitton_athena.silentflame.com
new file mode 100644
index 00000000..a4958b65
--- /dev/null
+++ b/archive/.config/cron/spwhitton_athena.silentflame.com
@@ -0,0 +1,29 @@
+PATH=$HOME/local/bin:$HOME/.local/bin:$HOME/src/dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+
+*/15 * * * * chronic doccheckin
+@hourly chronic nice ionice -c 3 notmuch new
+
+# download RSS feeds a few times per day
+19 */6 * * * r2e run
+19 */6 * * * /home/spwhitton/src/mailscripts/gmi2email --subscriptions
+
+17 */6 * * * send-irssi-away-log
+
+# run `importfeed --relaxed` on a machine that is always turned on, to
+# update podcast metadata. Actual audio files downloaded on
+# workstation
+#@daily cd /home/spwhitton/lib/podcasts && chronic xargs git annex importfeed --relaxed < feeds
+
+# start up Emacs & Irssi
+@reboot emacs --daemon
+@reboot ii
+
+# ikiwiki midnight maintenance: update day on calendar marked as today
+# (cannot be @daily as that is not semantically guaranteed to be at
+# midnight)
+0 0 * * * ikiwiki --setup /home/spwhitton/src/athpriv/spwhitton.setup --refresh
+
+# old jobs:
+#@daily chronic athena-publish-org-docs
+#@reboot cd /home/spwhitton/lib/dionysus && git annex watch
+#@reboot mount /home/spwhitton/lib/fm
diff --git a/archive/.config/cron/spwhitton_chiark.greenend.org.uk b/archive/.config/cron/spwhitton_chiark.greenend.org.uk
new file mode 100644
index 00000000..ea7bccd6
--- /dev/null
+++ b/archive/.config/cron/spwhitton_chiark.greenend.org.uk
@@ -0,0 +1,3 @@
+PATH=$HOME/local/bin:$HOME/.local/bin:$HOME/src/dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+
+@reboot emacs --daemon
diff --git a/archive/.config/cron/spwhitton_hephaestus.silentflame.com b/archive/.config/cron/spwhitton_hephaestus.silentflame.com
new file mode 100644
index 00000000..50ac5c27
--- /dev/null
+++ b/archive/.config/cron/spwhitton_hephaestus.silentflame.com
@@ -0,0 +1,7 @@
+PATH=$HOME/local/bin:$HOME/.local/bin:$HOME/src/dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+
+*/15 * * * * chronic doccheckin
+#*/30 * * * * chronic nice ionice -c 3 notmuch new
+*/15 * * * * chronic nice ionice -c 3 workstation-duplicity
+
+#@reboot rt
diff --git a/archive/.config/cron/spwhitton_hestia.silentflame.com b/archive/.config/cron/spwhitton_hestia.silentflame.com
new file mode 100644
index 00000000..14c4de9b
--- /dev/null
+++ b/archive/.config/cron/spwhitton_hestia.silentflame.com
@@ -0,0 +1,4 @@
+PATH=$HOME/local/bin:$HOME/.local/bin:$HOME/src/dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+MAILTO=spwhitton@spwhitton.name
+
+@reboot rt
diff --git a/archive/.config/cron/spwhitton_melete.silentflame.com b/archive/.config/cron/spwhitton_melete.silentflame.com
new file mode 100644
index 00000000..015c1d33
--- /dev/null
+++ b/archive/.config/cron/spwhitton_melete.silentflame.com
@@ -0,0 +1,7 @@
+PATH=$HOME/local/bin:$HOME/.local/bin:$HOME/src/dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+
+*/15 * * * * chronic doccheckin
+# melete has an SSD so we can check mail more often
+*/5 * * * * chronic nice ionice -c 3 notmuch new
+
+*/5 * * * * chronic nice ionice -c 3 workstation-duplicity
diff --git a/archive/.config/cron/swhitton_zephyr.silentflame.com b/archive/.config/cron/swhitton_zephyr.silentflame.com
new file mode 100644
index 00000000..97100d8e
--- /dev/null
+++ b/archive/.config/cron/swhitton_zephyr.silentflame.com
@@ -0,0 +1,14 @@
+PATH=$HOME/local/bin:$HOME/.local/bin:$HOME/src/dotfiles/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
+
+# watch any annexes I have checked out
+#@reboot cd $HOME/lib/annex 2>/dev/null && git annex watch || true
+#@reboot cd $HOME/lib/dionysus 2>/dev/null && git annex watch || true
+#@reboot cd $HOME/lib/rt 2>/dev/null && git annex watch || true
+#@reboot cd $HOME/lib/wikiannex 2>/dev/null && git annex watch || true
+
+# * * * * * srem --cron
+# 0 */2 * * * srem --refresh-emacs
+
+*/15 * * * * chronic doccheckin
+*/30 * * * * chronic nice ionice -c 3 notmuch new
+*/15 * * * * chronic nice ionice -c 3 workstation-duplicity
diff --git a/archive/.ssh/host.d/root_artemis.silentflame.com b/archive/.ssh/host.d/root_artemis.silentflame.com
new file mode 100644
index 00000000..a0b716d3
--- /dev/null
+++ b/archive/.ssh/host.d/root_artemis.silentflame.com
@@ -0,0 +1 @@
+swhitton@artemis-2015-08-15
diff --git a/archive/.ssh/host.d/root_quentin.silentflame.com b/archive/.ssh/host.d/root_quentin.silentflame.com
new file mode 100644
index 00000000..f19d231f
--- /dev/null
+++ b/archive/.ssh/host.d/root_quentin.silentflame.com
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+swhitton@quentin
diff --git a/archive/.ssh/host.d/root_zephyr.silentflame.com b/archive/.ssh/host.d/root_zephyr.silentflame.com
new file mode 100644
index 00000000..02471770
--- /dev/null
+++ b/archive/.ssh/host.d/root_zephyr.silentflame.com
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+user@zephyr-2018-08-09
diff --git a/archive/.ssh/host.d/spwhitton_athena.silentflame.com b/archive/.ssh/host.d/spwhitton_athena.silentflame.com
new file mode 100644
index 00000000..f8fbe873
--- /dev/null
+++ b/archive/.ssh/host.d/spwhitton_athena.silentflame.com
@@ -0,0 +1,5 @@
+swhitton@artemis-2015-08-15
+swhitton@various
+spwhitton@dionysus-2017-08-23
+user@zephyr-2018-08-09
+workstation_to_athena
diff --git a/archive/.ssh/host.d/spwhitton_chiark.greenend.org.uk b/archive/.ssh/host.d/spwhitton_chiark.greenend.org.uk
new file mode 100644
index 00000000..c19c2e7d
--- /dev/null
+++ b/archive/.ssh/host.d/spwhitton_chiark.greenend.org.uk
@@ -0,0 +1 @@
+user@zephyr-2018-08-09
diff --git a/archive/.ssh/host.d/spwhitton_hephaestus.silentflame.com b/archive/.ssh/host.d/spwhitton_hephaestus.silentflame.com
new file mode 100644
index 00000000..02471770
--- /dev/null
+++ b/archive/.ssh/host.d/spwhitton_hephaestus.silentflame.com
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+user@zephyr-2018-08-09
diff --git a/archive/.ssh/host.d/spwhitton_iris.silentflame.com b/archive/.ssh/host.d/spwhitton_iris.silentflame.com
new file mode 100644
index 00000000..02471770
--- /dev/null
+++ b/archive/.ssh/host.d/spwhitton_iris.silentflame.com
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+user@zephyr-2018-08-09
diff --git a/archive/.ssh/host.d/spwhitton_melete.silentflame.com b/archive/.ssh/host.d/spwhitton_melete.silentflame.com
new file mode 100644
index 00000000..02471770
--- /dev/null
+++ b/archive/.ssh/host.d/spwhitton_melete.silentflame.com
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+user@zephyr-2018-08-09
diff --git a/archive/.ssh/host.d/spwhitton_sage.u.arizona.edu b/archive/.ssh/host.d/spwhitton_sage.u.arizona.edu
new file mode 100644
index 00000000..02471770
--- /dev/null
+++ b/archive/.ssh/host.d/spwhitton_sage.u.arizona.edu
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+user@zephyr-2018-08-09
diff --git a/archive/.ssh/host.d/swhitton_quentin.silentflame.com b/archive/.ssh/host.d/swhitton_quentin.silentflame.com
new file mode 100644
index 00000000..f19d231f
--- /dev/null
+++ b/archive/.ssh/host.d/swhitton_quentin.silentflame.com
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+swhitton@quentin
diff --git a/archive/.ssh/host.d/swhitton_zephyr.silentflame.com b/archive/.ssh/host.d/swhitton_zephyr.silentflame.com
new file mode 100644
index 00000000..02471770
--- /dev/null
+++ b/archive/.ssh/host.d/swhitton_zephyr.silentflame.com
@@ -0,0 +1,2 @@
+swhitton@artemis-2015-08-15
+user@zephyr-2018-08-09
diff --git a/archive/.ssh/pubkey.d/spwhitton@dionysus-2017-08-23 b/archive/.ssh/pubkey.d/spwhitton@dionysus-2017-08-23
new file mode 100644
index 00000000..7652ec09
--- /dev/null
+++ b/archive/.ssh/pubkey.d/spwhitton@dionysus-2017-08-23
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzKDCrDLmbfDxlNgOKd2x0m/EtIjP2tncKOntFJfLiLq4HPN7xS9KDDhbaUNFL3sDN0xN9Wy+nf7JmvaO11x9UdDF4ebGPHWmE3cEM8nXUf+vsBGLDpwZZeblPwX11kSp/Gxawzp4XF5Si53xYaZwHlhVyjbh5eb6gDQH5C9bniWYd2bTZN5ShM40GCRW956fEx5AiTS0hi4DF4CtFdsfzfDNl/9XiS0KwmDAsM8dLevkWV0Cwx16vBGBYnF0M+aMPpAjDMzyVTeCw4t26crt/uFdkDWQsxCVHUBYlgwmir5jj9g1CYKISCvdpTM575mI/LGtYUYRD1SGaTsbOyyC/ spwhitton@dionysus-2017-08-23
diff --git a/archive/.ssh/pubkey.d/swhitton@artemis-2015-08-15 b/archive/.ssh/pubkey.d/swhitton@artemis-2015-08-15
new file mode 100644
index 00000000..3a4aea2f
--- /dev/null
+++ b/archive/.ssh/pubkey.d/swhitton@artemis-2015-08-15
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSNiZZ/mc8BlII5MWnVKFcy8gQ9No8W4qhrZbC8NnvCyAxUgNdJN7tJV4ZQarEjReAqLryvLXi1p0WEVSva665l6M5hjot0bzRDwW+9eyohQvxjZNCoqXQegb53QuNO3mqGcRxIo+0cbMtOAuYGpD3Rjpk1tO6k5MgY+Cf3qxAYCtSpO43qok/vqUi20cJwmWPAeM3PRX0pagM6VxWqi9tyjF9Q2+W/v7ppxWjbGAUQzz8X96LubAGWdLvkJaHSUSZLvERmktDvZDF9zyfLFMAYFytvI0fIuNZvJgivG8N5L/pHF4YcvlPErJMTYaOebc9ZV+c5C8A3Scad4ms5+gD swhitton@artemis-2015-08-15
diff --git a/archive/.ssh/pubkey.d/swhitton@quentin b/archive/.ssh/pubkey.d/swhitton@quentin
new file mode 100644
index 00000000..c3dd5b65
--- /dev/null
+++ b/archive/.ssh/pubkey.d/swhitton@quentin
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUCogwuf6YEhR2z5MXiYMUXFTsag4akqECcrTbqNPC+TZZxdbtXsnB/n7kljJT9D/x+JkA6uhCpHOy7pTC3lxVXaKaRzhwyh6ZuHlyFpe5Nw75SclVgFcFmfSpTnE2HlrqGQpGrjykkB4v64Ps+r+fwCHtBXwKWS9fgIyO2pi43PUNHqL3s7fOfiYvUSqyV0R0atOLL4usf4giJXyYGiNS5zZ2oMC0Hx2nEWIZ8lg/jqOCRlWIpJiVDKE/SqlAdmRstzLe99RWbFLW23hnMU3C0YX4OdhYUhQcGrRDSxdzDQpecj6IHCE8lXty8Amy6iC8S4Y39la9PidhQOGSQBR3 swhitton@quentin
diff --git a/archive/.ssh/pubkey.d/swhitton@various b/archive/.ssh/pubkey.d/swhitton@various
new file mode 100644
index 00000000..f69530fc
--- /dev/null
+++ b/archive/.ssh/pubkey.d/swhitton@various
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIB8HxG1uKx9JlcPeHeCV38C37RPgyHY+cVU32mI/aG/FTMIptMFfF8XzSDexyQ2Yfw2GBLFOTy2AsXQ8Y1xcfQ44zGH8DHKYUVJfAB+RjJbKHhb8Ll+V7fQuUz5rMxfy8RyCa5yIGzs4bnx35MMTyBjp4HH+qn1X2cJ66KTx6ftgw== swhitton@various
diff --git a/archive/.ssh/pubkey.d/user@zephyr-2018-08-09 b/archive/.ssh/pubkey.d/user@zephyr-2018-08-09
new file mode 100644
index 00000000..d63f15ee
--- /dev/null
+++ b/archive/.ssh/pubkey.d/user@zephyr-2018-08-09
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDwSRfyLy1Dg/1m5CGl80xVc/gJ3haOBzo1i3bUrM/1apND3bf/w8f5ZxS27OKDSv65eE8iXxrlibGd+jJZYaolpcDaestwPAbf6lp+vLYyANDrZUORCcKM5Pi/0z8oa5jLszQyW0ieVftGIjObUXdi7DrvLu9L64BgNdQgAr+oQptqj8COAmidrJej2xPo5qJ63auySMUHA5rkG4qLO4P+gbw5OVMGP5JMlIbqP30k/xwKSaOoVv3tcpeHwYlsLYKflIeA0I7JQ7t/jmB59LJ/oLf+A3oYIZOAemBN90n+QzbCNulVe79H1KHiGE54fWW7dRbFxjssXBxRbe69TX4+S7UasfnFLYwHEpaep/XY2k5vfI6k1PcRBYMoOrAID1XBD1qPZjX6fylYYBRBvmlgY1a/E8OmF5sKgW2npbeWvocIxHspr7iUdN8TLJvUfTd16SG4N4BhwXx6eSX42qhOS9M60nARAW7cI54wsflbN+QJjpJ6x2iIhEhgk2rKbHL/fe7Y6RjCyyygsdrmuwIslZDabqLYssHUxrK2IgKjMVIQcKam4nXfuT3OkfIwqkkm4smA1XEgP3Qc4gNNItMGJZYeKJ+6JnrdTG59oL76xlIyHalit/sku6mAPBpud8AfqvVI1/hH4BiWeqF7hP5xdWNCbtiQ555uDry/4xa6Tw== user@zephyr-2018-08-09
diff --git a/archive/.ssh/pubkey.d/workstation_to_athena b/archive/.ssh/pubkey.d/workstation_to_athena
new file mode 100644
index 00000000..92db89fd
--- /dev/null
+++ b/archive/.ssh/pubkey.d/workstation_to_athena
@@ -0,0 +1 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKNOczVw1CNdV/saKCvFdqDjUhQVSDT4vAvSlxeYLCoGL8tOAfs22J6Rh71Pbksw1Fa1QzkOY3+INUN8RmLqsHYiUnX2eqS53maxkjYp8avVGOJjCo5MG2V9U//wXZXmIDBWSCwH0ViIxTQXccyrW5r23q6huj/irPpqn76p3gu3s7OiLE+EG6eysNE0eAsy2TpKSgu1+b5uCQzqRuYjPImLKbh6JlcZnYp/kyH7Nx6GXswfCTkiyhgNmsrfW0JS7gf+dlL701oh6w7DhoRuY2hkSlSdcNWQwFu2nHn+AAZoNAaHaYSiXi1NSmWGsXW7T7Cqs5V7lCiAArTMGopBhV workstation_to_athena
diff --git a/archive/bin/loadcron b/archive/bin/loadcron
new file mode 100755
index 00000000..a8ee614b
--- /dev/null
+++ b/archive/bin/loadcron
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# Load a crontab from ~/.config/cron. Replace "$HOME" with actual
+# homedir because cron can't deal with $HOME in crontabs
+
+# This script was originally written by Joey Hess:
+# http://git.kitenet.net/?p=joey/home.git;a=blob;f=bin/loadcron
+
+set -e
+
+WARNING="# Automatically generated by loadcron; edit ~/.config/cron/ files instead."
+
+if [ ! -z "$(crontab -l 2>/dev/null)" ] && ! crontab -l | grep -q "$WARNING"; then
+ if [ "$1" != "-f" ]; then
+ echo "loadcron: Current crontab was not generated by loadcron; not changing." >&2
+ echo "loadcron: Use loadcron -f to override"
+ exit 1
+ else
+ crontab -l > $HOME/tmp/oldcrontab
+ echo "loadcron: Old crontab is backed up to $HOME/tmp/oldcrontab"
+ fi
+fi
+
+if [ -z "$(crontab -l 2>/dev/null)" ] && [ "$1" != "-f" ]; then
+ echo >&2 "$(basename $0): no crontab; not loading without -f"
+ exit 1
+fi
+
+tab=$HOME/.config/cron/$(whoami)_$(hostname -f)
+if [ -e "$tab" ]; then
+ (
+ echo "$WARNING"
+ echo
+ echo "# From $tab:"
+ sed "s!\$HOME!$HOME!g" < "$tab"
+ # anacron: disabled because I don't have any useful anacron
+ # jobs on any hosts at present
+ # hostanacrontab=$HOME/.config/anacron/$(whoami)_$(hostname -f)
+ # mkdir -p $HOME/local/anacron/spool
+ # if [ -e "$hostanacrontab" ]; then
+ # echo "# Personal anacron:"
+ # echo "0 8 * * * anacron -s -t $hostanacrontab -S $HOME/local/anacron/spool"
+ # echo "@reboot anacron -s -t $hostanacrontab -S $HOME/local/anacron/spool"
+ # echo
+ # fi
+ ) | crontab -
+else
+ echo "loadcron: $tab does not exist, not loading" >&2
+fi
+
+# units=$HOME/.config/host-user-units/`hostname -f`
+# if [ -e "$units" ]; then
+# cat "$units" | while read unit; do
+# systemctl --user enable "$unit"
+# done
+# fi
diff --git a/archive/bin/loadsshkeys b/archive/bin/loadsshkeys
new file mode 100755
index 00000000..61f0d4ae
--- /dev/null
+++ b/archive/bin/loadsshkeys
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# Concatenate together an authorized_keys file based on files in
+# ~/.ssh/{host.d,pubkey.d}.
+
+set -e
+
+WARNING="# Automatically generated by loadsshkeys; edit ~/.ssh/{host.d,pubkey.d}/ files instead."
+
+if [ -e "$HOME/.ssh/authorized_keys" ] && ! cat "$HOME/.ssh/authorized_keys" | grep -q "$WARNING"; then
+ if [ "$1" != "-f" ]; then
+ echo "loadsshkeys: current authorized_keys file was not generated by this script; not touching it" >&2
+ echo "loadsshkeys: use loadsshkeys -f to override" >&2
+ exit 1
+ else
+ cat $HOME/.ssh/authorized_keys > $HOME/tmp/old_authorized_keys
+ echo "loadsshkeys: old authorized_keys file backed up to $HOME/tmp/old_authorized_keys"
+ fi
+fi
+
+keys=$HOME/.ssh/host.d/${USER}_$(hostname -f)
+if [ -e "$keys" ]; then
+ (
+ echo "$WARNING"
+ echo
+ cat $keys | while read key; do
+ cat "$HOME/.ssh/pubkey.d/$key"
+ done
+ ) > $HOME/.ssh/authorized_keys
+fi