Skip to content

Instantly share code, notes, and snippets.

Last active Apr 10, 2021
What would you like to do?
Random MOD player
#!/usr/bin/env bash
# Plays a random MOD file from
# Depends on XMP (
rand=$(shuf -i 1-189573 -n 1)
tmp=$(mktemp /tmp/${rand}.XXXXXXXX.mod)
curl${rand} > ${tmp}
xmp ${tmp}
rm ${tmp}
Copy link

ptanmay143 commented Jul 7, 2020

I saw your post on Reddit. You might want to hide the curl download progress bar. Here's a link that'll probably help. (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment