[conflict] Resolve merge conflict

This commit is contained in:
2024-10-31 11:00:10 -04:00
parent 2c92cb5342
commit 66e76c2764
4 changed files with 52 additions and 2 deletions

View File

@ -39,7 +39,7 @@ unfocused_hollow = true
TERM = "xterm-256color" TERM = "xterm-256color"
[font] [font]
size = 10.0 size = 13.0
[font.bold] [font.bold]
family = "Go Mono" family = "Go Mono"

View File

@ -19,3 +19,4 @@ alias chglg="git add ./changelog/ && git commit -m 'Add changelog' && git push"
alias surepayment="portforward 5001" alias surepayment="portforward 5001"
alias sureroc="portforward 5002" alias sureroc="portforward 5002"
alias slip="sli dev changelog" alias slip="sli dev changelog"
alias deploy_v="ssh vrobbler.service \"rm -rf /usr/local/lib/python3.9/site-packages/vrobbler-0.15.4.dist-info/ && pip install git+https://code.unbl.ink/secstate/vrobbler.git@develop && immortalctl restart vrobbler\""

View File

@ -0,0 +1,49 @@
#!/bin/bash
#
# Scans the given directory and all subdirectories for the file
# "metadata.opf". This file is created by Calibre. From this file data will be
# written into the PDFs, which are exactly in the same directory.
#
#
# REQUIREMENTS: calibre by KOVID GOYAL (http://calibre-ebook.com/)
#
shopt -s nullglob
shopt -s nocaseglob
write_metadata() {
find "$1" -depth -type f -name "metadata.opf" | { while read -r metadata_path;
do
echo "metadata found: $metadata_path"
dir_name=$(dirname "$metadata_path")
pdfs=$(find "$dir_name" -maxdepth 1 -type f -name '*.pdf' | wc -l)
echo "pdfs found: $pdfs"
find "$dir_name" -maxdepth 1 -type f -name "*.pdf" | { while read -r pdf_path;
do
ebook-meta --from-opf="$metadata_path" "$pdf_path" 2>/dev/null
done
echo
}
done
}
}
[[ -z "$1" ]] && logError "Please specify a start directory." && exit 1
if [ -f "$1" ]
then
search_path=$(dirname "$1")
else
search_path="$1"
fi
write_metadata "$search_path"
exit 0

View File

@ -7,7 +7,7 @@ export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell" ZSH_THEME="robbyrussell"
plugins=(git z fzf asdf direnv emacs yarn) plugins=(git z fzf asdf direnv yarn)
eval "$(aws configure export-credentials --profile np-farmers --format env)" eval "$(aws configure export-credentials --profile np-farmers --format env)"