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
| for branch in $(git branch -r --merged development | grep origin | grep -v development | grep -v master | sed -E "s|^ *origin/||g" | grep -w "NR") | |
| do | |
| git push origin $branch --delete | |
| done |
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
| git branch -r --merged development | | |
| grep origin | | |
| grep -v development | | |
| grep -v master | | |
| sed -E "s|^ *origin/||" | | |
| grep -w "NR" |
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
| credit to https://github.com/mdkrog | |
| git checkout development | |
| git pull origin development | |
| git checkout your-local-branch | |
| git rebase -i development | |
| git push -f origin your-local-branch | |
| git checkout development | |
| git merge your-local-branch --ff-only | |
| git push origin development |
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
| git fetch --all | |
| git reset --hard origin/master | |
| git pull origin master |
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
| var script = document.createElement("script"); | |
| script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"); | |
| script.addEventListener('load', function() { | |
| var script = document.createElement("script"); | |
| document.body.appendChild(script); | |
| }, false); | |
| document.body.appendChild(script); |
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
| kill $(ps aux | grep '[d]elayed_job' | awk '{print $2}') | |
| Credit: | |
| http://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex |
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
| $ du -sh /path/to/dir/*/ | |
| 48K /path/to/dir/dir1/ | |
| 4.0K /path/to/dir/dir2/ | |
| 6.7M /path/to/dir/dir3/ | |
| 20K /path/to/dir/dir4/ | |
| 8.0K /path/to/dir/dir5/ | |
| 44K /path/to/dir/dir6/ | |
| Credit to http://superuser.com/questions/171534/list-the-current-folder-folders-sizes-with-the-terminal/171553#171553?newreg=0e154f897f58423793e8e11fe72e4c1f |