If you download files with cURL or some other way and end up with a directory full of files that have query parameters in the file names, this script will strip them from the filenames for you.

https://gist.github.com/ryanburnette/39f689dc5d70e7757e0e