$ git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA' --prune-empty --tag-name-filter cat -- --all
$ git push origin --force --all
$ git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA' --prune-empty --tag-name-filter cat -- --all
$ git push origin --force --all
| # Setting color of prompt variable | |
| export PS1='\[\033[0;91m\]\h\[\033[0m\] \[\033[0;97m\]\u:\W\[\033[0m\] \[\033[0;94m\]$\[\033[0m\] ' |
| # Delete every Docker containers | |
| # Must be run first because images are attached to containers | |
| docker rm $(docker ps -a -q) | |
| # Delete every Docker image | |
| docker rmi $(docker images -q) |
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
ctrl + command + j
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'killall DockIf you are seeing Mongo soft rlimits warnings in your logs, or a WARNING: soft rlimits too low. Number of files is 256, should be at least 1000 when you login to mongo shell via mongo from the commandline, or any mysterious/unexplained mongo connection errors... follow this how-to exactly and it will resolve the issue for you.
(Source of this how to found at basho/basho_docs#1402)
First file:
sudo vi /Library/LaunchDaemons/limit.maxfiles.plist
...containing:
Start