Setting permissions for files and directories
Please keep in mind that this post was written more than 2 years ago and might be outdated.
Recursively sets permission 644 to all files, and 755 to all directories within current location.
One liner for my reference :)
find . -type f -exec chmod 644 {} \;; find . -type d -exec chmod 755 {} \;