Skip to content

Instantly share code, notes, and snippets.

@pritdeveloper
Last active August 22, 2019 07:24
Show Gist options
  • Save pritdeveloper/64a03541d98125b7193ac490510d4472 to your computer and use it in GitHub Desktop.
Save pritdeveloper/64a03541d98125b7193ac490510d4472 to your computer and use it in GitHub Desktop.
Startup Script for AWS Cloud9
# git
git config --global user.name "Pritpal Singh"
git config --global user.email "pritdeveloper+aws@gmail.com"
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