Skip to content

Instantly share code, notes, and snippets.

@danielnorberg
danielnorberg / github_org_clone_all.rb
Last active March 23, 2016 10:55 — forked from tagomoris/github_org_clone_all.rb
Script to clone all repositories of specified organization
#!/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
@danielnorberg
danielnorberg / pssh-aliases.sh
Created May 24, 2011 09:06 — forked from dln/pssh-aliases.sh
Create aliases for working with remote clusters.
#
# 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