This file contains 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/env ruby | |
# brew install parallel | |
# gem i github_api | |
## Setting -> Applications -> Personal Access Tokens -> Generate new token | |
# Selected scopes: | |
# * repo | |
# * public_repo | |
# * repo:status |
This file contains 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
# | |
# Dependencies: pssh, pdsh, cssh | |
# | |
# Under ~/.pssh/ I keep lists of hosts, one cluster per file, one hostname per line. | |
# | |
alias mssh='f() { hosts=$1; shift; for h in $(cat ~/.pssh/$hosts); do ssh $h $@ ; done }; f' | |
# auto-generate aliases for common host groups | |
for hostlist in $(ls ~/.pssh/); do |