move bin to .local/bin

This commit is contained in:
Joel Beckmeyer 2023-09-15 15:46:04 -04:00
parent 8dbe941cb1
commit eac52f77d4
17 changed files with 244 additions and 9 deletions

View File

@ -1,10 +1,18 @@
[".config/kitty/kitty-gruvbox-theme"]
type = "archive"
url = "https://github.com/wdomitrz/kitty-gruvbox-theme/archive/master.tar.gz"
exact = true
stripComponents = 1
refreshPeriod = "168h"
type = "archive"
url = "https://github.com/wdomitrz/kitty-gruvbox-theme/archive/master.tar.gz"
exact = true
stripComponents = 1
refreshPeriod = "168h"
[".config/variety/plugins/verse.py"]
type = "file"
url = "https://raw.githubusercontent.com/Crissium/variety-daily-verse/master/verse.py"
refreshPeriod = "168h"
type = "file"
url = "https://raw.githubusercontent.com/Crissium/variety-daily-verse/master/verse.py"
refreshPeriod = "168h"
[".local/share/xxtools"]
type = "archive"
url = "https://github.com/Piraty/xxtools/archive/master.tar.gz"
exact = true
stripComponents = 1
refreshPeriod = "168h"

View File

@ -1,3 +1,4 @@
#!/bin/sh
# icky, but necessary since this might inject the needed XDG vars
. "$HOME/.config/environment.local" 2>/dev/null
. "$XDG_DATA_HOME/cargo/env" 2>/dev/null
@ -34,6 +35,7 @@ export WINEPREFIX="$XDG_DATA_HOME"/wine
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export XCURSOR_PATH=/usr/share/icons:"$XDG_DATA_HOME"/icons
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
export PATH="$PATH:$HOME/.local/bin:$XDG_DATA_HOME/xxtools"
export PGUSER=postgres
export XBPS_DISTDIR=$HOME/repos/void-packages
export XBPS_DISTDIR="$HOME"/repos/void-packages

View File

@ -0,0 +1,2 @@
#!/bin/sh
adb shell nc -s 127.0.0.1 -p 8872 -L system/bin/tail -f -c +0 data/misc/bluetooth/logs/btsnoop_hci.log

View File

@ -0,0 +1,3 @@
#!/bin/sh
output_file="$(echo "$1" | sed 's,.mp4,.bars.mp4,')"
ffmpeg -i "$1" -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1" -c:a copy "$output_file"

View File

@ -0,0 +1,3 @@
#!/bin/sh
output_file="$(echo "$1" | sed 's,\(.*\)\.\(.*\)$,\1.sermon.\2,')"
ffmpeg -i "$1" -ss "$2" -to "$3" "$output_file"

View File

@ -0,0 +1,14 @@
#!/bin/sh
for i in $(seq 1 60); do
if [ "$(find . -name "$i *" | wc -l)" = 2 ]; then
first_track="$(find . -name "$i *" | head -n1)"
last_track="$(find . -name "$i *" | tail -n1)"
first_acoustid="$(exiftool "$first_track" | rg Acoustid)"
last_acoustid="$(exiftool "$last_track" | rg Acoustid)"
if [ "$first_acoustid" = "$last_acoustid" ]; then
if [ "$first_track" != "$last_track" ]; then
rm "$first_track"
fi
fi
fi
done

View File

@ -0,0 +1,5 @@
#!/bin/sh
#
# I made this script to clean up duplicate messages in the Android SMS/MMS
# database as exported by https://github.com/tmo1/sms-ie (v2.0.0).
jq -c '.__recipient_addresses |= unique_by(.address)' messages.ndjson > messages.uniqued.ndjson

View File

@ -0,0 +1,10 @@
#!/bin/sh
if [ $# -eq 1 ]; then
branch=$1
git fetch upstream master
git checkout upstream/master
git checkout -b "$branch"
else
echo "Please specify new branch."
fi

View File

@ -0,0 +1,67 @@
#!/bin/sh
# always capture the current branch so we can go back to it :)
current_branch="$(git branch --show-current)"
_default() {
if [ -n "$1" ]; then
git checkout -q "$1"
fi
branch_name="$(git branch --show-current)"
update_list=""
for p in $(common/travis/changed_templates.sh 2>&1 >/dev/null); do
if [ -z "$update_list" ]; then
update_list=$("${XBPS_DISTDIR}"/xbps-src update-check "$p" 2>&1)
else
appendee=$("${XBPS_DISTDIR}"/xbps-src update-check "$p")
if [ -n "$appendee" ]; then
# yay explicit newline :(
update_list="${update_list}
${appendee}"
fi
fi
done
if [ -n "$update_list" ]; then
printf "branch: %s\n%s\n\n" "$branch_name" "$update_list"
fi
}
_maint() {
git checkout -q master
for b in $(git branch --list 'maint*'); do
_default "$b"
done
}
_update() {
git checkout -q master
for b in $(git branch --list 'update*'); do
_default "$b"
done
}
_organized() {
git checkout -q master
for b in $(git branch --list '*/*'); do
_default "$b"
done
}
if [ $# = 0 ]; then
_default
else
while test $# != 0
do
case "$1" in
-m|--maint) _maint;;
-u|--update) _update;;
-o|--organized) _organized;;
--) shift; break;;
*) _default;;
esac
shift
done
fi
# return to branch we were on before running script
git checkout "$current_branch" >/dev/null 2>&1

View File

@ -0,0 +1,29 @@
#!/bin/sh
_check() {
for p in $(xbps-query -Rx "$1" | cut -d '>' -f1); do
num_child_deps=$(xbps-query -Rx "$p" | wc -l)
update_check_result=$("${XBPS_DISTDIR}"/xbps-src update-check "$p")
if [ "$num_child_deps" -lt 3 ]; then
if [ -n "$update_check_result" ]; then
printf '%s' "$update_check_result" |
while IFS= read -r line; do
for _i in $(seq "$2"); do
printf ' '
done
printf '%s\n' "$line"
done
else
for _i in $(seq "$2"); do
printf ' '
done
printf '%s (latest version)\n' "$p"
fi
_check "$p" "$(($2+1))"
fi
done
}
_check "$1" 0

View File

@ -0,0 +1,17 @@
#!/bin/sh
branch_name="$(git branch --show-current)"
if [ $# = 0 ]; then
rsync -P -r "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}" daybreak:
rsync -P -r "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}" epoch:
elif [ "$1" = "repo" ]; then
cd "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}"
for p in *.xbps; do
rsync -P $p daybreak:/srv/repo
ssh daybreak "xbps-rindex --add /srv/repo/$p;
xbps-rindex --privkey /srv/repo/private.pem --sign-pkg /srv/repo/*.xbps"
done
else
rsync -P -r "${XBPS_DISTDIR}/hostdir/binpkgs/${branch_name}" "$1":
fi

View File

@ -0,0 +1,15 @@
#!/bin/sh
current_branch="$(git branch --show-current)"
trap back_to_current_branch 1 2 3 6 15
back_to_current_branch() {
git checkout "$current_branch"
exit 1
}
git checkout master
git pull --rebase upstream master
git push -f
git checkout "$current_branch"
git rebase master

View File

@ -0,0 +1,59 @@
#!/bin/sh
# always capture the current branch so we can go back to it :)
current_branch="$(git branch --show-current)"
_default() {
if [ -n "$1" ]; then
git checkout -q "$1"
fi
branch_name="$(git branch --show-current)"
update_list=""
for p in $(common/travis/changed_templates.sh 2>&1 >/dev/null); do
if [ -z "$update_list" ]; then
update_list="$p"
else
appendee="$p"
if [ -n "$appendee" ]; then
# yay explicit newline :(
update_list="${update_list}
${appendee}"
fi
fi
done
if [ -n "$update_list" ]; then
printf "branch: %s\n%s\n\n" "$branch_name" "$update_list"
fi
}
_maint() {
git checkout -q master
for b in $(git branch --list 'maint*'); do
_default "$b"
done
}
_update() {
git checkout -q master
for b in $(git branch --list 'update*'); do
_default "$b"
done
}
if [ $# = 0 ]; then
_default
else
while test $# != 0
do
case "$1" in
-m|--maint) _maint;;
-u|--update) _update;;
--) shift; break;;
*) _default;;
esac
shift
done
fi
# return to branch we were on before running script
git checkout "$current_branch" >/dev/null 2>&1

View File

@ -0,0 +1 @@
ffmpeg.lossy_trim