Skip to content

Instantly share code, notes, and snippets.

@halilim
Created February 12, 2014 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halilim/8951768 to your computer and use it in GitHub Desktop.
Save halilim/8951768 to your computer and use it in GitHub Desktop.
Find non-public files (e.g. ini, yaml, log etc) that shouldn't be public.
find . -type f \( ! -name "*.php" -and ! -name "*.css" -and ! -name "*.js" -and ! -name "*.jpg" -and ! -name "*.png" -and ! -name "*.gif" \) -not -path "*/vendor/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment