Last active
November 6, 2015 10:03
-
-
Save mapio/af7e3d13a3503185fa44 to your computer and use it in GitHub Desktop.
This file contains 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 | |
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