Skip to content

Instantly share code, notes, and snippets.

@matheusazzi
Last active July 2, 2020 15:30
Show Gist options
  • Save matheusazzi/8591273 to your computer and use it in GitHub Desktop.
Save matheusazzi/8591273 to your computer and use it in GitHub Desktop.

This snippets will install:

  • Ruby
  • Homebrew
  • Node
  • Git
  • Databases
  • Some util configs

First of all:

  • Update Mac OS
  • Install Xcode on app store
  • Install xcode-select on terminal xcode-select --install
Set your projects folder
  • mkdir Workspace
  • cd Workspace
  • Set permissions
Install RVM
  • \curl -sSL https://get.rvm.io | bash -s stable
  • rvm list known
  • rvm install 2.5.1
  • rvm use 2.5.1 --default

It'll install latest Homebrew automatically

Verify if everything is ok
  • brew doctor
Install more recent versions of some OS X tools
  • brew install vim --override-system-vi
Install GIT
  • brew install git
  • brew install tree
Config git
  • Copy your .gitconfig from your gists
Install NVM
  • curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
  • nvm install node
  • nvm use node

User configuration

Always show hidden files

  • defaults write com.apple.finder AppleShowAllFiles -bool true

Disable the “Are you sure you want to open this application?” dialog

  • defaults write com.apple.LaunchServices LSQuarantine -bool false

Disable Mission Control Animations

  • defaults write com.apple.dock expose-animation-duration -int 0

Set a blazingly fast keyboard repeat rate

  • defaults write NSGlobalDomain KeyRepeat -int 0 # Don't always use that

Disable window animations and Get Info animations in Finder

  • defaults write com.apple.finder DisableAllAnimations -bool true

Require password immediately after sleep or screen saver begins

  • defaults write com.apple.screensaver askForPassword -int 1
  • defaults write com.apple.screensaver askForPasswordDelay -int 0

Show all filename extensions in Finder

  • defaults write NSGlobalDomain AppleShowAllExtensions -bool true

Avoid creating .DS_Store files on network volumes

  • defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

Disable the warning when changing a file extension

  • defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

Disable the warning before emptying the Trash

  • defaults write com.apple.finder WarnOnEmptyTrash -bool false

Show the ~/Library folder

  • chflags nohidden ~/Library
Disable "Are you shure you want open this" dialog

defaults write com.apple.LaunchServices LSQuarantine -bool false

Install Oh My Zsh for better terminal

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install Docker.app
Clean some brew trash if exist
  • brew cleanup
Install Rails
  • gem install bundler rails --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment