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
| # To delete all branches on origin that have already been merged into master: | |
| git fetch origin && git remote show origin | grep tracked | grep -v master | awk '{print $1}' | xargs -I '{}' bash -c 'if [ ! "$(git cherry origin/master origin/{})" ]; then git push origin :{}; fi' | |
| # To show the authors of unmerged branches: | |
| git fetch origin; git branch -r | grep origin | xargs -I {} bash -c 'if [[ ! `git cherry HEAD {}` ]]; then echo "{} -- $(git show --format=%an {} | head -n 1)"; fi' | |
| # If you think you lost a commit somehow and it's not stashed and not in a branch, |
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
| .projects_stories_page .storyLabels a[title="triage: red"] { | |
| background-color: red; | |
| color: white !important; | |
| padding: 0 3px; | |
| display: inline-block; | |
| } | |
| .projects_stories_page .accepted .storyLabels a[title="triage: red"] { | |
| background-color: inherit; | |
| color: inherit !important; |
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
| # list interesting methods | |
| def listm(object) | |
| (object.methods - Object.methods).sort | |
| end |
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
| #!/usr/bin/ruby | |
| filename, line_no = ARGV.pop.split ':' | |
| exec "mine -l #{line_no} #{filename} &" |
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
| % -compile([debug_info, export_all]). | |
| % -define (VALUE (Call), io:format ("~p:~p ~s = ~p~n", [?MODULE, ?LINE, ??Call, Call])). |
NewerOlder