ls | xargs -I{} git -C {} pull
To do it in parallel:
ls | xargs -P10 -I{} git -C {} pull
| # Used this to hide “xScope.app” or "iTerm.app" from the Dock | |
| # Quit and re-start your app after applying for the setting to take effect. | |
| # Hide Application from Dock: | |
| defaults write /Applications/Application.app/Contents/Info LSUIElement 1 | |
| import time | |
| from threading import Thread | |
| def myfunc(i): | |
| print("sleeping 5 sec from thread %d" % i) | |
| time.sleep(5) | |
| print("finished sleeping from thread %d" % i) | |
| for i in range(10): | |
| t = Thread(target=myfunc, args=(i,)) |
ls | xargs -I{} git -C {} pull
To do it in parallel:
ls | xargs -P10 -I{} git -C {} pull
| black = '#282828'; | |
| red = '#cc241d'; // red | |
| green = '#98971a'; // green | |
| yellow = '#d79921'; // yellow | |
| blue = '#458588'; // blue | |
| magenta = '#b16286'; // pink | |
| cyan = '#689d6a'; // cyan | |
| white = '#a89984'; // light gray | |
| lightBlack = '#928374'; // medium gray | |
| lightRed = '#fb4934'; // red |
add this to your ~/.ssh/config
Host *
UseKeychain yes
If someone forks a gist and you'd like to merge their changes. Do this:
clone your repo, I use the name of the gist
git clone git://gist.github.com/1163142.git gist-1163142
add a remote for the forked gist, I'm using the name of my fellow developer
git remote add aaron git://gist.github.com/1164196.git