diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-01-08 20:11:42 -0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-01-08 20:11:42 -0800 |
commit | 80d5c54225e115ec0f260c253f14db25fbc7d117 (patch) | |
tree | 0e73d056351bd73cb657431a8309b9a78d0062b8 /sh | |
parent | f6f73d541c9581a67ae156040cee4f6abd67610b (diff) |
fix typos with `typos`
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/alarm | 2 | ||||
-rwxr-xr-x | sh/ccp | 2 | ||||
-rwxr-xr-x | sh/curlqb | 2 | ||||
-rwxr-xr-x | sh/mpvy | 2 | ||||
-rwxr-xr-x | sh/u | 2 | ||||
-rwxr-xr-x | sh/upd | 2 | ||||
-rwxr-xr-x | sh/vpn | 4 |
7 files changed, 8 insertions, 8 deletions
@@ -4,7 +4,7 @@ min="$1" [ "$1" ] && shift printf "notify-send -u critical %s; bell" "$(/usr/bin/printf '%q ' "${@:-alarm}")" | at now + "${min:-0}" minutes && [ "$min" ] && [ "$min" -ne 0 ] && notify-send "Successfully Scheduled" -# at used to not like string like 'Boiling Water!', don't know why now it works, if see similar issue, use folllowing codes +# at used to not like string like 'Boiling Water!', don't know why now it works, if see similar issue, use following codes #at now + "$1" minutes << EOF && notify-send 'Successfully Scheduled' #notify-send -u critical "${2:-alarm}" #bell @@ -26,7 +26,7 @@ git checkout master for commit in $(git rev-list --reverse "$picked..HEAD"); do git show "$commit" printf 'Enter branch names to cherry pick this commit: -(a for all, space to seperate multiple branches, enter to skip)\n' +(a for all, space to separate multiple branches, enter to skip)\n' read -r branch_pick if [ "$branch_pick" = a ]; then branch_pick="$all_branch_no_master" @@ -3,7 +3,7 @@ # need --no-clobber if don't want overwrite when same name # if do this also need change .py.1 to .py else qbt will not accept # also if a.py and a_1.py, qbt will not accept the latter, maybe need to change some .py codes inside -# now, I choose to let three files to be overwrited, those are "with categories" .py files that overwrite without categories .py files, which is what I want so I don't use --no-clobber +# now, I choose to let three files to be overwritten, those are "with categories" .py files that overwrite without categories .py files, which is what I want so I don't use --no-clobber # yggtracker.py requires yggdrasil which I don't want to install curl -sS 'https://github.com/qbittorrent/search-plugins/wiki/Unofficial-search-plugins' | awk -F'"' ' /user-content-plugins-for-private-sites/ {exit} @@ -14,7 +14,7 @@ url= cookie_ytdl= cookie_mpv= -# option f and h may do nothing if redownload? since same filename exist. yt-dlp won't download same file even without --auto-file-renameing=false. how improve? pass argument to aria2c? +# option f and h may do nothing if redownload? since same filename exist. yt-dlp won't download same file even without --auto-file-renaming=false. how improve? pass argument to aria2c? while getopts Aabcd:f:h:su: opt; do case $opt in # s: streaming, a: aria2c then mpv, A: aria2c @@ -1,5 +1,5 @@ #!/bin/sh -# temporary solution before rewriting upd anc cfg to be better and more automated +# temporary solution before rewriting upd and cfg to be better and more automated ssh-add -l || ssh-add @@ -34,7 +34,7 @@ backup () { if [ "$hostname" = xyzinsp ]; then # Pull repos and branches from studio, so one more backup on insp or duplicity will backup to ia,for one more backup for 321 backup rule # cfgl master and pp branches already satisfy 321 rule. Here are three copies: 1. master/pp, 2. studio, 3. gitlab or alternative - # But I still copy those on insp because one more copy will not hurt. And all my other data stil satisfy 3 copies without backup to gitlab, so why left out cfgl? Also it may be nice if I what to use that local dir for searching things. + # But I still copy those on insp because one more copy will not hurt. And all my other data still satisfy 3 copies without backup to gitlab, so why left out cfgl? Also it may be nice if I what to use that local dir for searching things. cd "$HOME/programs/config_local_arch" || exit git branch | awk '{print ($1=="*")?$2:$1}' | while read -r branch; do git checkout "$branch" @@ -13,7 +13,7 @@ wg_aa_restore_default () { case "$(nmcli -t --fields device,state device)" in # stop aa wireguard+swgp server that listen from insp wiregurad+swgp client, start aa wg+swgp connect to ca # use /usr/bin/alacritty instead of /home/xyz/.local/bin/alacritty so script can wait until alacritty exit to run other codes following - *wg_aa:connected*) /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manully close this window:"; ssh -t aawg "sudo systemctl stop wg-quick@wg0 && sudo systemctl start wg-quick@wg_ca"';; + *wg_aa:connected*) /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manually close this window:"; ssh -t aawg "sudo systemctl stop wg-quick@wg0 && sudo systemctl start wg-quick@wg_ca"';; esac } @@ -33,7 +33,7 @@ if nmcli -t --fields device,state device | grep -q "^wg_$1:connected$"; then notify-send -u critical "$1 VPN disabled" else if [ "$1" = aa ]; then - /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manully close this window"; ssh -t aawg "sudo systemctl stop wg-quick@wg_ca && sudo systemctl start wg-quick@wg0"' + /usr/bin/alacritty -T aa --hold -e sh -c 'echo "Wait for aa sudo prompt and enter password, then manually close this window"; ssh -t aawg "sudo systemctl stop wg-quick@wg_ca && sudo systemctl start wg-quick@wg0"' fi down_not_mydefault nmcli connection down wg_mydefault |