Compare commits
No commits in common. "25c484c88dce79ac59ce9628f24538c3eecaa619" and "3797934ef569437ca8867b01602b1e08c7b2f9d2" have entirely different histories.
25c484c88d
...
3797934ef5
|
@ -71,7 +71,7 @@ if grep -q "Android" <<< `uname -a`; then
|
|||
echo "use chsh from termux-tools to change default shell to zsh"
|
||||
fi
|
||||
|
||||
echo "eza fd bat tmux htop nano most ripgrep zsh lf restic rclone glow progress s-tui killport micro btop bmon"
|
||||
echo "eza fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone glow progress s-tui killport micro btop bmon"
|
||||
echo "lazydocker for docker systems"
|
||||
echo "nvtop for gpu systems"
|
||||
echo "termux-api for termux systems"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
sudo /usr/local/bin/restic self-update
|
||||
sudo setcap cap_dac_read_search=+ep /usr/local/bin/restic
|
||||
|
||||
MACHINE=
|
||||
MACHINE=bubonic
|
||||
ZONE=root
|
||||
|
||||
export RESTIC_REPOSITORY=
|
||||
|
|
2
shortcuts/code.sh
Executable file
2
shortcuts/code.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
/data/data/com.termux/files/home/.shortcuts/emacs code
|
30
shortcuts/emacs
Executable file
30
shortcuts/emacs
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/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
|
2
shortcuts/org-mode.sh
Executable file
2
shortcuts/org-mode.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
/data/data/com.termux/files/home/.shortcuts/emacs org
|
29
shortcuts/rclone-devdocs
Executable file
29
shortcuts/rclone-devdocs
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/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
|
33
shortcuts/rclone-local-nc
Executable file
33
shortcuts/rclone-local-nc
Executable file
|
@ -0,0 +1,33 @@
|
|||
#!/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
|
29
shortcuts/rclone-nc-books
Executable file
29
shortcuts/rclone-nc-books
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/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
|
36
shortcuts/rclone-nc-local
Executable file
36
shortcuts/rclone-nc-local
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/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