Skip to content

Instantly share code, notes, and snippets.

@JonasGroeger
Created January 22, 2021 16:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonasGroeger/9ea1eacb03ad81472ca02285cb603ea7 to your computer and use it in GitHub Desktop.
Save JonasGroeger/9ea1eacb03ad81472ca02285cb603ea7 to your computer and use it in GitHub Desktop.
Upload to VLC on mobile
# iOS: https://apps.apple.com/de/app/vlc-for-mobile/id650377962
# Usage
# 1. Put into Scope (.bashrc or equivalent)
# 2. Enable "Sharing via WiFi" in VLC
# 3. $ upload2vlc 192.168.178.84 test.mp3
upload2vlc() {
local UPLOAD_HOST="$1"
local UPLOAD_FILE="$2"
curl --silent --output /dev/null --show-error -F files=@"$UPLOAD_FILE" "$UPLOAD_HOST/upload.json"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment