Last active
October 6, 2017 23:37
-
-
Save Hirurg103/010532c9f316d236f293 to your computer and use it in GitHub Desktop.
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
# install brew | |
# this will also download and install XCode https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 | |
# xcode-select --install | |
sudo -u $USER /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" \ </dev/null | |
brew update --force | |
# fix homebrew permissions (see http://stackoverflow.com/questions/16432071/how-to-fix-homebrew-permissions) | |
# sudo chown -R "$USER":admin /usr/local | |
# mysql56 (mysql57 ) | |
brew search mysql | |
brew install homebrew/versions/mysql56 | |
sudo mkdir -p /usr/local/var/mysql | |
sudo chown -R $(whoami) /usr/local/var/mysql | |
brew postinstall homebrew/versions/mysql56 | |
# if rake db:create fails with | |
# Reason: image not found - /Users/MyUser/.rvm/gems/ruby-2.2.3@projectname/extensions/x86_64-darwin-14/2.2.0-static/mysql2-0.3.16/mysql2/mysql2.bundle | |
# try | |
gem uninstall mysql2 | |
bundle | |
# to start mysql at startup | |
sudo ln -svf /usr/local/Cellar/[email protected]/5.6.37//[email protected] /Library/LaunchAgents | |
# qt | |
brew install [email protected] | |
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc | |
# elasticsearch | |
brew install brew install caskroom/versions/java8 | |
brew install elasticsearch | |
# or download and unpack https://www.elastic.co/downloads/past-releases/elasticsearch-1-4-4 | |
# git aliases | |
git config --global alias.ci commit | |
git config --global alias.co checkout | |
# git settings | |
git config --global user.name "Dzmitry" | |
git config --global user.email [email protected] | |
git config --global push.default simple | |
# hosts | |
sudo vim /etc/hosts | |
# add the following hosts to the end of file | |
# 127.0.0.1 wax.lvh.me | |
# 127.0.0.1 wrr.lvh.me | |
# redis | |
brew install redis | |
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents | |
# npm | |
brew install npm | |
# emacs | |
brew tap railwaycat/homebrew-emacsmacport | |
brew install emacs-mac --with-spacemacs-icon | |
brew linkapps | |
# spacemacs | |
cd ~ | |
mv .emacs.d .emacs.d.bak | |
mv .emacs .emacs.bak | |
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d | |
# old firefox | |
# download package https://ftp.mozilla.org/pub/firefox/releases/41.0.2/mac/en-GB/ | |
# and install it | |
# ag | |
brew install ag | |
# imagemagick | |
brew install imagemagick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment