Skip to content

Instantly share code, notes, and snippets.

@truetamtam
Last active May 16, 2016 18:59
Show Gist options
  • Select an option

  • Save truetamtam/f712c60d1766bbcae61b to your computer and use it in GitHub Desktop.

Select an option

Save truetamtam/f712c60d1766bbcae61b to your computer and use it in GitHub Desktop.
Homestead after.sh commands(for vanilla).
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
# vim & .gitconfig
#
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/' /home/vagrant/.bashrc
echo "syntax on\nset nu\n" > /home/vagrant/.vimrc
# .gitconfig
curl -o /home/vagrant/.gitconfig https://gist.githubusercontent.com/truetamtam/1c1396c52dfaaeead700/raw/7871a120476a0d30fbbedec0f38eabfc5d851a02/.gitconfig
# locale
#
locale-gen ru_RU.UTF-8
update-locale
# Date
#
echo "Europe/Moscow" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# fpm
#
# opcache
#sed -i 's/;opcache.revalidate_freq=2/opcache.revalidate_freq=0/' /etc/php5/fpm/php.ini
#echo "opcache.revalidate_freq=0" >> /etc/php5/fpm/conf.d/05-opcache.ini
# php error reporting
#sed -i 's/; error_reporting/error_reporting E_ALL/' /etc/php5/fpm/php.ini
#service php5-fpm restart
# for apache2
# sed -i 's/;opcache.revalidate_freq=2/opcache.revalidate_freq=0/' /etc/php5/apache2/php.ini
# sed -i 's/; error_reporting/error_reporting E_ALL/' /etc/php5/apache2/php.ini
# dev stuff
# tmux npm gulp
#
#npm install -g gulp
#npm install -g npm@latest
#apt-get install -y tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment