Instantly share code, notes, and snippets.
This gist was improved and incorporated in a set of shell scripts called cgutils.
Visit the repo!