-
-
Save slmingol/12c3c0ee1d03927cffcb95fa3daa6abf to your computer and use it in GitHub Desktop.
Random MOD player
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
| #!/bin/bash | |
| # Plays a random MOD file from https://modarchive.org | |
| # Depends on XMP (http://xmp.sourceforge.net/) | |
| rand=$(shuf -i 1-189573 -n 1) | |
| tmp=$(mktemp /tmp/${rand}.XXXXXXXX.mod) | |
| curl https://modarchive.org/jsplayer.php?moduleid=${rand} > ${tmp} | |
| xmp ${tmp} | |
| rm ${tmp} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment