Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# Ruby / Bundler / Diaspora
# Fork https://github.com/diaspora/diaspora
# Repeat 5 times
time sh -c 'git clone https://github.com/fzaninotto/diaspora.git;cd sandbox;bundle install --deployment'
rm -Rf diaspora
# commit dependencies
git clone https://github.com/fzaninotto/diaspora.git
cd diaspora
git checkout -b with_dependencies
git add vendor/bundle/ --force
git commit -m 'add dependencies'
git push origin with_dependencies
cd ..
rm -Rf diaspora;
# Repeat 5 times
time git clone -b with_dependencies https://github.com/fzaninotto/diaspora.git
rm -Rf diaspora
# PHP / composer / Sonata sandbox
# Fork https://github.com/sonata-project/sandbox
# Repeat 5 times
rm -Rf ~/.composer/cache*
time sh -c 'git clone https://github.com/fzaninotto/sandbox.git;cd sandbox;composer.phar install'
rm -Rf sandbox
# commit dependencies
git clone https://github.com/fzaninotto/sandbox.git
cd sandbox
git checkout -b with_dependencies
find vendor -name '.git' -type d | xargs rm -Rf
git add vendor --force
git commit -m 'add dependencies'
git push origin with_dependencies
cd ..
rm -Rf sandbox;
# Repeat 5 times
time git clone -b with_dependencies https://github.com/fzaninotto/sandbox.git
rm -Rf sandbox
# Node.js / npm / Uptime
# Fork https://github.com/fzaninotto/uptime.git
# Repeat 5 times
npm cache clean
time sh -c 'git clone https://github.com/fzaninotto/uptime.git;cd uptime;npm install'
rm -Rf uptime
# commit dependencies
git clone https://github.com/fzaninotto/uptime.git
cd uptime
git checkout -b with_dependencies
git add node_modules --force
git commit -m 'add dependencies'
git push origin with_dependencies
cd ..
rm -Rf uptime;
# Repeat 5 times
time git clone -b with_dependencies https://github.com/fzaninotto/uptime.git
rm -Rf uptime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment