Skip to content

Instantly share code, notes, and snippets.

@Rich700000000000
Last active October 28, 2018 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rich700000000000/bbb4e5dfc5092d6491f868ae332f81f2 to your computer and use it in GitHub Desktop.
Save Rich700000000000/bbb4e5dfc5092d6491f868ae332f81f2 to your computer and use it in GitHub Desktop.
Bashes
#Youtube 1 : General
youtube-dl -4 --restrict-filenames --output "[%(uploader)s] %(title)s (%(id)s).%(ext)s"
#Youtube 2 : Music Videos
youtube-dl -4 -f bestvideo+bestaudio --restrict-filenames --add-metadata --output "%(title)s [%(uploader)s][%(upload_date)s][%(duration)s][%(id)s].%(ext)s"
#Programming 1 : Last file by extention
ls -t *py | head -1 | tr -d '\n' | xsel -ib
#Programming 2 : Last file by name
find -name "*06-27*" -printf "%f\n" | tr -d '\n' | xsel -ib
#Programming 3 : Las file by time
fc -ln -1 | xargs | tr -d '\n' | xsel -ib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment