Skip to content

Instantly share code, notes, and snippets.

@so77id
Last active January 16, 2020 09:30
Show Gist options
  • Select an option

  • Save so77id/4ba8fa9d84bc4c91a859d36ad2b641a9 to your computer and use it in GitHub Desktop.

Select an option

Save so77id/4ba8fa9d84bc4c91a859d36ad2b641a9 to your computer and use it in GitHub Desktop.
# Updade and fix brew
echo "[Update] brew"
brew update && brew doctor
# Build-essentials
brew install autoconf
brew install automake
brew install libtool
brew install make
brew install unzip
# Docker
echo "[Install] Docker & compose"
brew cask install docker
### Kubernetes install
echo "[Install] Kubernetes"
# https://kubernetes.io/docs/tasks/tools/install-kubectl/
brew install kubectl
# https://github.com/ahmetb/kubectx
brew install kubectx
# https://github.com/derailed/k9s
brew install derailed/k9s/k9s
# https://github.com/kubernetes/kops
brew install kops
# AWS install
echo "[Install] AWS"
# https://www.chrisjmendez.com/2017/02/18/aws-installing-aws-client-using-homebrew/
brew install awscli
echo "[Config] AWS"
echo "write default zone: us-east-1"
echo "write default output: json"
aws configure
# Code editor
echo "[Install] Code editor"
# nvim
brew install nvim
# vscode
brew cask install visual-studio-code
echo "Installing vscode extensions"
code --install-extension ms-azuretools.vscode-docker
code --install-extension joelday.docthis
npm install -g eslint
code --install-extension dbaeumer.vscode-eslint
code --install-extension ms-vscode.go
code --install-extension kumar-harsh.graphql-for-vscode
code --install-extension ms-kubernetes-tools.vscode-kubernetes-tools
brew install ripgrep
code --install-extension gruntfuggly.todo-tree
code --install-extension redhat.vscode-yaml
code --install-extension zxh404.vscode-proto3
code --install-extension eamodio.gitlens
code --install-extension ms-vsliveshare.vsliveshare
code --install-extension ms-vsliveshare.vsliveshare-pack
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension esbenp.prettier-vscode
# atom
brew cask install atom
# sublime
brew cask install sublime-text
# Git Tools
echo "[Install] Git tools"
brew cask install gitkraken
# Network Tools
echo "[Install] Network tools"
# Postman
brew cask install postman
# BloomRPC
brew cask install bloomrpc
# GoLang install
brew install golang
read -p "Enter GoLang folder : " GOLANG_FOLDER
# Folders
echo "Creating GoLang folder"
GOPATH=$HOME/$GOLANG_FOLDER
mkdir -p $GOPATH $GOPATH/src $GOPATH/pkg $GOPATH/bin
# Enviroment variables
echo "# GoLang" >> ~/.zshrc
echo "export GOPATH=$GOPATH" >> ~/.zshrc
echo "export GOROOT=/usr/local/opt/go/libexec" >> ~/.zshrc
echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.zshrc
echo "export PATH=\$PATH:\$GOROOT/bin" >> ~/.zshrc
source ~/.zshrc
# Install packages
echo "Installing go packages"
# proto backend dependencies
brew install protobuf
go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go
# Node
echo "[Install] NVM & NodeJS"
# Nvm
brew install nvm
mkdir ~/.nvm
echo "# NVM" >> ~/.zshrc
echo "export NVM_DIR=~/.nvm" >> ~/.zshrc
echo "source \$(brew --prefix nvm)/nvm.sh" >> ~/.zshrc
source ~/.zshrc
nvm --version
# node
nvm install --lts
nvm use --lts
echo "[Install] TypeScript"
npm install -g typescript
# Ruby & RoR
echo "[Install] Ruby and RoR"
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc
source ~/.zshrc
# Install Ruby
rbenv install 2.6.5
rbenv global 2.6.5
ruby -v
# Install RoR
gem install rails -v 6.0.0
rbenv rehash
# Fix mojave C compiler for apps with C backend
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment