starship config
This commit is contained in:
parent
efe83aea2d
commit
126a813356
4 changed files with 64 additions and 2 deletions
16
scripts/server_bin/dedup_twitter.sh
Executable file
16
scripts/server_bin/dedup_twitter.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
N=6
|
||||
df > ~/before_df.txt
|
||||
cd $HOME/gallery-dl/twitter
|
||||
for i in */; do
|
||||
echo ">> $i"
|
||||
(jdupes -LN $i) &
|
||||
if [[ $(jobs -r -p | wc -l) -ge $N ]]; then
|
||||
wait -n
|
||||
fi
|
||||
done
|
||||
wait
|
||||
echo "======COMPLETE======="
|
||||
echo "Before:"
|
||||
cat ~/before_df.txt
|
||||
df
|
|
@ -5,5 +5,5 @@ sleep 60
|
|||
gallery-dl --sleep 12-16 --abort 2 "mastodon:https://yiff.life/@PupShadowNH@woof.group"
|
||||
echo "wait"
|
||||
sleep 60
|
||||
|
||||
gallery-dl --sleep 12-16 --abort 2 "mastodon:https://yiff.life/@KubiBun@meow.social" ─┘
|
||||
echo "done!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue