This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for use on https://bandcamp.com/download pages. | |
// once all the download links on the page are loaded, | |
// open the javascript console, paste the following code in, and hit enter. | |
// leave the page open until the downloads stop, | |
// it'll pause for 30 seconds after every click to ensure the last download has started already. | |
var secs = 30; // adjust as needed for slower connections. | |
var intervalTime = secs * 1000 | |
var toDownload = [].slice.call(document.querySelectorAll('.downloads a.item-button')); | |
var interval; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o errexit | |
# BE VERY CAREFUL USING THIS SCRIPT. MAKE A BACKUP (OR TWO) FIRST WITH: | |
# git clone --mirror ... | |
# Install by putting this file in e.g. /usr/local/bin/git-nuke | |
# chmod +x /usr/local/bin/git-nuke | |
if [ $# -eq 0 ]; then |