Get the lastest version of a git repository
# Initialise empty repo and set remote
# (this way we can only download tags not whole repo)
git init
git remote add origin https://github.com/my/repo.git
# Get new tags from the remote
git fetch --tags
# Get the latest tag name
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)Get codename (e.g. Jessie) for Ubuntu / Debian
lsb_release -csFind all folders in subdirectories with a certain name and show their size (basically prove a find with an exec at end)
find . -type d -name "Plex Versions" -exec du -sh {} \;