Merge branch 'master' of github.com:steveokard/stevset

This commit is contained in:
Stefen Auris 2022-12-14 05:04:57 -05:00
commit f76e5e0d82
14 changed files with 91 additions and 12 deletions

6
scripts/server_bin/db_maint.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
#vaccum the database
echo "--- DATABASE MAINTENANCE ---"
cd $HOME/gallery-dl
sqlite3 archive.sqlite3 'VACUUM;'
echo "--- MAINTENANCE COMPLETE ---"

4
scripts/server_bin/dedup.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
duf >! ~/fs.txt
jdupes -rB ~/gallery-dl/twitter
cat ~/fs.txt && duf

View file

@ -0,0 +1,6 @@
#!/bin/bash
#systematically rescans all scsi hosts for change in drives
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
for i in /sys/class/scsi_host/*; do
echo "- - -" | sudo tee > $i/scan
done

View file

@ -0,0 +1,3 @@
#!/bin/bash
cd /home/stev/Videos/Twitch/Kodykins
yt-dlp -f 720p60 https://www.twitch.tv/curlykody/videos

View file

@ -0,0 +1,3 @@
#!/bin/bash
cd /home/stev/Videos/Twitch/spaceyeen
yt-dlp -f 720p60 https://www.twitch.tv/spaceyeen/videos

11
scripts/server_bin/update_fa.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
N=2
cd $HOME/gallery-dl/furaffinity
for i in */; do
echo ">> $i"
(gallery-dl --abort 3 --sleep 0-1 https://www.furaffinity.net/user/$i) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n
fi
done
wait

View file

@ -0,0 +1,8 @@
#!/bin/bash
cd $HOME/gallery-dl/instagram
for i in */; do
echo ">> $i"
gallery-dl --sleep 3-4 --abort 3 https://www.instagram.com/$i
sleep 15
done

View file

@ -0,0 +1,11 @@
#!/bin/bash
N=2
cd $HOME/gallery-dl/itaku
for i in *; do
echo ">> $i"
(gallery-dl --abort 3 --sleep 2 https://itaku.ee/profile/$i/gallery) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n
fi
done

View file

@ -0,0 +1,9 @@
#!/bin/bash
gallery-dl --sleep 8-16 --abort 2 "mastodon:https://yiff.life/@kokirimuscle@mastodon.lol"
echo "wait"
sleep 60
gallery-dl --sleep 8-16 --abort 2 "mastodon:https://yiff.life/@PupShadowNH@woof.group"
echo "wait"
sleep 60
echo "done!"

View file

@ -0,0 +1,15 @@
#!/bin/bash
N=3
rm ~/twit_error.txt
cd $HOME/gallery-dl/twitter
for i in */; do
echo ">> $i"
(gallery-dl --sleep 0-1 --abort 3 "https://twitter.com/$i" || echo "Problem with gallery at https://twitter.com/$i" >> ~/twit_error.txt) &
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
wait -n
fi
done
echo ">>> Updating Retweets"
gallery-dl --abort 3 --sleep 0-1 -o retweets=true "https://twitter.com/stefenauris"
gallery-dl --abort 3 --sleep 0-1 -o retweets=true "https://twitter.com/DaybreakHero"
wait

3
scripts/server_bin/yc_bak.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
# pull backup from remote server
rsync -hav --progress --delete --compress yc:/home/stev/backup /home/stev/storage/yc-backup