Skip to content

Instantly share code, notes, and snippets.

@mapio
Last active November 6, 2015 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mapio/af7e3d13a3503185fa44 to your computer and use it in GitHub Desktop.
Save mapio/af7e3d13a3503185fa44 to your computer and use it in GitHub Desktop.
#!/bin/bash
export LANG=en_EN.UTF-8
UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
find . -name \*.java -print0 | tar -T- --null -cf /tmp/${UUID}.tar >/dev/null 2>&1
curl \
--form sessione=1144 \
--form fileToUpload=@/tmp/${UUID}.tar \
https://upload.di.unimi.it/doajaxfileupload.php >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment