Compare commits
2 commits
3797934ef5
...
25c484c88d
Author | SHA1 | Date | |
---|---|---|---|
25c484c88d | |||
291557efa7 |
|
@ -71,7 +71,7 @@ if grep -q "Android" <<< `uname -a`; then
|
||||||
echo "use chsh from termux-tools to change default shell to zsh"
|
echo "use chsh from termux-tools to change default shell to zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "eza fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone glow progress s-tui killport micro btop bmon"
|
echo "eza fd bat tmux htop nano most ripgrep zsh lf restic rclone glow progress s-tui killport micro btop bmon"
|
||||||
echo "lazydocker for docker systems"
|
echo "lazydocker for docker systems"
|
||||||
echo "nvtop for gpu systems"
|
echo "nvtop for gpu systems"
|
||||||
echo "termux-api for termux systems"
|
echo "termux-api for termux systems"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
sudo /usr/local/bin/restic self-update
|
sudo /usr/local/bin/restic self-update
|
||||||
sudo setcap cap_dac_read_search=+ep /usr/local/bin/restic
|
sudo setcap cap_dac_read_search=+ep /usr/local/bin/restic
|
||||||
|
|
||||||
MACHINE=bubonic
|
MACHINE=
|
||||||
ZONE=root
|
ZONE=root
|
||||||
|
|
||||||
export RESTIC_REPOSITORY=
|
export RESTIC_REPOSITORY=
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
/data/data/com.termux/files/home/.shortcuts/emacs code
|
|
|
@ -1,30 +0,0 @@
|
||||||
#!/data/data/com.termux/files/usr/bin/bash
|
|
||||||
|
|
||||||
# debugging
|
|
||||||
#echo $1
|
|
||||||
#echo $2
|
|
||||||
|
|
||||||
# get a wake lock so we dont get background killed
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
|
||||||
|
|
||||||
# sync nc -> local based on emacs profile and on/off arg
|
|
||||||
if [ "$1" == "org" ] && [ "$2" == "" ]; then
|
|
||||||
/data/data/com.termux/files/home/.shortcuts/rclone-nc-local
|
|
||||||
fi
|
|
||||||
if [ "$1" == "code" ] && [ "$2" != "" ]; then
|
|
||||||
/data/data/com.termux/files/home/.shortcuts/rclone-devdocs
|
|
||||||
fi
|
|
||||||
|
|
||||||
# run emacs ; assume this will run awhile -- mind battery drain
|
|
||||||
/data/data/com.termux/files/usr/bin/emacs --with-profile $1
|
|
||||||
|
|
||||||
# sync local -> nc based on emacs profile and on/off arg
|
|
||||||
if [ "$1" == "org" ] && [ "$2" == "" ]; then
|
|
||||||
/data/data/com.termux/files/home/.shortcuts/rclone-local-nc
|
|
||||||
fi
|
|
||||||
# conditional here to save typing when it needs sestup
|
|
||||||
#if [ "$1" == "code" ] && [ "$2" != "" ]; then
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# release wake lock
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-unlock
|
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
/data/data/com.termux/files/home/.shortcuts/emacs org
|
|
|
@ -1,29 +0,0 @@
|
||||||
#!/data/data/com.termux/files/usr/bin/sh
|
|
||||||
|
|
||||||
# org storage locations
|
|
||||||
export LOCAL="/data/data/com.termux/files/home/storage/shared"
|
|
||||||
export NC="nc-personal:"
|
|
||||||
|
|
||||||
# rclone common flags/switches
|
|
||||||
export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable -P --transfers=10"
|
|
||||||
|
|
||||||
# get a wake lock so we dont get background killed
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
|
||||||
|
|
||||||
# sync org data to local device (pull down outstanding changes, if any)
|
|
||||||
echo "syncing devdocs.el data from nextcloud -> local storage"
|
|
||||||
/data/data/com.termux/files/usr/bin/rclone sync \
|
|
||||||
$RC_COMMON \
|
|
||||||
${NC}/devdocs.el/ ${LOCAL}/devdocs.el
|
|
||||||
|
|
||||||
echo "syncing devdocs-browser data from nextcloud -> local storage"
|
|
||||||
/data/data/com.termux/files/usr/bin/rclone sync \
|
|
||||||
$RC_COMMON \
|
|
||||||
${NC}/devdocs-browser/ ${LOCAL}/devdocs-broswer/
|
|
||||||
|
|
||||||
# pause to review rclone output
|
|
||||||
echo "press enter to continue"
|
|
||||||
read junkvar
|
|
||||||
|
|
||||||
# release wake lock
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-unlock
|
|
|
@ -1,33 +0,0 @@
|
||||||
#!/data/data/com.termux/files/usr/bin/sh
|
|
||||||
|
|
||||||
# debugging
|
|
||||||
#echo $1
|
|
||||||
#export RC_DEBUG="-P --dry-run"
|
|
||||||
|
|
||||||
# org storage locations
|
|
||||||
#export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/"
|
|
||||||
export LOCAL_ORG="/data/data/com.termux/files/home/org/"
|
|
||||||
export NC_ORG="nc-personal:/org/"
|
|
||||||
|
|
||||||
# rclone common flags/switches
|
|
||||||
export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable --interactive"
|
|
||||||
|
|
||||||
# get a wake lock so we dont get background killed
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
|
||||||
|
|
||||||
# sync any local changes up to the main server
|
|
||||||
echo "starting rclone from local storage -> nextcloud"
|
|
||||||
/data/data/com.termux/files/usr/bin/rclone sync \
|
|
||||||
$RC_COMMON $RC_DEBUG \
|
|
||||||
--filter "+ /Documents/Resume/**" \
|
|
||||||
--filter "- archivebox" \
|
|
||||||
--filter "- /Attic/" \
|
|
||||||
--filter "- /Documents/" \
|
|
||||||
$LOCAL_ORG $NC_ORG
|
|
||||||
|
|
||||||
# pause to review rclone output
|
|
||||||
echo "press enter to continue"
|
|
||||||
read junkvar
|
|
||||||
|
|
||||||
# release wake lock
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-unlock
|
|
|
@ -1,29 +0,0 @@
|
||||||
#!/data/data/com.termux/files/usr/bin/sh
|
|
||||||
|
|
||||||
# debugging
|
|
||||||
#echo $1
|
|
||||||
#export RC_DEBUG="-P --dry-run"
|
|
||||||
|
|
||||||
# org storage locations
|
|
||||||
export LOCAL_BOOKS="/data/data/com.termux/files/home/storage/shared/Books/"
|
|
||||||
export NC_BOOKS="nc-personal:/Books/"
|
|
||||||
|
|
||||||
# rclone common flags/switches
|
|
||||||
export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable --interactive"
|
|
||||||
export RC_EXCLUDE="--exclude=/Apps/** --exclude=/.MoonReader/** --exclude=/MoonReader/**"
|
|
||||||
|
|
||||||
# get a wake lock so we dont get background killed
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
|
||||||
|
|
||||||
# sync org data to local device (pull down outstanding changes, if any)
|
|
||||||
echo "starting books rclone from nextcloud -> local storage"
|
|
||||||
/data/data/com.termux/files/usr/bin/rclone sync \
|
|
||||||
$RC_COMMON $RC_EXCLUDE $RC_DEBUG \
|
|
||||||
$NC_BOOKS $LOCAL_BOOKS
|
|
||||||
|
|
||||||
# pause to review rclone output
|
|
||||||
echo "press enter to continue"
|
|
||||||
read junkvar
|
|
||||||
|
|
||||||
# release wake lock
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-unlock
|
|
|
@ -1,36 +0,0 @@
|
||||||
#!/data/data/com.termux/files/usr/bin/sh
|
|
||||||
|
|
||||||
# debugging
|
|
||||||
#echo $1
|
|
||||||
#export RC_DEBUG="-P --dry-run"
|
|
||||||
|
|
||||||
# org storage locations
|
|
||||||
#export LOCAL_ORG="/data/data/com.termux/files/home/storage/shared/org/"
|
|
||||||
export LOCAL_ORG="/data/data/com.termux/files/home/org/"
|
|
||||||
export NC_ORG="nc-personal:/org/"
|
|
||||||
|
|
||||||
# rclone common flags/switch
|
|
||||||
export RC_COMMON="--modify-window=1s --delete-after --fast-list --human-readable -P"
|
|
||||||
|
|
||||||
# get a wake lock so we dont get background killed
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-lock
|
|
||||||
|
|
||||||
# sync org data to local device (pull down outstanding changes, if any)
|
|
||||||
echo "starting rclone from nextcloud -> local storage"
|
|
||||||
/data/data/com.termux/files/usr/bin/rclone sync \
|
|
||||||
$RC_COMMON $RC_DEBUG \
|
|
||||||
--filter "+ /Documents/Resume/**" \
|
|
||||||
--filter "- archivebox" \
|
|
||||||
--filter "- /Attic/" \
|
|
||||||
--filter "- /Documents/" \
|
|
||||||
$NC_ORG $LOCAL_ORG
|
|
||||||
|
|
||||||
# pause to review rclone output
|
|
||||||
#echo "press enter to continue"
|
|
||||||
#read junkvar
|
|
||||||
|
|
||||||
# release wake lock
|
|
||||||
/data/data/com.termux/files/usr/bin/termux-wake-unlock
|
|
||||||
|
|
||||||
echo "Press enter to exit"
|
|
||||||
read junkvar
|
|
Loading…
Reference in a new issue