-
-
Save johndpope/b7e89ab43189a8e8330d1f75ed1b2f2e to your computer and use it in GitHub Desktop.
New Machine Setup
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 homebrew | |
echo "Installing Homebrew.." | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
echo "Homebrew successfully installed" | |
## install brew cask | |
echo "Installing brew cask.." | |
brew tap caskroom/cask | |
echo "Homebrew cask successfully installed" | |
## install google chrome | |
brew cask install google-chrome | |
## install git | |
echo "Installing git.." | |
brew install git | |
echo "git successfully installed" | |
## install git completion | |
echo "Installing git completion.." | |
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash > ~/.git-completion.bash | |
echo "git completion successfully installed" | |
## install iterm2 | |
echo "Installing iTerm2.." | |
cd ~/Downloads | |
curl https://iterm2.com/downloads/stable/iTerm2-3_1_7.zip > iTerm2.zip | |
unzip iTerm2.zip &> /dev/null | |
mv iTerm.app/ /Applications/iTerm.app | |
spctl --add /Applications/iTerm.app | |
rm -rf iTerm2.zip | |
echo "iTerm2 successfully installed.. Adding colors.." | |
cd ~/Downloads | |
mkdir -p ${HOME}/iterm2-colors | |
cd ${HOME}/iterm2-colors | |
curl https://github.com/mbadolato/iTerm2-Color-Schemes/zipball/master > iterm2-colors.zip | |
unzip iterm2-colors.zip | |
rm iterm2-colors.zip | |
echo "iTerm2 + Colors installed" | |
## zsh | |
brew install zsh zsh-completions zsh-syntax-highlighting &&\ | |
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh &&\ | |
chsh -s /bin/zsh | |
## Copying bash_rc | |
cat <<'EOF' >> ~/.zshrc | |
alias open_dbt_docs='dbt docs generate && dbt docs serve' | |
alias gl_open="open `git remote -v | awk '/fetch/{print $2}' | sed -Ee 's#(git@|git://)#http://#' -e 's@com:@com/@'`| head -n1" | |
alias ls='ls -G' | |
alias grep='grep --color=auto' | |
export EDITOR="code" | |
EOF | |
## terminal awesomeness | |
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
brew install tree | |
brew install htop | |
brew cask install ngrok | |
curl https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm/master/honukai.zsh-theme > ~/.oh-my-zsh/custom/themes/honukai.zsh-theme | |
## install vscode | |
echo "Installing VSCode.." | |
brew cask install visual-studio-code | |
## this might ask you for your password | |
code --version | |
echo "VSCode successfully installed" | |
code --install-extension code-settings-sync | |
## install bash completion | |
echo "Installing bash competion.." | |
brew install bash-completion | |
echo "bash completion successfully installed" | |
## update terminal prompt | |
echo "Updating terminal prompt.." | |
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh >> ~/.git-prompt.sh | |
echo "Terminal prompt successfully updated" | |
## create global gitignore | |
echo "Creating a global gitignore.." | |
git config --global core.excludesfile ~/.gitignore | |
touch ~/.gitignore | |
curl https://www.gitignore.io/api/macos,visualstudiocode >> ~/.gitignore | |
echo "Global gitignore created" | |
# ## SSH Key setup | |
# ssh-keygen -t rsa -b 4096 -C "[email protected]" -q -N "" -f ~/.ssh/id_rsa &&\ | |
# eval "$(ssh-agent -s)" &&\ | |
# ssh-add ~/.ssh/id_rsa | |
# cat ~/.ssh/id_rsa.pub | pbcopy &&\ | |
# open https://github.com/settings/ssh/new | |
# ## configure git | |
# brew install git-lfs &&\ | |
# git config --global user.name "Louis Guitton" &&\ | |
# git config --global user.email "[email protected]" &&\ | |
# git config --global push.default matching | |
## install the repo | |
echo "Installing a repo.." | |
mkdir ~/workspace/ | |
cd ~/workspace/ | |
git clone [email protected]:louisguitton/awesome-tutos.git | |
echo "Repo successfully installed" | |
## install python3 | |
brew install python3 | |
## install python libraries at system level | |
pip3 install awscli pgcli | |
## install docker | |
brew cask install docker | |
## install spotify | |
brew cask install spotify | |
## install dbt | |
echo "Installing dbt.." | |
brew update | |
brew tap fishtown-analytics/dbt | |
brew install dbt | |
echo "dbt successfully installed.. Printing version.." | |
dbt --version | |
echo "Seting up dbt profile.." | |
mkdir ~/.dbt | |
touch ~/.dbt/profiles.yml | |
curl https://gitlab.com/gitlab-data/analytics/raw/master/admin/sample_profiles.yml >> ~/.dbt/profiles.yml | |
echo "dbt profile created.. You will need to edit this file later." | |
## you will need to edit this file | |
## install the dbt completion script | |
echo "Installing dbt completion script.." | |
curl https://raw.githubusercontent.com/fishtown-analytics/dbt-completion.bash/master/dbt-completion.bash > ~/.dbt-completion.bash | |
echo "dbt completion script successfully installed" | |
## install SQL clients | |
brew cask install postico | |
brew cask install sequel-pro | |
## install spark | |
brew cask install java | |
brew cask install homebrew/cask-versions/adoptopenjdk8 | |
brew install apache-spark | |
pip3 install pyspark jupyter | |
cat <<'EOF' >> ~/.zshrc | |
export SPARK_HOME=/usr/local/Cellar/apache-spark/2.4.3/libexec | |
export PATH=$SPARK_HOME/bin:$PATH | |
export PYSPARK_DRIVER_PYTHON=jupyter | |
export PYSPARK_DRIVER_PYTHON_OPTS=console | |
EOF | |
## Jumpcloud AWS | |
brew tap versent/homebrew-taps | |
brew install saml2aws | |
## Mac Finder show hidden files | |
defaults write com.apple.finder AppleShowAllFiles YES && killall Finder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment