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
| func ExecuteJobs(jobs []Job) []error { | |
| var wg sync.WaitGroup | |
| wg.Add(len(jobs)) | |
| // execute jobs concurrently | |
| errChan := make(chan error) | |
| for _, j := range jobs { | |
| go func(j Job) { | |
| defer wg.Done() | |
| err := executeJob(j) |
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
| ################################################################################ | |
| # Moving files from one repo to another: | |
| # http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ | |
| # filter one directory | |
| git clone <git repository A url> | |
| cd <git repository A directory> | |
| git remote rm origin | |
| git filter-branch --subdirectory-filter <directory 1> -- --all | |
| mkdir <directory 1> | |
| mv * <directory 1> |