fixes and new bashrc func
[distro-setup] / brc
diff --git a/brc b/brc
index 0d45e25e7cd96a46ea5e2f052e1786745f5f533b..2d3f198bf2be066363e82d1469a1bdc8c883e79b 100644 (file)
--- a/brc
+++ b/brc
@@ -490,7 +490,7 @@ dt() {
     date "+%A, %B %d, %r" "$@"
 }
 
-dus() {
+dus() { # du, sorted, default arg of
     du -sh ${@:-*} | sort -h
 }
 
@@ -550,19 +550,18 @@ fdroid_pkgs=(
     com.termux
     de.danoeh.antennapod
     de.marmaro.krt.ffupdater
-    # riot
-    im.vector.alpha
+    im.vector.alpha # riot
     me.ccrama.redditslide
     net.gaast.giggity
     net.osmand.plus
-    # caldav tasks thing
-    org.dmfs.tasks
+    org.dmfs.tasks # caldav tasks thing
     org.fdroid.fdroid
     org.quantumbadger.redreader
     org.secuso.privacyfriendlyweather
     org.smssecure.smssecure
     org.fedorahosted.freeotp
     com.ghostsq.commander
+    me.tripsit.tripmobile
     # https://forum.xda-developers.com/android/software-hacking/wip-selinux-capable-superuser-t3216394
     me.phh.superuser
 )
@@ -856,7 +855,15 @@ else
     }
 fi
 
+net-dev-info() {
+    e "lspci -nnk|gr -iA2 net"
+    lspci -nnk|gr -iA2 net
+    hr
+    e "s lshw -C network"
+    hr
+    s lshw -C network
 
+}
 
 istext() {
     grep -Il "" "$@" &>/dev/null
@@ -999,14 +1006,6 @@ pick-trash() {
     done
 }
 
-postconfin() {
-    local MAPFILE
-    mapfile -t
-    local s
-    [[ $EUID == 0 ]] || s=s
-    $s postconf -ev "${MAPFILE[@]}"
-}
-
 pub() {
     rld /a/h/_site/ li:/var/www/iankelling.org/html
 }
@@ -1096,6 +1095,22 @@ rlu() { # [OPTS] HOST PATH
     s rsync -rlpchviog --relative "${opts[@]}" "$path" "root@$host:/";
 }
 
+r2eadd() { # usage: name url
+    # initial setup of rss2email:
+    # r2e new r2e@iankelling.org
+    # that initializes files, and sets default email.
+    # Would have been simpler to just leave it off since i\'m not
+    # using the default email. Symlinks won\'t work, so we use binds.
+    # mkdir /p/c/binds/.config/
+    # mv ~/.config/rss2email.cfg /p/c/binds/.config/
+    # mkdir /p/c/binds/.local/share/
+    # mv ~/.local/share/rss2email.json /p/c/binds/.local/share/
+    # conflink
+    r2e add $1 "$2" $1@r2e.iankelling.org
+    # get up to date and don't send old entries now:
+    r2e run --no-send $1
+}
+r2e() { command r2e -d /p/c/rss2email.json -c /p/c/rss2email.cfg "$@"; }
 
 rspicy() { # usage: HOST DOMAIN
     # connect to spice vm remote host. use vspicy for local host
@@ -1664,10 +1679,6 @@ fi
 # based on warning from rvmsudo
 export rvmsudo_secure_path=1
 
-# for other script I wrote
-#export ACME_TINY_PATH=/a/opt/acme-tiny
-export ACME_TINY_WRAPPER_CERT_DIR=/p/c/machine_specific/$HOSTNAME/webservercerts
-
 if [[ -s "/usr/local/rvm/scripts/rvm" ]]; then
     source "/usr/local/rvm/scripts/rvm"
 elif [[ -s $HOME/.rvm/scripts/rvm ]]; then