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
| #!/bin/bash | |
| PAGER= \ | |
| && git fsck --full --no-reflogs --unreachable --lost-found \ | |
| | grep commit \ | |
| | awk '{print $3}' \ | |
| | xargs -n 1 git log -n 1 --pretty=oneline |
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
| # This is useful for repositories holding several stages of a same example, as some teachers do for their class examples. | |
| # This strategy is useful for showing different steps of the construction of a piece of software. | |
| # The problem is that if you have to change something in one of the initial branches, you have to rebase all following ones. | |
| # This script can help automate that process. | |
| # In my case the initial branch is named `inicioClaseHerencia` | |
| # And all dependent branches are named `punto1-...` to `punto#-...`, so they can be find with a pattern. | |
| old=inicioClaseHerencia | |
| for b in `gb --list "punto*"`; do |
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
| #!/bin/bash | |
| TITLE="Branch Selector" | |
| MENU="Select a branch to checkout:" | |
| DEFAULT_BRANCH=$(git symbolic-ref -q HEAD) | |
| DEFAULT_BRANCH=${DEFAULT_BRANCH##refs/heads/} | |
| DEFAULT=0 | |
| OPTIONS=() | |
| tempBranches=() |
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
| Array.prototype.slice | |
| .apply(document.querySelectorAll('.js-subscription-row')) | |
| .filter(el => el.querySelector('a[href^="/dds-utn"]')) | |
| .map(el => el.querySelector('button')) | |
| .forEach(btn => btn.click()) |
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
| currentBranch=$(git rev-parse --abbrev-ref HEAD) | |
| ignore=(dev master) | |
| function red { | |
| echo -e "\e[1;31m$1\e[0m" | |
| } | |
| function green { | |
| echo -e "\e[1;32m$1\e[0m" | |
| } |
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
| "See if the monticello registry has misplaced objects (i.e. not MCPackages)" | |
| MCWorkingCopy registry keys collect: #class as: Set. | |
| "Clean the registry" | |
| MCWorkingCopy registry removeKey: | |
| (MCWorkingCopy registry keys detect: [ :key | key class ~= MCPackage ]). |