/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
if ! hash pwgen 2>/dev/null ; then
brew install pwgen
fi
## Generate strong password, default: 32 chars
function genpass()
{
LEN=${1:-32} ; pwgen -syBv -1 $LEN |head -c -1 |pbcopy ; echo -e '[info] Random pass generated and copied..'
}