export BC_LINE_LENGTH=0
+export PROFILE_TASKS_TASK_OUTPUT_LIMIT=100
# note, if I use a machine I dont want files readable by all users, set
# umask 077 # If fewer than 4 digits are entered, leading zeros are assumed
# mail related
etail() {
- sudo tail -f /var/log/exim4/mainlog
+ sudo tail -F /var/log/exim4/mainlog -n 50
}
f() {
scriptreplay "$1.t" "$1.s"
}
-smeld() { # usage host1 host2 file
+smeld() { # ssh meld usage host1 host2 file
meld <(ssh $1 cat $3) <(ssh $2 cat $3)
}
xscreensaver-command -activate
}
+xevkb() { xev -event keyboard; }
+
# * misc stuff
# from curl cheat.sh/:bash_completion
path_add $GOPATH/bin
path_add /usr/local/go/bin
+# I have the git repo and a release. either one should work.
+# I have both because I was trying to solve an issue that
+# turned out to be unrelated.
+# ARDUINO_PATH=/a/opt/Arduino/build/linux/work
export ARDUINO_PATH=/a/opt/arduino-1.8.9
path_add --end ~/.npm-global
sshable=()
sshfail=()
- min_idle=$((60 * 15))
+ min_idle_ms=$((1000 * 60 * 15))
for h in ${targets[@]}; do
if zone=$(ssh root@$h "mkdir -p /mnt/root/btrbk && date +%z"); then
- if $cron && xidle=$(ssh iank@$h DISPLAY=:0 xprintidle) && [[ $xidle && $xidle -lt $min_idle ]]; then
+ if $cron && DISPLAY=:0 xprintidle; then
# This is a separate ssh because xprintidle can fail and thats ok.
# Ignore this host. i sometimes use a non-main machine for testing or web browsing, knowing that
# everything will be wiped by the next backup, but I dont want it to happen as Im using
sgo fsf-vpn-dns-cleanup
-case $distro in
- debian)
- pi chromium ;;
- trisquel|ubuntu)
- wget -qO - https://downloads.iridiumbrowser.de/ubuntu/iridium-release-sign-01.pub|sudo apt-key add -
- t=$(mktemp)
- cat >$t <<EOF
-deb [arch=amd64] https://downloads.iridiumbrowser.de/deb/ stable main
-#deb-src https://downloads.iridiumbrowser.de/deb/ stable main
-EOF
- f=/etc/apt/sources.list.d/iridium-browser.list
- if ! diff -q $t $f; then
- s cp $t $f
- s chmod 644 $f
- p update
- fi
- pi iridium-browser
- ;;
-esac
+# website is dead june 14 2019
+s rm -f /etc/apt/sources.list.d/iridium-browser.list
+# case $distro in
+# debian)
+# pi chromium ;;
+# trisquel|ubuntu)
+# wget -qO - https://downloads.iridiumbrowser.de/ubuntu/iridium-release-sign-01.pub|sudo apt-key add -
+# t=$(mktemp)
+# cat >$t <<EOF
+# deb [arch=amd64] https://downloads.iridiumbrowser.de/deb/ stable main
+# #deb-src https://downloads.iridiumbrowser.de/deb/ stable main
+# EOF
+# f=/etc/apt/sources.list.d/iridium-browser.list
+# if ! diff -q $t $f; then
+# s cp $t $f
+# s chmod 644 $f
+# p update
+# fi
+# pi iridium-browser
+# ;;
+# esac
### begin home vpn server setup
fi
######### end pump.io periodic backup #############
+# https://github.com/jlebon/textern
+cd /a/opt/textern
+make native-install USER=1
case $distro in
debian|trisquel|ubuntu)
# readable output
stdout_callback = yaml
# show execution time
-callback_whitelist = timer, profile_tasks
+callback_whitelist = timer, profile_tasks, profile_roles
[ssh_connection]
[Service]
Type=oneshot
-ExecStart=/usr/local/bin/install-my-scripts
+ExecStart=/a/exe/install-my-scripts
ExecStart=/a/bin/log-quiet/sysd-mail-once btrbk /usr/local/bin/btrbk-run -q --cron
ExecStart=/usr/local/bin/install-my-scripts
# keep your dkim signature intact but add list- headers.
DKIM_SIGN_HEADERS = mime-version:in-reply-to:references:from:date:subject:to
+# recommended if dns is expected to work
+CHECK_RCPT_VERIFY_SENDER = true
+# seems like a good idea
+CHECK_DATA_VERIFY_HEADER_SENDER = true
+CHECK_RCPT_SPF = true
+CHECK_RCPT_REVERSE_DNS = true
+CHECK_MAIL_HELO_ISSUED = true
EOF
# light version of exim does not have sasl auth support.
- pi exim4-daemon-heavy spamassassin
+ pi exim4-daemon-heavy spamassassin spf-tools-perl
apt-doc
apt-listchanges
apt-rdepends
+ apt-show-versions
aptitude-doc-en
asciidoc
backupninja