Last active
June 28, 2018 13:26
-
-
Save LeZuse/a29d3ef451ce8b9a32731cf3c85430db to your computer and use it in GitHub Desktop.
Milujupraci.cz bash helper [CZ]
This file contains hidden or 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
| # Ever feel like nothing works? Put this into your .bash_profile and whenever you feel down run fuck from the bash prompt | |
| function fuck() { | |
| file=`curl milujupraci.cz 2>/dev/null | grep '<source' | grep mp3 | cut -d'"' -f2 | head -n $(( $RANDOM % 30 )) | tail -n1` | |
| curl "milujupraci.cz/$file" 2>/dev/null >/tmp/x.mp3 | |
| afplay /tmp/x.mp3 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment