IT notes

ssh permissions are too open

To set mode 0400 to all your ssh keys: $ find ~/.ssh/* -type f -name "id*" -not -iname "*.pub" -exec chmod 0400 {} \+

Find and replace recursive

Note: Do not run this command on a folder including a git repo - changes to .git could corrupt your get index. For example to replace an IP on multiple files: find /tmp/path -type f -exec sed -i '' 's/193.111.141.1/82.14.220.137/g' {} + On BSD, MAC by passing an empty string to sed’s -i args will create no backup perl -pi -e perl -pi -e 's/replace_this/with_this/" This is useful when you don’t want to change the file ending like in sed that adds an \n ad the end of the file