Skip to content

Instantly share code, notes, and snippets.

@rdinse
Last active September 20, 2017 01:57
Show Gist options
  • Select an option

  • Save rdinse/cbd2c4d44d91f21f09bbd35f17d012ed to your computer and use it in GitHub Desktop.

Select an option

Save rdinse/cbd2c4d44d91f21f09bbd35f17d012ed to your computer and use it in GitHub Desktop.

Revisions

  1. rdinse revised this gist Sep 20, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion speeduptv_upload.sh
    Original file line number Diff line number Diff line change
    @@ -6,5 +6,5 @@

    speeduptv-upload () {
    IPHONE_NAME="iPhone-6s"
    curl -F "Filename=\"$1\"" -F "Filedata=@\"$1\"\;filename=\"$1\"" -o output http://${IPHONE_NAME}.${$(hostname)#*.}:8080
    curl -o /dev/null -F "Filename=\"$1\"" -F "Filedata=@\"$1\"\;filename=\"$1\"" -o output http://${IPHONE_NAME}.${$(hostname)#*.}:8080
    }
  2. rdinse revised this gist Sep 19, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion speeduptv_upload.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    # Usage: iphone-upload [video_file]
    # 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"
  3. rdinse revised this gist Sep 19, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion speeduptv_upload.sh
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    # SpeedUpTV needs to stay active throughout the upload and sometimes it is
    # necessary to restart SpeedUpTV after a failed upload.

    iphone-upload () {
    speeduptv-upload () {
    IPHONE_NAME="iPhone-6s"
    curl -F "Filename=\"$1\"" -F "Filedata=@\"$1\"\;filename=\"$1\"" -o output http://${IPHONE_NAME}.${$(hostname)#*.}:8080
    }
  4. rdinse created this gist Sep 19, 2017.
    9 changes: 9 additions & 0 deletions speeduptv_upload.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # Usage: iphone-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.

    iphone-upload () {
    IPHONE_NAME="iPhone-6s"
    curl -F "Filename=\"$1\"" -F "Filedata=@\"$1\"\;filename=\"$1\"" -o output http://${IPHONE_NAME}.${$(hostname)#*.}:8080
    }