small improvements
authorIan Kelling <ian@iankelling.org>
Wed, 26 Apr 2017 15:19:40 +0000 (08:19 -0700)
committerIan Kelling <ian@iankelling.org>
Thu, 4 May 2017 23:42:22 +0000 (16:42 -0700)
brc

diff --git a/brc b/brc
index 0d45e25e7cd96a46ea5e2f052e1786745f5f533b..d82c852204879cc3d0b55d85547a90630c5c67fb 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
 )
@@ -999,14 +998,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 +1087,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