done
}
+# these might need a mu index or something added.
mbenable() {
local mb=$1
dst=/m/4e/$mb
[[ -e $src ]] || { echo "src:$src does not exist"; return 1; }
m mv -T $src $dst
m ln -s -T $dst $src
- mu index --maildir=/m/4e
}
mb2enable() {
local mb
m mv -T $src $dst
m ln -sf -T $dst $link
done
- #mu index --maildir=/m/4e
}
mbdisable() {
local mb=$1
# Man page says we could also use a range, i suppose it would be
# logical to use a pattern like 5..10 10..20,
# but I don't know if this would help us at all.
-dusage="1 5 10 20 30 40 50"
-musage="1 5 10 20 30"
+dusage="5 10"
+musage="5"
e() { echo "cron: $*"; "$@"; }
check-idle() {
+ type -p xprintidle &>/dev/null || return 0
export DISPLAY=:0
# a hours, a movie could run that long.
idle_limit=$((1000 * 60 * 60 * 2))
# e df -H $mnt
if btrfs filesystem df $mnt | grep -q "Data+Metadata"; then
for usage in $dusage; do
- e btrfs balance start -dusage=$usage -musage=$usage $mnt
+ e ionice -c 3 btrfs balance start -dusage=$usage -musage=$usage $mnt
done
else
- e btrfs balance start -dusage=0 $mnt
+ e ionice -c 3 btrfs balance start -dusage=0 $mnt
for usage in $dusage; do
- e btrfs balance start -dusage=$usage $mnt
+ e ionice -c 3 btrfs balance start -dusage=$usage $mnt
done
- e btrfs balance start -musage=0 $mnt
+ e ionice -c 3 btrfs balance start -musage=0 $mnt
for usage in $musage; do
- e btrfs balance start -musage=$usage $mnt
+ e ionice -c 3 btrfs balance start -musage=$usage $mnt
done
fi
# e btrfs filesystem df $mnt
continue
fi
fi
- e btrfs scrub start -Bd $mnt
+ # -c 2 -n 4 is from btrfsmaintenance, does ionice
+ e btrfs scrub start -Bd -c 2 -n 4 $mnt
done
}
echo HOSTNAME: $HOSTNAME
printf "%s\n" "$out"
fi
-out=$(ssh bk.b8.nz find /m/md/bounces/new /var/local/cron-errors /home/iank/cron-errors /sysd-mail-once-state -type f -ctime +1v )
+out=$(ssh bk.b8.nz find /m/md/bounces/new /var/local/cron-errors /home/iank/cron-errors /sysd-mail-once-state -type f -ctime +1 )
if [[ $out ]]; then
echo bk.b8.nz:
printf "%s\n" "$out"
nabia|etiona)
# for ziva
#p install --no-install-recommends minetest/buster libleveldb1d/buster libncursesw6/buster libtinfo6/buster
- f=/etc/apt/sources.list.d/buster.list
- t=$(mktemp)
- cat >$t <<EOF
+ doupdate=false
+ for n in buster bullseye; do
+ f=/etc/apt/sources.list.d/$n.list
+ t=$(mktemp)
+ case $n in
+ buster)
+ cat >$t <<'EOF'
deb http://http.us.debian.org/debian buster main
deb-src http://http.us.debian.org/debian buster main
deb http://http.debian.net/debian buster-backports main
deb-src http://http.debian.net/debian buster-backports main
EOF
- if ! diff -q $t $f; then
+ ;;
+ bullseye)
+ cat >$t <<'EOF'
+EOF
+ cat >$t <<EOF
+deb http://deb.debian.org/debian bullseye main
+deb-src http://deb.debian.org/debian bullseye main
+
+deb http://deb.debian.org/debian-security/ bullseye-security main
+deb-src http://deb.debian.org/debian-security/ bullseye-security main
+
+deb http://deb.debian.org/debian bullseye-updates main
+deb-src http://deb.debian.org/debian bullseye-updates main
+
+deb http://http.debian.net/debian bullseye-backports main
+deb-src http://http.debian.net/debian bullseye-backports main
+EOF
+ ;;
+ esac
+
+ if ! diff -q $t $f; then
+ doupdate=true
+ s cp $t $f
+ s chmod 644 $f
+ fi
+ done
+ if $doupdate; then
curl -s https://ftp-master.debian.org/keys/archive-key-10-security.asc | sudo apt-key add -
curl -s https://ftp-master.debian.org/keys/archive-key-10.asc | sudo apt-key add -
- s cp $t $f
- s chmod 644 $f
p update
fi
- if [[ ! -e /usr/share/debootstrap/scripts/buster ]]; then
+
+ if [[ ! -e /usr/share/debootstrap/scripts/bullseye ]]; then
t=$(mktemp -d)
cd $t
- m aptitude download debootstrap/buster
+ m aptitude download debootstrap/bullseye
m ex ./*
sudo cp ./usr/share/debootstrap/scripts/* /usr/share/debootstrap/scripts
fi
# exit i3 (logs you out of your X session)
-bindsym $mod+Shift+Tilde exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
+bindsym $mod+Shift+o exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
bindsym $mod+Shift+p restart
fi
EOFOUTER
+ mkdir -p /var/www/cron-errors
+ chown www-data.www-data /var/www/cron-errors
i /etc/cron.d/$ncbase <<EOF
PATH=/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin
SHELL=/bin/bash
copyq
cpulimit
cron
+ cvs
debian-archive-keyring
debug-me
debootstrap
# file:///usr/share/doc/i3-wm/userguide.html#_border_style_for_new_windows
new_window none
# exit i3 (logs you out of your X session)
-bindsym $mod+Shift+Tilde exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
+bindsym $mod+Shift+o exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
bindsym $mod+Shift+p restart
--- /dev/null
+a cycle_values video-rotate "90" "180" "270" "0"
header :contains "list-id" "<xapian-devel.lists.xapian.org>",
header :contains "list-id" "<kdeconnect.kde.org>",
header :contains "list-id" "<mu-discuss.googlegroups.com>",
- header :contains "list-id" "<<devel.mediagoblin.org>",
+ header :contains "list-id" "<devel.mediagoblin.org>",
header :contains "list-id" "<maru-os.googlegroups.com>",
header :contains "list-id" "<listhelper-moderate.nongnu.org>",
header :contains "list-id" "<coreboot.coreboot.org>",