- sudo tail -f /var/log/exim4/mainlog
-}
-
-f() {
- # cd forward
- c +
-}
-
-fa() {
- # find array. make an array of file names found by find into $x
- # argument: find arguments
- # return: find results in an array $x
- while read -rd ''; do
- x+=("$REPLY");
- done < <(find "$@" -print0);
-}
-
-faf() { # find all files
- find -L $1 -type f -not \( -name .svn -prune -o -name .git -prune \
- -o -name .hg -prune -o -name .editor-backups -prune \
- -o -name .undo-tree-history -prune \) 2>/dev/null
-}
-
-fastboot() { /a/opt/androidsdk/platform-tools/fastboot "$@"; }
-
-
-# List of apps to install/update
-# Create from existing manually installed apps by doing
-# fdroidcl search -i, then manually removing
-# automatically installed/preinstalled apps
-
-# firefox updater. commented out, firefox depends on nonfree opengl.
-# de.marmaro.krt.ffupdater
-# # causes replicant to die on install and go into a boot loop
-# me.ccrama.redditslide
-#
-# # my attempt at recovering from boot loop:
-# # in that case, boot to recovery (volume up, home button, power, let go of power after samsun logo)
-# # then
-# mount /dev/block/mmcblk0p12 /data
-# cd /data
-# find -iname '*appname*'
-# rm -rf FOUND_DIRS
-# usually good enough to just rm -rf /data/app/APPNAME
-#
-# currently broken:
-#at.bitfire.davdroid
-fdroid_pkgs=(
- com.alaskalinuxuser.justnotes
- com.artifex.mupdfdemo
- com.fsck.k9
- com.ichi2.anki
- com.jmstudios.redmoon
- com.notecryptpro
- com.nutomic.syncthingandroid
- com.termux
- com.zoffcc.applications.zanavi
- cz.martykan.forecastie
- de.danoeh.antennapod
- im.vector.alpha # riot
- info.papdt.blackblub
- me.tripsit.tripmobile
- net.gaast.giggity
- net.osmand.plus
- net.sourceforge.opencamera
- org.dmfs.tasks # caldav tasks thing
- org.fdroid.fdroid
- org.isoron.uhabits
- org.kde.kdeconnect_tp
- org.quantumbadger.redreader
- org.smssecure.smssecure
- org.fedorahosted.freeotp
-)
-# https://forum.xda-developers.com/android/software-hacking/wip-selinux-capable-superuser-t3216394
-# for maru,
-#me.phh.superuser
-
-fdup() {
- local -A installed updated
- local p
- fdroidcl update
- for p in $(fdroidcl search -i| grep -o "^\S\+"); do
- installed[$p]=true
- done
- for p in $(fdroidcl search -u| grep -o "^\S\+"); do
- updated[$p]=false
- done
- for p in ${fdroid_pkgs[@]}; do
- ${installed[$p]:-false} || fdroidcl install $p
- done
- for p in ${!installed[@]}; do
- ${updated[$p]:-true} || fdroidcl upgrade $p
- done
-}
-
-firefox-default-profile() {
- key=Default value=1 section=$1
- file=/p/c/subdir_files/.mozilla/firefox/profiles.ini
- sed -ri "/^ *$key/d" "$file"
- sed -ri "/ *\[$section\]/,/^ *\[[^]]+\]/{/^\s*$key[[:space:]=]/d};/ *\[$section\]/a $key=$value" "$file"
-}
-fdhome() { #firefox default home profile
- firefox-default-profile Profile0