Skip to content

Instantly share code, notes, and snippets.

@fzaninotto
Created September 12, 2013 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fzaninotto/6534625 to your computer and use it in GitHub Desktop.
Save fzaninotto/6534625 to your computer and use it in GitHub Desktop.
# 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