Last active
July 16, 2018 18:23
-
-
Save itsmelion/d670b6c63508c4a8c9e62f82667357ee to your computer and use it in GitHub Desktop.
Mac OSX SUPER-Configuration
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
| #!/bin/sh | |
| # xcode command line - Select: "Get xcode" and go get a coffee (preferably far from your desk :) | |
| xcode-select --install | |
| # homebrew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # will ask to install the command line tools for macOS if the previous step was not executed | |
| brew tap caskroom/cask | |
| brew tap caskroom/versions | |
| brew tap homebrew/dupes | |
| brew tap homebrew/versions | |
| brew update | |
| brew upgrade | |
| # zsh and iterm2 | |
| brew cask install iterm2-beta | |
| brew install zsh zsh-completions | |
| echo 'fpath=(/usr/local/share/zsh-completions $fpath)' >> ~/.zshrc | |
| sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| # Browsers - optional | |
| brew cask install google-chrome | |
| brew cask install google-chrome-canary | |
| brew cask install firefox-nightly | |
| brew cask install safari-technology-preview | |
| # Web Development Tools | |
| brew install node | |
| brew install mariadb | |
| brew tap homebrew/homebrew-php | |
| brew tap homebrew/php | |
| brew install php71 | |
| brew cask install mysqlworkbench | |
| # Visual Studio Code | |
| brew cask install visual-studio-code-insiders | |
| # Angular CLI & Nativescript | |
| npm i -g @angular/cli | |
| brew cask install slack skype-preview spotify | |
| brew install phpmyadmin | |
| # Nginx | |
| brew install nginx | |
| mkdir -p ~/nginx/logs | |
| mkdir -p ~/nginx/sites-available | |
| mkdir -p ~/nginx/sites-enabled | |
| mkdir -p ~/nginx/conf.d | |
| mkdir -p ~/nginx/ssl | |
| sudo mkdir -p /var/www | |
| ln -sfv ~/nginx ~/sites | |
| sudo chown :staff ~/sites | |
| sudo chmod 775 ~/sites | |
| rm /usr/local/etc/nginx/nginx.conf | |
| curl -L https://gist.githubusercontent.com/itsmelion/a16f7cc549d80a1ea6548a730c952deb/raw/9875a9908cb7d31ff76ff0a542676dd78072ad23/nginx.conf -o ~/nginx/nginx.conf | |
| ln -sfv /usr/local/etc/nginx/nginx.conf ~/nginx/nginx.conf | |
| # nginx/php-fpm | |
| curl -L https://raw.githubusercontent.com/hongshunyang/mnmp/master/php-fpm -o ~/nginx/conf.d/php-fpm | |
| openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj '/C=US/ST=State/L=Town/O=Office/CN=localhost' -keyout ~/nginx/ssl/localhost.key -out ~/nginx/ssl/localhost.crt | |
| curl -L https://raw.githubusercontent.com/hongshunyang/mnmp/master/sites-available_default -o ~/sites/nginx/sites-available/default | |
| curl -L https://raw.githubusercontent.com/hongshunyang/mnmp/master/sites-available_default-ssl -o ~/sites/nginx/sites-available/default-ssl | |
| curl -L https://raw.githubusercontent.com/hongshunyang/mnmp/master/www/phpinfo.php -o ~/sites/phpinfo.php | |
| curl -L https://raw.githubusercontent.com/hongshunyang/mnmp/master/www/403.html -o ~/sites/403.html | |
| curl -L https://raw.githubusercontent.com/hongshunyang/mnmp/master/www/404.html -o ~/sites/404.html | |
| curl -L https://raw.githubusercontent.com/hongshunyang/mnmp/master/www/index.html -o ~/sites/index.html | |
| # Git | |
| brew cask install gitkraken | |
| brew install git | |
| echo "Git User: " | |
| read username | |
| git config --global user.name "$username" | |
| echo "Define your Git email" | |
| read email | |
| git config --global user.email "$email" | |
| mysql_secure_installation | |
| echo 'fine.. now install Photoshop, WhatsApp and Trello.. then you are ready' | |
| exit 1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If one day you need reset your Mac, you can fork this and tweak your own settings! @vinsalmont @pedrovillalobos