From: Ian Kelling Date: Wed, 26 Apr 2017 15:19:40 +0000 (-0700) Subject: small improvements X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=d2f4a038e4960d9b5fd92f1c0bf302d0e5ac487c small improvements --- diff --git a/brc b/brc index 0d45e25..d82c852 100644 --- 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