Last active
November 7, 2018 00:37
-
-
Save bheeshmar/95646cd86c6db9eec384 to your computer and use it in GitHub Desktop.
Mac setup
This file contains 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
### MY CUSTOMIZATIONS | |
# Set hostname, etc | |
export DESIREDHOSTNAME=viminal | |
sudo scutil --set HostName $DESIREDHOSTNAME | |
sudo scutil --set LocalHostName $DESIREDHOSTNAME | |
sudo scutil --set ComputerName $DESIREDHOSTNAME | |
# Mac terminal doesn't load .bashrc by default | |
echo "[ -f ~/.bashrc ] && . ~/.bashrc" >> ~/.bash_profile | |
# Use homebrew, click bottom right button in dialog when prompted | |
brew update || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install git | |
# Install apps using homebrew with cask | |
brew cask install google-chrome | |
brew cask install iterm2 | |
brew cask install caffeine | |
brew cask install spectacle | |
brew cask install slack | |
# Copy keys from storage | |
mkdir ~/.ssh | |
chmod 0700 ~/.ssh | |
echo (paste) > ~/.ssh/id_rsa | |
chmod 0600 !$ | |
... | |
ssh -T git@github.com # test | |
# My configs | |
git clone git@github.com:bheeshmar/dotfiles.git | |
echo 'export MY_SHELL_SETTINGS=$HOME/dotfiles/shell_settings' >> ~/.bashrc | |
echo '[ -f $MY_SHELL_SETTINGS/settings.bash ] && . $MY_SHELL_SETTINGS/settings.bash' >> ~/.bashrc | |
brew install bash-completion | |
echo '[ -f `brew --prefix`/etc/bash_completion ] && . `brew --prefix`/etc/bash_completion' >> ~/.bash_profile | |
# vim | |
brew install vim | |
ln -s $HOME/dotfiles/vim_settings/vimrc ~/.vimrc | |
vim # load plugins | |
cd ~/.vim/vim-addons/vimproc/ && make -f make_mac.mak | |
cd | |
# tmux | |
brew install reattach-to-user-namespace | |
brew install tmux | |
ln -s $HOME/dotfiles/tmux.conf ~/.tmux.conf | |
# Helpers | |
echo 'export CDPATH=".:$HOME/dev:$CDPATH"' >> ~/.bashrc | |
echo 'export EDITOR=/usr/local/bin/vim' >> ~/.bashrc | |
echo 'alias be="bundle exec"' >> ~/.bashrc | |
echo 'alias testdb="RAILS_ENV=test rake db:drop db:create db:migrate"' >> ~/.bashrc | |
# utilities | |
brew install the_silver_searcher | |
brew install ctags-exuberant | |
brew install jq | |
#### INSTALL BLOOMFIRE | |
# Use homebrew | |
brew update || ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install git | |
# Install ruby and switcher | |
brew install chruby | |
brew install ruby-install | |
ruby-install ruby 2.5.1 | |
echo "source /usr/local/opt/chruby/share/chruby/chruby.sh" >> ~/.bashrc | |
echo "source /usr/local/opt/chruby/share/chruby/auto.sh" >> ~/.bashrc | |
echo "gem: --no-document" >> ~/.gemrc | |
source ~/.bashrc | |
# Install postgres 10.5 | |
brew install postgresql | |
brew services start postgresql | |
# Install ES 6.2.4 - Java first | |
brew install Caskroom/cask/java | |
https://raw.githubusercontent.com/tylerjl/homebrew-core/4458cd5f07b91fbf329bd1ee7f6967ac5b6ce2c2/Formula/elasticsearch.rb | |
brew services start elasticsearch | |
# Install redis | |
brew install redis@3.2 | |
brew services start redis@3.2 | |
# Install node and switcher (create directory with correct permissions to avoid sudo) | |
brew install n | |
sudo mkdir /usr/local/n/ | |
sudo chown bheeshmar:admin /usr/local/n | |
n 8.11.1 | |
# Install yarn 1.7.0 | |
brew install https://raw.githubusercontent.com/DanBuild/homebrew-core/44c669b613a38397ee974f629c2020c7dbe88f92/Formula/yarn.rb | |
# Paperclip needs imagemagick | |
brew install imagemagick | |
git clone git@github.com:bloomfire/app.git | |
cd app | |
gem update --system | |
gem install bundler | |
bundle install | |
# Setup the app | |
rake db:create | |
foreman start init | |
rake db:seed_fu | |
rake spec | |
#### INSTALL SYSOPS (assumes brew/git/ruby installed as above) | |
git clone git@github.com:bloomfire/sysops.git | |
cd sysops | |
bundle install | |
rake servers:ssh_config | |
# VPN client (drag config into icon to configure) | |
brew install tunnelblick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment