Fixing brew/npm/pip install permission on MacOS

I found that some laptops which managed by company device management tools occasionally breaks brew/npm/pip installation permission. There’re easy fix borrow from brew itself but also fixed npm/pip issues

# i usually put it in ~/scripts/fix_permission.sh
sudo chown -R $(whoami) /usr/local/bin /usr/local/lib /usr/local/sbin
chmod u+w /usr/local/bin /usr/local/lib /usr/local/sbin

Happy coding !