Skip to content

Instantly share code, notes, and snippets.

@carlosrivera
Last active December 7, 2017 23:59
Show Gist options
  • Save carlosrivera/57634c614406bf8f721ceba172032afa to your computer and use it in GitHub Desktop.
Save carlosrivera/57634c614406bf8f721ceba172032afa to your computer and use it in GitHub Desktop.
Ubuntu commands
### Remove previous installs on /boot
´´´
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo apt-get -y purge
´´´
### Reduce pdf size
´´´
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=IAFinTech.pdf draft_IAFinTech.pdf
´´´
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment