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:
// 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) { |
# 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 |
I hereby claim:
To claim this, I am signing this object:
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 |