Posts

post things you think might help others.

i am posting a perl script that creates a feh list for pictures that two directories down. I use this for my manga since I download it and sometimes when i upzip volumes there are individual directories for each chapter. Which can make reading manga tedius if you have to exit feh everytime you want to read a new chapter.
fehlist.pl

3 months later

Here's something that I wrote quite a while ago (2016 lmao). It's called Bandcamp Advanced Downloading And Sorting Script, or BADASS for short. A lot of Bandcamp artists have full tracks available to be listened to on their album purchase pages, and youtube-dl is capable of downloading these. This is a (honestly pretty slapped together) bash script that takes the artist's discography page as an argument and downloads every track and album that it can find, sorting each into its own folder and keeping track order by placing the track number at the beginning of the filename.

badass.sh

It uses magic numbers to work so if Bandcamp ever changes their page formatting, it has to be repaired by hand. There's probably a better way to do this but it has worked since I made it back in 2016 so I haven't had to fix it yet.

Another nicety. This one's just a one-liner, but it's useful. It downloads all of the images for today's date from cutegirls.moe and puts them in ~/Pictures/qts/$date. Stick it on a cron job to run every day at 1400 UTC (cutegirls.moe auto-generates pages every day at 1315 UTC, the buffer is just to be safe) and enjoy filling up your hard drive with automated cute girls

date="$(date +%Y-%-m-%-d)" && mkdir -p ~/Pictures/qts/"$date" && curl http://cutegirls.moe/view/"$date".html |  egrep "png|jpg" | sed 's/.*src="//;s/".*//' | xargs -d '\n' wget -P ~/Pictures/qts/"$date"/
a month later

i got bored and man danbooru ripper and viewer. the viewer requires feh and both require wget. these perl script probably will not work in windows.

ripper:
viewer:

some updates
new
ripper:
viewer: