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

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ log/
*.zwc.old
prezto/
tmux/t-theme/
.directory

View file

@ -1,18 +1,18 @@
Host *
IdentitiesOnly=yes
IdentitiesOnly yes
AddKeysToAgent yes
Host pete
HostName phoward.mooo.com
User stev
IdentityFile ~/.ssh/pete_key
IdentityFile ~/.ssh/pete_key
Host ymca
HostName cymca.mooo.com
User stev
IdentityFile ~/.ssh/ymca_key
IdentityFile ~/.ssh/ymca_key
Host github.com
Hostname github.com
User git
IdentityFile ~/.ssh/github_rsa
Hostname github.com
User git
IdentityFile ~/.ssh/github_rsa
Host router
Hostname 192.168.1.1
User root

View file

@ -10,7 +10,8 @@ set -g @plugin 'jaclu/tmux-menus'
# -- general
set -g xterm-keys on
set -g default-terminal "screen-256color"
# set -g default-terminal "screen-256color"
# provided by tmux-sensible
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
@ -36,8 +37,6 @@ setw -g automatic-rename on
set -g renumber-windows on
set -g set-titles on
set -g display-panes-time 800
set -g display-time 1000
set -g status-interval 10
# set mouse on with prefix m
bind m \
@ -58,8 +57,8 @@ run-shell "$HOME/.tmux/plugins/tmux-power/tmux-power.tmux"
#Pain Control
run-shell "$HOME/.tmux/plugins/tmux-pain-control/pain_control.tmux"
##File for Local Overrides, if needed
if-shell "[ -f ~/.tmux_local.conf ]" 'source ~/.tmux_local.conf'
#init tmux plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
##File for Local Overrides, if needed
if-shell "[ -f ~/.tmux_local.conf ]" 'source ~/.tmux_local.conf'

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