Skip to content

Instantly share code, notes, and snippets.

View ethiapath's full-sized avatar
🎧
Listening

Elyza Chlorotica ethiapath

🎧
Listening
View GitHub Profile
@ethiapath
ethiapath / multi-album-bandcamp-download.js
Last active December 17, 2021 00:18
Download multiple bandcamp albums on a timer (automation)
// Good for downloading discographies
// Bandcamp rate limits you if you download too many albums too quickly.
// This spaces out the downloads so you don't have to click on every single link!
(function nextDownload (n) {
const links = Array.from(document.getElementsByClassName('download-title')).map(e => e.firstElementChild)
console.log(links[n]);
links[n].click()
console.log( n++ );
// Downloads next album after 60 seconds.
if (n <= links.length) setTimeout( nextDownload, 60000, n ); // Redo if n <= num albums
bool isLowercase(char input) {
return input >= 'a' && input <= 'z';
}
bool isUppercase(char input) {
return input >= 'A' && input <= 'Z';
}
char toLowercase(char input) {
@ethiapath
ethiapath / log.sh
Last active January 16, 2020 21:27
Creates a text file with today's date and appends a new line with the current time.
# open the daily log
# add this function to your .bashrc(linux) or .bash_profile(macos)
# create a folder wherever you want your log path to be.
o() {
LOGPATH='~/LOG'
FILEPATHE=$LOGPATH/$(date +"%Y_%m_%d-%b_%a").md
touch $FILEPATH
echo >> $FILEPATH
HEADER="## $(date +"%I:%M %p") -"
echo $HEADER >> $FILEPATH

Keybase proof

I hereby claim:

  • I am ethiapath on github.
  • I am ethiapath (https://keybase.io/ethiapath) on keybase.
  • I have a public key ASBlyR0Y1NuPRtLmEbgW2slSPWTsUI7225d2DF-uzppklgo

To claim this, I am signing this object:

@ethiapath
ethiapath / setup.sh
Created February 10, 2019 10:43
creates an alias for dotfile config command
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc