Last active
October 6, 2018 14:06
-
-
Save Trexology/6a42bf48d7b2372093500166e5e51a0c to your computer and use it in GitHub Desktop.
Mac Sierra
This file contains hidden or 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
#!/usr/bin/env bash | |
cd ~ | |
# xcode | |
xcode-select --install | |
# Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
brew install bash-completion | |
# Install cocoapods | |
sudo gem install activesupport -v 4.2.6 | |
sudo gem install cocoapods | |
# Install composer | |
sudo curl -sS https://getcomposer.org/installer | sudo php | |
sudo mv composer.phar /usr/local/bin/composer | |
sudo composer global require "laravel/installer" # Install Laravel installer | |
git config --global user.name "Trex Lim" | |
git config --global user.email "[email protected]" | |
git config --global credential.helper osxkeychain | |
brew install curl --with-libssh2 --with-openssl | |
brew tap homebrew/php | |
brew install php71 php-cs-fixer php71-mcrypt php71-gmp | |
brew install node # Install Node/npm | |
# Install node packages | |
sudo npm install -g bower | |
sudo npm install -g ionic | |
# Install cordova | |
sudo npm install -g cordova | |
sudo npm install -g ios-sim | |
npm install -g ios-deploy | |
# Install mariaDB | |
brew install mariadb | |
ln -sfv /usr/local/opt/mariadb/*.plist ~/Library/LaunchAgents | |
unset TMPDIR | |
mysql_install_db | |
mysql.server start | |
mysql_secure_installation | |
# download .bash_profile from gist | |
curl -L https://gist.githubusercontent.com/Trexology/d7c475c0f399125d166d9db96de002c3/raw/1ca133bff6b27ec0a43e7910f095b30225a55ac7/.bash_profile > ~/.bash_profile && chmod +x ~/.bash_profile | |
source ~/.bash_profile | |
# For Drupal | |
#sudo pecl install uploadprogress | |
php -r "readfile('http://files.drush.org/drush.phar');" > drush | |
chmod +x drush | |
sudo mv drush /usr/local/bin | |
drush init | |
sudo spctl --master-disable | |
# Install mySQL auto backup script (Optional) | |
#brew install automysqlbackup # http://misterpark.co.uk/2014/12/26/install-and-configure-automysqlbackup-on-os-x-yosemite/ | |
#brew install kevwil/patches/mutt --with-gpgme --with-trash-patch --with-sidebar-patch --with-confirm-attachment-patch # http://www.lucianofiandesio.com/getting-started-with-mutt-on-osx | |
#cp /usr/local/etc/automysqlbackup/automysqlbackup.conf /usr/local/etc/automysqlbackup/automysqlbackup.conf.orig | |
#sudo vim /usr/local/etc/automysqlbackup/automysqlbackup.conf | |
#ln -sfv /usr/local/opt/automysqlbackup/*.plist ~/Library/LaunchAgents | |
#~/Library/LaunchAgents/homebrew.mxcl.automysqlbackup.plist -> /usr/local/opt/automysqlbackup/homebrew.mxcl.automysqlbackup.plist | |
#launchctl load ~/Library/LaunchAgents/homebrew.mxcl.automysqlbackup.plist | |
#ln -s /usr/local/var/backup/db ~/Dropbox/Backup/automysqlbackup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment