git config core.fileMode false
- Log out as the current user, then log back in as root.
- Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
- Log out as root, then log back in as the current user.
/* Redirect http to https */
app.get('*', function(req,res,next) {
if(req.headers['x-forwarded-proto'] != 'https' && process.env.NODE_ENV === 'production')
res.redirect('https://'+req.hostname+req.url)
else
next() /* Continue to other routes if we're not redirecting */
});
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Recursively remove all files of filetype .foo from the repo: | |
| git filter-branch --tree-filter 'git rm -r -f --ignore-unmatch *.foo' HEAD |