summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ar/.config/zsh/keymaps.zsh4
-rwxr-xr-xar/.local/bin/hugow33
-rwxr-xr-xar/.local/bin/rbackup4
-rw-r--r--global/Music/.music.txt2
4 files changed, 10 insertions, 33 deletions
diff --git a/ar/.config/zsh/keymaps.zsh b/ar/.config/zsh/keymaps.zsh
index 81b3027..038e20d 100644
--- a/ar/.config/zsh/keymaps.zsh
+++ b/ar/.config/zsh/keymaps.zsh
@@ -327,12 +327,12 @@ else
bindkey -s '^X^G' '^urgafiles '
bindkey -s '^X^L' '^ugloac\n'
bindkey -s '^X^N' '^ulastfiles -l\n'
- # bindkey -s '^X^O' '^u\n'
+ bindkey -s '^X^O' '^uylogy\n'
bindkey -s '^X^Q' '^ufpkill\n'
bindkey -s '^X^R' '^ufgst\n'
bindkey -s '^X^T' '^ugitstagedfiles\n'
bindkey -s '^X^U' '^ugitupdate\n'
- # bindkey -s '^X^]' '^u\n'
+ bindkey -s '^X^]' '^uylogt\n'
bindkey -s '^X^_' '^ufzffns\n'
bindkey -s '^X^X^B' '^urbackup\n'
bindkey -s '^X^X^P' '^upcyr\n'
diff --git a/ar/.local/bin/hugow b/ar/.local/bin/hugow
index 13cdf51..a715606 100755
--- a/ar/.local/bin/hugow
+++ b/ar/.local/bin/hugow
@@ -7,6 +7,8 @@ server="${THESIAH_SERVER:-root@thesiah.xyz}"
dest="/var/www/thesiah/diary/"
defaults="sy after foramonth"
src="$repodir/public/diary/"
+bgm="$repodir/static/bgm/"
+bgmd="/var/www/thesiah/bgm/"
cd "$repodir"
hugo --cleanDestinationDir
@@ -16,37 +18,10 @@ if [ ! -f "$out" ]; then
exit 1
fi
-# tmp="$(mktemp "$out.XXXXXXXX.tmp")"
-
-# awk -v defaults="$defaults" '
-# BEGIN {
-# n = split(defaults, a, /[[:space:]]+/)
-# insert = ""
-# for (i = 1; i <= n; i++) {
-# if (a[i] == "") continue
-# name = a[i] ".mp4"
-# insert = insert \
-# " <li>\n" \
-# " <a href=\"/diary/" name "\" data-name=\"" name "\" class=\"vid\">" name "</a>\n" \
-# " </li>\n"
-# }
-# injected = 0
-# }
-# {
-# print
-# if (!injected && $0 ~ /<ul[^>]*id=["'\''"]list["'\''"][^>]*>/) {
-# printf("%s", insert)
-# injected = 1
-# }
-# }
-# END { if (!injected) exit 2 }
-# ' "$out" >"$tmp"
-#
-# mv "$tmp" "$out"
-# echo "Injected defaults into: $out"
-#
ssh "$server" "mkdir -p '$dest'"
+rsync -azv --update --itemize-changes --stats "$bgm" "$server:$bgmd"
+
if [ -n "${THESIAH_SSH_OPTS:-}" ]; then
rsync -azv --update --itemize-changes --stats \
-e "ssh $THESIAH_SSH_OPTS" \
diff --git a/ar/.local/bin/rbackup b/ar/.local/bin/rbackup
index d2dc610..70c15d9 100755
--- a/ar/.local/bin/rbackup
+++ b/ar/.local/bin/rbackup
@@ -178,10 +178,10 @@ echo "Backup starts to $backup_path..."
process_options "$@"
# Main script logic
-mount_luks && echo "Mount backup drive... " && echo "Success to mount luks drive!" || error "Failed to mount $backup_path"
+#mount_luks && echo "Mount backup drive... " && echo "Success to mount luks drive!" || error "Failed to mount $backup_path"
[ -d "$backup_path" ] || sudo mkdir -p "$backup_path"
echo "Sync home files..." && sync_files && echo "Success to sync files!" || error "Failed back up files"
echo "Sync root files..." && sync_root && echo "Success to sync root!" || error "Failed back up root"
echo "Sync server files..." && sync_server && echo "Success to sync server!" || error "Failed back up server"
-echo "Sync files to nextcloud..." && sync_nextcloud && echo "Success to sync nextcloud!" || error "Failed back up nextcloud"
+#echo "Sync files to nextcloud..." && sync_nextcloud && echo "Success to sync nextcloud!" || error "Failed back up nextcloud"
echo "Done!"
diff --git a/global/Music/.music.txt b/global/Music/.music.txt
index 9fee09d..b6df307 100644
--- a/global/Music/.music.txt
+++ b/global/Music/.music.txt
@@ -1020,3 +1020,5 @@ youtube b-F9VTOEQFI
youtube W9_mqi8w3I0
youtube FWQCr3F37-k
youtube nnZ_rfE0_aQ
+youtube QJL_C3U9LVA
+youtube f2Pee5hnO-E