Last active
September 20, 2017 01:57
-
-
Save rdinse/cbd2c4d44d91f21f09bbd35f17d012ed to your computer and use it in GitHub Desktop.
iOS SpeedUpTV video upload shell script
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
# Usage: speeduptv-upload [video_file] | |
# The device name of the phone can be found via `nslookup IP_OF_YOUR_PHONE`. | |
# SpeedUpTV needs to stay active throughout the upload and sometimes it is | |
# necessary to restart SpeedUpTV after a failed upload. | |
# This function can for example be added to ~/.profile (BASH) or ~/.zprofile (ZSH). | |
speeduptv-upload () { | |
IPHONE_NAME="iPhone-6s" | |
curl -o /dev/null -F "Filename=\"$1\"" -F "Filedata=@\"$1\"\;filename=\"$1\"" -o output http://${IPHONE_NAME}.${$(hostname)#*.}:8080 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment