Skip to content

Instantly share code, notes, and snippets.

@andresaquino
Last active November 26, 2018 17:34
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 andresaquino/7dfc197368d512c866e29c96848cd187 to your computer and use it in GitHub Desktop.
Save andresaquino/7dfc197368d512c866e29c96848cd187 to your computer and use it in GitHub Desktop.
My shell favourite commands
#!/usr/bin/env bash
# $> brew info mpgtx
# mpgtx: stable 1.3.1 (bottled)
# Toolbox to manipulate MPEG files
# Up{date|grade} && cleanup
brew update && \
brew upgrade && \
brew cask upgrade && \
brew cleanup
# Cut audio from mp3 using mpgsplit
mpgsplit <audio.mp3> [00:59:19-00:59:38] -o <video.mp3>
# Cut a multipage PDF file into multiple image files
gm convert -density 300 file.pdf +adjoin image_%03.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment