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
#make room : | |
# 4GBs 99 songs as of 20230916 | |
# 3GBs 66 songs as of 20210529 | |
#install latest youtube-dl (superseded by yt-dlp) | |
cd && git clone https://github.com/yt-dlp/yt-dlp | |
#install jq the json parser | |
sudo apt install jq | |
#create the music directory | |
cd ~ && mkdir juliaplaysgroove_flac && cd "$_" | |
#download the metadata (50 video ids per json page) from youtube data api v3, then parse json with jq and proceed to download the audio files |
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
echo "Removing containers :" && if [ -n "$(docker container ls -aq)" ]; then docker container stop $(docker container ls -aq); docker container rm $(docker container ls -aq); fi; echo "Removing images :" && if [ -n "$(docker images -aq)" ]; then docker rmi -f $(docker images -aq); fi; echo "Removing volumes :" && if [ -n "$(docker volume ls -q)" ]; then docker volume rm $(docker volume ls -q); fi; echo "Removing networks :" && if [ -n "$(docker network ls | awk '{print $1" "$2}' | grep -v 'ID\|bridge\|host\|none' | awk '{print $1}')" ]; then docker network rm $(docker network ls | awk '{print $1" "$2}' | grep -v 'ID\|bridge\|host\|none' | awk '{print $1}'); fi; | |