Skip to content

Instantly share code, notes, and snippets.

@theraccoonbear
Created December 12, 2020 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theraccoonbear/38154f36057d33ad78eaa45198bc266f to your computer and use it in GitHub Desktop.
Save theraccoonbear/38154f36057d33ad78eaa45198bc266f to your computer and use it in GitHub Desktop.
(() => {
const DLs = [];
$('a[href*="download/"]').each((i, a) => {
const $a = $(a);
DLs.push('bcdl \'' + $a.attr('href') + '\'');
});
console.log(DLs.join("\n"));
})();
@theraccoonbear
Copy link
Author

bcdl is just curl -J -O "$1"

@theraccoonbear
Copy link
Author

bcunzip is:

for filename in *.zip; do
	basefile="${filename%.*}"
	unzip -d "$basefile" "$filename"
	rm "$filename"
done

chmod -R 775 *
sudo chown -R don:mediausers *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment