Skip to content

Instantly share code, notes, and snippets.

@coleww
coleww / downloadAll.js
Last active May 16, 2022 23:33
bandcamp download all purchases
// 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;
@stefansundin
stefansundin / git-nuke
Created August 13, 2015 00:17
Git nuke script to remove specified files from all branches and tags.
#!/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