From 95d34ab0bc5122a9b1a0d60308f327e575b3c518 Mon Sep 17 00:00:00 2001 From: sc-idevops Date: Tue, 20 Aug 2024 00:07:13 -0400 Subject: [PATCH] script updates --- scripts/server_bin/bsky_likes.sh | 2 +- scripts/server_bin/rencode.sh | 2 ++ scripts/server_bin/twitt_follow.sh | 7 ++++--- scripts/server_bin/update_fa.sh | 3 +++ scripts/server_bin/update_onlyfans.sh | 2 +- udeps.sh | 7 ++++--- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/scripts/server_bin/bsky_likes.sh b/scripts/server_bin/bsky_likes.sh index 8627d1e..916052a 100755 --- a/scripts/server_bin/bsky_likes.sh +++ b/scripts/server_bin/bsky_likes.sh @@ -1,2 +1,2 @@ #!/bin/bash -gallery-dl -u stefenauris.com --abort 3 --sleep 1-2 -o include=all -o reposts=true -o archive=~/gallery-dl/bluesky/stefenauris.com/likes.sqlite3 -o blacklist= -d ~/gallery-dl/bluesky/stefenauris.com/ "https://bsky.app/profile/stefenauris.com" +gallery-dl -u stefenauris.com --abort 6 --sleep 1-2 -o include=all -o reposts=true -o archive=~/gallery-dl/bluesky/stefenauris.com/likes.sqlite3 -o blacklist= -d ~/gallery-dl/bluesky/stefenauris.com/ "https://bsky.app/profile/stefenauris.com" diff --git a/scripts/server_bin/rencode.sh b/scripts/server_bin/rencode.sh index 4e42828..08d46c6 100755 --- a/scripts/server_bin/rencode.sh +++ b/scripts/server_bin/rencode.sh @@ -2,4 +2,6 @@ for i in `fdfind video.mp4`; do snap run ffmpeg -hide_banner -hwaccel cuda -hwaccel_output_format cuda -i "$i" -c:a copy -c:v h264_nvenc "${i}_shrink.mp4" + rm --verbose "$i" + mv --verbose "${i}_shrink.mp4" "$i" done diff --git a/scripts/server_bin/twitt_follow.sh b/scripts/server_bin/twitt_follow.sh index 5df4120..96a5897 100755 --- a/scripts/server_bin/twitt_follow.sh +++ b/scripts/server_bin/twitt_follow.sh @@ -1,10 +1,11 @@ #!/bin/bash target=/home/stev/Pictures/gallery-dl/twitter/follow.txt #edit follows file in place -#sed -n -i '/^@/p' $target -#sed -ie 's/^.//' $target +sed -n -i '/^@/p' $target +sed -ie 's/^.//' $target #loop through the list and download for i in `cat $target`; do - gallery-dl --sleep 4 --abort 3 "$i" +# gallery-dl --sleep 4 --abort 3 "https://x.com/$i" + echo $i done diff --git a/scripts/server_bin/update_fa.sh b/scripts/server_bin/update_fa.sh index 54a1506..a47002b 100755 --- a/scripts/server_bin/update_fa.sh +++ b/scripts/server_bin/update_fa.sh @@ -3,6 +3,9 @@ N=2 trash ~/fa_error.log cd $HOME/gallery-dl/furaffinity gallery-dl --abort 3 --sleep 0-1 "https://www.furaffinity.net/favorites/stevo/" +gallery-dl --abort 3 --sleep 0-1 "https://www.furaffinity.net/favorites/yrrufaton07/" +gallery-dl --abort 3 --sleep 0-1 "https://www.furaffinity.net/favorites/arandomguyontheinternet/" + for i in */; do echo ">> $i" (gallery-dl --abort 3 --sleep 0-1 https://www.furaffinity.net/user/$i || echo "$i" >> ~/fa_error.log) & diff --git a/scripts/server_bin/update_onlyfans.sh b/scripts/server_bin/update_onlyfans.sh index 0202140..e788dde 100755 --- a/scripts/server_bin/update_onlyfans.sh +++ b/scripts/server_bin/update_onlyfans.sh @@ -1,5 +1,5 @@ #!/bin/bash # docker pull ghcr.io/datawhores/of-scraper:latest docker run -it --rm --name=ofscraper -u 1000:1000 -v /home/stev/.config/ofscraper:/home/ofscraper/.config/ -v /home/stev/gallery-dl/onlyfans:/home/ofscraper/data \ - ghcr.io/datawhores/of-scraper:3.11 \ + ghcr.io/datawhores/of-scraper:3.11.2 \ ofscraper --output normal --action download --sort subscribed --post timeline,profile,messages,purchased -ts --username ALL diff --git a/udeps.sh b/udeps.sh index 894e9a8..25e19b0 100755 --- a/udeps.sh +++ b/udeps.sh @@ -37,7 +37,8 @@ sudo apt-get -my install \ libfuse2 \ make \ neovim \ - shellcheck + shellcheck \ + lua5.2 read -n1 -p $'Does this system need a ssh server?\n' REPLY if [[ $REPLY == [Yy] ]]; then @@ -58,8 +59,8 @@ if [[ $release == jammy || $release == noble ]]; then fi #This section installs software outside apt -dpkg_url https://github.com/dandavison/delta/releases/download/0.17.0/git-delta_0.17.0_amd64.deb +dpkg_url https://github.com/dandavison/delta/releases/download/0.18.0/git-delta_0.18.0_amd64.deb dpkg_url https://github.com/bootandy/dust/releases/download/v1.0.0/du-dust_1.0.0-1_amd64.deb dpkg_url https://github.com/charmbracelet/glow/releases/download/v1.5.1/glow_1.5.1_amd64.deb -dpkg_url https://github.com/ClementTsang/bottom/releases/download/0.9.6/bottom_0.9.6_amd64.deb +dpkg_url https://github.com/ClementTsang/bottom/releases/download/0.10.2/bottom_0.10.2-1_amd64.deb