Skip to content

Instantly share code, notes, and snippets.

@rdinse
Last active September 20, 2017 01:57
Show Gist options
  • Save rdinse/cbd2c4d44d91f21f09bbd35f17d012ed to your computer and use it in GitHub Desktop.
Save rdinse/cbd2c4d44d91f21f09bbd35f17d012ed to your computer and use it in GitHub Desktop.
iOS SpeedUpTV video upload shell script
# 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