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
alias mylocation="curl -s 'http://ip-api.com/json/' | jq ." |
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
clean_branches() { | |
git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d | |
} |
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
# install yt-dlp from https://github.com/yt-dlp/yt-dlp | |
# add the following allias to your preferred shell configuration file | |
alias savemp3="yt-dlp -x --audio-format mp3 --audio-quality 0 --add-metadata --output \"%(uploader)s - %(title)s.%(ext)s\" https://www.youtube.com/watch\?v\=" | |
# savemp3 videid |