Skip to content

Instantly share code, notes, and snippets.

@schmiddim
Last active March 1, 2016 15:26
Show Gist options
  • Save schmiddim/acbdab687ed62a113c59 to your computer and use it in GitHub Desktop.
Save schmiddim/acbdab687ed62a113c59 to your computer and use it in GitHub Desktop.
Download all examples for the zend2 Book from Ralf Eggert
#!/bin/bash
wd=$(pwd)
git clone git@github.com:ZF2Buch2/kapitel02.git
git clone git@github.com:ZF2Buch2/kapitel03.git
git clone git@github.com:ZF2Buch2/kapitel04.git
git clone git@github.com:ZF2Buch2/kapitel05.git
git clone git@github.com:ZF2Buch2/kapitel06.git
git clone git@github.com:ZF2Buch2/kapitel07.git
git clone git@github.com:ZF2Buch2/kapitel08.git
git clone git@github.com:ZF2Buch2/kapitel09.git
git clone git@github.com:ZF2Buch2/kapitel10.git
git clone git@github.com:ZF2Buch2/kapitel11.git
git clone git@github.com:ZF2Buch2/kapitel12.git
git clone git@github.com:ZF2Buch2/kapitel13.git
git clone git@github.com:ZF2Buch2/kapitel14.git
git clone git@github.com:ZF2Buch2/kapitel15.git
git clone git@github.com:ZF2Buch2/kapitel16.git
git clone git@github.com:ZF2Buch2/kapitel17.git
git clone git@github.com:ZF2Buch2/kapitel18.git
git clone git@github.com:ZF2Buch2/kapitel19.git
git clone git@github.com:ZF2Buch2/kapitel20.git
git clone git@github.com:ZF2Buch2/kapitel21.git
git clone git@github.com:ZF2Buch2/kapitel22.git
composer --working-dir=kapitel02/ install
composer --working-dir=kapitel03/ install
composer --working-dir=kapitel04/ install
composer --working-dir=kapitel05/ install
composer --working-dir=kapitel06/ install
composer --working-dir=kapitel07/ install
composer --working-dir=kapitel08/ install
composer --working-dir=kapitel09/ install
composer --working-dir=kapitel10/ install
composer --working-dir=kapitel11/ install
composer --working-dir=kapitel12/ install
composer --working-dir=kapitel13/ install
composer --working-dir=kapitel14/ install
composer --working-dir=kapitel15/ install
composer --working-dir=kapitel16/ install
composer --working-dir=kapitel17/ install
composer --working-dir=kapitel18/ install
composer --working-dir=kapitel19/ install
composer --working-dir=kapitel20/ install
composer --working-dir=kapitel21/ install
composer --working-dir=kapitel22/ install
exit
> /etc/hosts
127.0.0.1 zf13.local
127.0.0.1 zf14.local
127.0.0.1 zf15.local
127.0.0.1 zf16.local
127.0.0.1 zf17.local
127.0.0.1 zf18.local
127.0.0.1 zf19.local
127.0.0.1 zf20.local
127.0.0.1 zf21.local
127.0.0.1 zf22.local
#apache config
<VirtualHost *:80>
ServerName zf15.local
DocumentRoot /var/www/buch/kapitel15/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel15/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName zf16.local
DocumentRoot /var/www/buch/kapitel16/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel16/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName zf17.local
DocumentRoot /var/www/buch/kapitel17/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel17/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName zf18.local
DocumentRoot /var/www/buch/kapitel18/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel18/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName zf19.local
DocumentRoot /var/www/buch/kapitel19/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel19/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName zf20.local
DocumentRoot /var/www/buch/kapitel20/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel20/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName zf21.local
DocumentRoot /var/www/buch/kapitel21/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel21/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName zf22.local
DocumentRoot /var/www/buch/kapitel22/public
SetEnv APPLICATION_ENV "development"
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/buch-error.log
CustomLog ${APACHE_LOG_DIR}/buch-access.log combined
<Directory /var/www/buch/kapitel22/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment