Skip to content

Instantly share code, notes, and snippets.

@whimsyniche
Created May 20, 2019 06:46
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 whimsyniche/b897cd64dc06ea38f58289401a0e3f02 to your computer and use it in GitHub Desktop.
Save whimsyniche/b897cd64dc06ea38f58289401a0e3f02 to your computer and use it in GitHub Desktop.
CLI commands - Advanced macOS Tricks and Utilities Using Terminal! from YouTube Snazzy Labs
credits & twitter: Quinn Nelson @SnazzyQ
youtube video: https://www.youtube.com/watch?v=Ym2pxzWpTNw
pastebin: https://pastebin.com/jV9XzPrs
**PRELIMINARY**
// Install Xcode Tools: xcode-select —install
// Install Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
**CASK**
//Install Cask brew install cask
List apps: brew search --casks
Search apps: brew search (discord)
Install: brew cask install (discord)
Update: brew cask upgrade
Help: brew cask help
**HTOP**
//Install htop: brew install htop
Run: sudo htop
**SPEEDTEST**
//Install Speedtest brew install speedtest-cli
Run: speedtest-cli
**YOUTUBE-DL**
//Install youtube-dl: brew install youtube-dl
//Install ffmpeg: brew install youtube-dl ffmpeg
Download highest-res vid: youtube-dl -f bestvideo+bestaudio ‘link’
Help: youtube-dl --help
**IMAGEMAGICK**
//Install ImageMagick: brew install imagemagick
Add border (sample): convert testing.png -border 1x1 -bordercolor black result.png
Resize (sample): convert testing.png -resize 1920 (or x1080) example.png
Add effect (sample): convert testing.png -charcoal 2 example.png
Change multiple (sample): for file in *.png; do convert $file -resize 1920 small-$file; done
Help: convert help
@scottperezfox
Copy link

Thank you for posting this! The other most helpful shortcut for youtube-dl I would say is to view all the formats available and download by number. Here's how that works.

to view all options

youtube-dl -F link

then, when you identify the version you want by number (NN)

youtube-dl -f -NN link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment