https://github.com/sixarm/chown-chmod-me
Security is hard. During a recent volunteer event we found some people had files with incorrect user/group ownership and incorrect public permissions.
This script wraps two commands that help:
chown -R "$(id -un):$(id -gn)" "$@"
chmod -R go="$@"