Here's my boilerplate bash header with comments describing each option, which I find practically helpful for starting new scripts
https://gist.github.com/crizCraig/f42bc250754bed764ada5f95d1...
raw: https://gist.githubusercontent.com/crizCraig/f42bc250754bed7...