Skip to content

Instantly share code, notes, and snippets.

@Sinequanonh
Created October 12, 2020 10:31
Show Gist options
  • Save Sinequanonh/9088ed8831240025b4ca3127342d09d3 to your computer and use it in GitHub Desktop.
Save Sinequanonh/9088ed8831240025b4ca3127342d09d3 to your computer and use it in GitHub Desktop.
ytdl.sh
# You should install youtube-dl locally and on the remote server
# To use: ./ytdl [video URL]
uuid="$(uuidgen).mp4";
ssh USER@IP_ADDRESS "
youtube-dl $1 --output $uuid
exit;
";
scp USER@IP_ADDRESS:/PATH/TO/FILE/$uuid /Users/PATH/TO/DESTINATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment