Last active
August 22, 2019 07:24
-
-
Save pritdeveloper/64a03541d98125b7193ac490510d4472 to your computer and use it in GitHub Desktop.
Startup Script for AWS Cloud9
This file contains 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
# git | |
git config --global user.name "Pritpal Singh" | |
git config --global user.email "[email protected]" | |
git config --global core.editor vi | |
git config --global core.whitespace off | |
git config --global core.excludesfile "~/.gitignore" | |
git config --global advice.statusuoption false | |
git config --global color.ui true | |
git config --global push.default current | |
# .git aliases | |
curl https://gist.githubusercontent.com/pritdeveloper/703cb04659cd37d836fadbe0f02b0df6/raw > /home/ubuntu/.gitconfig | |
# .gitignore | |
curl https://gist.githubusercontent.com/pritdeveloper/acfd4edd5cc3f43cb6b5f3338acd9fdf/raw > /home/ubuntu/.gitignore | |
# composer | |
apt install composer -y | |
# enable rewrite mod | |
a2enmod rewrite | |
# apache run user and group | |
echo 'export APACHE_RUN_USER=ubuntu\nexport APACHE_RUN_GROUP=ubuntu' >> /etc/apache2/envvars | |
# aliases | |
echo 'if [ -f ~/.bash_aliases ]; then\n . ~/.bash_aliases\nfi' >> /home/ubuntu/.bashrc | |
curl https://gist.githubusercontent.com/pritdeveloper/5cd890652c2da532efac5d4558971e7a/raw > /home/ubuntu/.bash_aliases | |
. /home/ubuntu/.bashrc | |
# apache conf | |
curl https://gist.githubusercontent.com/pritdeveloper/6f9eb3a67f9689011db6d6c1341e1323/raw > /etc/apache2/sites-enabled/000-default.conf | |
service apache2 restart | |
service mysql restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment