# works in addition to HISTCONTROL to do more flexible things
# it could also do the same things as HISTCONTROL and thus replace it,
# but meh. dunno why, but just " *" does glob expansion, so use [ ] to avoid it.
-HISTIGNORE='pass *:[ ]*:lom '
+HISTIGNORE='pass *:[ ]*:lom*:gram*'
export BC_LINE_LENGTH=0
source /a/bin/errhandle/err
err-allow
fi
+# if someone exported $SOE (stop on error), catch errors
+if [[ $SOE ]]; then
+ err-catch
+fi
+
path_add /a/exe
# end just because it seems safer
path_add --end node_modules/.bin
lom() {
local l base
if [[ $1 == /* ]]; then
+ base=${1##*/}
+ if mountpoint /mnt/$base; then
+ return 0
+ fi
l=$(sudo losetup -f)
sudo losetup $l $1
- base=${1##*/}
if ! sudo cryptsetup luksOpen $l $base; then
sudo losetup -d $l
return 1
base=$1
sudo umount /mnt/$base
l=$(sudo cryptsetup status /dev/mapper/$base|sed -rn 's/^\s*device:\s*(.*)/\1/p')
- sudo cryptsetup luksClose /dev/mapper/$base
+ sudo cryptsetup luksClose /dev/mapper/$base || return 1
sudo losetup -d $l
fi
}
local service=$1
if [[ $(s systemctl --no-pager show -p ActiveState $service ) == ActiveState=active ]]; then
systemctl restart $service
- fi
+ fi
}
serstopnm() {
ser stop NetworkManager
unset IFS
-# if someone exported $SOE, catch errors
-if [[ $SOE ]]; then
- errcatch
-fi
-
# for mitmproxy to get a newer python.
# commented until i want to use it because it
# noticably slows bash startup
export BASEFILE_DIR=/a/bin/fai-basefiles
+export ANDROID_HOME=/opt/android
+
# didnt get drush working, if I did, this seems like the
# only good thing to include for it.
# Include Drush completion.
# transaction info.
transaction_syslog local7
-# 20%ish speedup[]
-stream_buffer 512m
+# note, i had this because man said 20% speedup, but ran into
+# this issue, https://github.com/digint/btrbk/issues/275
+#stream_buffer 512m
# so we only run one at a time
lockfile /var/lock/btrbk.lock
/a/exe/lnf -T /p/arbtt-capture.log ~/.arbtt/capture.log
##### end special extra stuff #####
- sudo bash -c 'cd /etc/openvpn; for f in client/*; do ln -sf $f .; done'
- sudo bash -c 'chmod 600 /etc/openvpn/client/*.key'
+ sudo bash -c 'cd /etc/openvpn; for f in client/* server/*; do ln -sf $f .; done'
+ sudo bash -c 'cd /etc/openvpn; for f in server/*.key client/*.key; do chmod 600 $f; done'
m sudo -H -u traci "$BASH_SOURCE"
;;
s lnf /q/root/.editor-backups /q/root/.undo-tree-history \
/a/opt /a/c/.emacs.d $HOME/mw_vars /k/backup /root
pi rsync # needed for rootsshsync
+/a/bin/ds/install-my-scripts # needed for rootsshsync
rootsshsync
s lnf /a/c/.vim /a/c/.vimrc /a/c/.gvimrc /root
if has_p; then
l="deb [arch=amd64] $url $(debian-codename-compat) stable"
if ! grep -xFq "$l" /etc/apt/sources.list{,.d/*.list}; then
- sudo add-apt-repository $l
+ sudo add-apt-repository "$l"
p update
fi
# docker eats up a fair amount of cpu when doing nothing, so don't enable it unless
EOF
f=/etc/apt/sources.list.d/iridium-browser.list
if ! diff -q $t $f; then
- cp $t $f
- chmod 644 $f
+ s cp $t $f
+ s chmod 644 $f
p update
fi
pi iridium-browser
EOF
f=/etc/apt/sources.list.d/bionic.list
if ! diff -q $t $f; then
- cp $t $f
- chmod 644 $f
+ s cp $t $f
+ s chmod 644 $f
p update
fi
# 450 seems likely to be unused. we need to specify one or else
# it won't be stable across installs.
if ! getent passwd debian-transmission > /dev/null; then
+ s groupadd -g 450 debian-transmission
case $distro in
arch)
- s groupadd -g 450 debian-transmission
s useradd \
--system \
--create-home \
--gid 450 \
--uid 450 \
--system \
- --group \
--no-create-home \
--disabled-password \
--home /var/lib/transmission-daemon \
# just the latest stable at the time of writing
# TODO, maybe put this all into a build script,
# and do some automatic updates
- wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
+ wget -q https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
s tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz
rm -f *
fi
[Unit]
Description=fsf-vpn-dns-cleanup
After=multi-user.target
-Conflicts=openvpn-client@fsf80.service openvpn@fsf80.service openvpn-client@fsf802.service openvpn-client@fsf803.service
+Conflicts=openvpn-client@fsf80.service openvpn-client@fsf802.service openvpn-client@fsf803.service openvpn-client@fsf443.service openvpn-client@fsf4432.service openvpn-client@fsf4433.service
[Service]
Type=oneshot
pv
python-autopep8
python3-doc
+ qemu-user-static
qrencode
readline-doc
reportbug
#keyserver hkp://pgp.mit.edu
#keyserver hkp://pool.sks-keyservers.net
#keyserver hkp://keyserver.pgp.com
-keyserver hkp://ipv4.pool.sks-keyservers.net
+#keyserver hkp://ipv4.pool.sks-keyservers.net
+keyserver hkp://keys.gnupg.net
+
# more secure, but had problems with my gpg version
#keyserver hkps://hkps.pool.sks-keyservers.net