# 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='k *:[ ]*'
+HISTIGNORE='pass *:k *:[ ]*'
export BC_LINE_LENGTH=0
/a/opt/android-platform-tools/fastboot "$@";
}
+kdecd() { /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd; }
# List of apps to install/update
# Create from existing manually installed apps by doing
+# fdroidcl update
# fdroidcl search -i, then manually removing
# automatically installed/preinstalled apps
# usually good enough to just rm -rf /data/app/APPNAME
#
# currently broken:
-#at.bitfire.davdroid
fdroid_pkgs=(
+ at.bitfire.davdroid
com.alaskalinuxuser.justnotes
com.artifex.mupdfdemo
com.fsck.k9
org.quantumbadger.redreader
org.smssecure.smssecure
org.fedorahosted.freeotp
+ org.yaaic
)
# https://forum.xda-developers.com/android/software-hacking/wip-selinux-capable-superuser-t3216394
# for maru,
}
kff() { # keyboardio firmware flash
- pushd /a/opt/sketches/Model01-Firmware
+ pushd /a/bin/distro-setup/Arduino/Model01-Firmware
yes $'\n' | make flash
popd
}
vpncmd() {
- m s nsenter -t $(pgrep -f "/usr/sbin/openvpn .* --config /etc/openvpn/client/client.conf") -n -m "$@"
+ m s nsenter -t $(pgrep -f "/usr/sbin/openvpn .* --config /etc/openvpn/.*client.conf") -n -m "$@"
}
vpnf() {
- vpncmd gksudo -u ian "firefox -no-remote -P firefox-main-profile" &r
+ vpncmd gksudo -u iank "firefox -no-remote -P firefox-main-profile" &r
}
vpnbash() {
vpncmd bash
f=$dir/bitcoin.conf
s dd of=$f <<EOF
- server=1
- # necessary for joinmarket, not bad in general
- rpcpassword=$(openssl rand -base64 32)
- rpcuser=$(openssl rand -base64 32)
- EOF
+server=1
+# necessary for joinmarket, not bad in general
+rpcpassword=$(openssl rand -base64 32)
+rpcuser=$(openssl rand -base64 32)
+EOF
# dunno about sharing a wallet between multiple instances
# manually did, wallet.dat symlinked in /nocow/.bitcoin
f2=$dir/bitcoinjm.conf
s cp $f $f2
s tee -a $f2 >/dev/null <<EOF
- # Joinmarket
- walletnotify=curl -sI --connect-timeout 1 http://localhost:62602/walletnotify?%s
- alertnotify=curl -sI --connect-timeout 1 http://localhost:62602/alertnotify?%s
- wallet=joinmarket.dat
- EOF
+# Joinmarket
+walletnotify=curl -sI --connect-timeout 1 http://localhost:62602/walletnotify?%s
+alertnotify=curl -sI --connect-timeout 1 http://localhost:62602/alertnotify?%s
+wallet=joinmarket.dat
+EOF
;;
# other distros unknown
#!/bin/bash
-offlineimap -a fsf
-sieve-filter -eW -o mail_location=maildir:/nocow/user/fsfmd:LAYOUT=fs:INBOX=/nocow/user/fsfmd/INBOX ~/sieve/fsf.sieve INBOX &>/tmp/fsfsieve.log
+
+# commented, because relying on cronjob
+#offlineimap -a fsf
+
+# delete based on http://deflexion.com/2006/05/imap-way-of-deleting-message
+sieve-filter -eW -o mail_location=maildir:/nocow/user/fsfmd:LAYOUT=fs:INBOX=/nocow/user/fsfmd/INBOX ~/sieve/fsf.sieve INBOX delete &>/tmp/fsfsieve.log
# to test new rules, update fsf-test.sieve, run these commands, then copy new fsf-test.sieve to fsf.sieve
cat >/etc/systemd/system/offlineimapsync.timer <<'EOF'
[Unit]
-Description=Run offlineimap-sync once every 5 mins
+Description=Run offlineimap-sync once every min
[Timer]
-OnCalendar=*:0/5
+OnCalendar=*:0/1
[Install]
WantedBy=timers.target
# xawtv has webcam cli control. v4lctl bright 80%; v4lctl list
# guvcview also adjusts webcam
# pv is used by btrbk
+# libterm-readkey-perl for rt cli tool
p4=(
adb
apache2
kid3-qt
kid3-cli
konsole
+ libterm-readkey-perl
libreoffice
linphone
linux-doc
python3-doc
qrencode
reportbug
+ rng-tools
sakura
schroot
sqlite3-doc
After=$vpn_ser@mail.service
[Install]
-RequiredBy=openvpn-client@mail.service
+RequiredBy=$vpn_ser@mail.service
EOF
ser daemon-reload # not sure this is needed
# another option is 0xshort
keyid-format 0xlong
-# iank@fsf.org
default-key B125F60B7B287FF6A2B7DF8F170AF0E2954295DF
+default-key 0xFB40960C541A7D1F
+
# note, i did this so that gpg-agent would not hold open the .gnupg dir.
# so I could unmount the filesystem which holds the .gnupg dir while
# running gpg-agent.
require [ "regex", "variables", "fileinto", "envelope", "mailbox", "imap4flags", "include" ];
+if anyof (header :contains "list-id" "<office-commits.gnu.org>") {
+ discard;
+ stop;
+ }
+
if anyof (
address :is "from" "sysadmin@gnu.org",
address :is "to" "sysadmin-nonrt@gnu.org",
stop;
}
elsif anyof (
- header :contains "list-id" "<office-commits.gnu.org>",
header :is "Return-path" "<rtbounces@gnu.org>"
) {
fileinto :create "rtcc";
stop;
}
+
+
if anyof (
header :regex "subject" "mailing list memberships reminder",
address :is "to" "rtbounces@gnu.org",
header :contains "list-id" "<qemu-devel.nongnu.org>",
header :contains "list-id" "<exim-dev.exim.org>",
header :contains "list-id" "<exim-users.exim.org>",
+ header :contains "list-id" "<octave-maintainers.gnu.org>",
header :contains "list-id" "<xmonad.haskell.org>") {
if header :regex "list-id" "<([a-z_0-9-]+)[.@]" {
set :lower "listname" "${1}";