Skip to content

Instantly share code, notes, and snippets.

@andres-torres-marroquin
Last active May 7, 2024 14:25
Show Gist options
  • Save andres-torres-marroquin/cb976db2256e3c78a4fd to your computer and use it in GitHub Desktop.
Save andres-torres-marroquin/cb976db2256e3c78a4fd to your computer and use it in GitHub Desktop.
Mac OS X Setup

Setup Finder

defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder ShowTabView -bool true 
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
killall Finder

Install zsh

https://ohmyz.sh/#install

Install brew

https://brew.sh/

Install Brew packages

brew install menubar-stats
brew install firefox
brew install google-chrome
brew install iterm2
brew install telegram
brew install slack
brew install spectacle
brew install spotify
brew install sublime-text
brew install visual-studio-code
brew install whatsapp
brew install mimestream
brew install zoom

brew install neofetch
brew install git?

Update ~/.zshrc

$ vim ~/.zshrc
...
ZSH_THEME="gnzh"
...
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word

neofetch 2> /dev/null

Setting up the Mac

defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder ShowTabView -bool true 
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
killall Finder
# Install zsh and brew

# Installing binaries
# brew install asciinema
# brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/30fd2b68feb458656c2da2b91e577960b11c42f4/Formula/openssl.rb
# brew install libjpeg
# brew install node
# brew install openssl
# brew install postgresql
# brew install screenfetch # on .zshrc `screenfetch 2> /dev/null`
# brew install yarn
brew install git
brew install neofetch


# Installing apps
# brew cask install adobe-creative-cloud
# brew cask install android-studio
# brew cask install blender
# brew cask install caffeine
# brew cask install cheatsheet
# brew cask install cscreen
# brew cask install disk-inventory-x
# brew cask install dropbox
# brew cask install gfxcardstatus
# brew cask install intel-power-gadget
# brew cask install java
# brew cask install macs-fan-control
# brew cask install robomongo
# brew cask install screenhero
# brew cask install skype
# brew cask install soundflower soundflowerbed  # USE: https://staticz.com/soundcontrol/
# brew cask install transmission
# rew cask install vlc
brew cask install firefox
brew cask install google-chrome
brew cask install iterm2
brew cask install slack
brew cask install spectacle
brew cask install spotify
brew cask install sublime-text

# The next casks require a password.
# brew cask install airdisplay   
# brew cask install unity  
# sudo gem install fastlane
# brew cask install vagrant   
# brew cask install virtualbox   
# brew cask install teamviewer 

# Installing games
brew cask install minecraft
brew cask install nvidia-geforce-now
brew cask install steam

# Setting up nodejs
# npm install gulp -g


# Setting up python
# brew install --ignore-dependencies https://raw.githubusercontent.com/Homebrew/homebrew-core/f2a764ef944b1080be64bd88dca9a1d80130c558/Formula/python.rb
# pip3 install virtualenv

Create projects directory

cd
mkdir Projects

iTerm2 setup:

iTerm2 / Preferences / Profiles / General:

[x] Reuse previous session's directory

iTerm2 / Preferences / Profiles / Keys

Add:

  • alt + left: send ESC + b
  • alt + right: send ESC + f
  • alt + backspace: send HEX "0x17"

iTerm 2 / Preferences / Profiles / Window

  • Columns: 120
  • Rows: 40

Sublime Text setup:

Sublime config: Preferences.sublime-settings

{
	"default_line_ending": "unix",
	"draw_minimap_border": true,
	"ensure_newline_at_eof_on_save": true,
	"font_size": 15,
	"highlight_line": true,
	"max-line-length": 999,
	"rulers":
	[
		80,
		120
	],
	"shift_tab_unindent": true,
	"sublimelinter": true,
	"sublimelinter_popup_errors_on_save": true,
	"translate_tabs_to_spaces": true,
	"trim_automatic_white_space": true,
	"trim_trailing_white_space_on_save": true,
	"word_wrap": false
}

Package Control.sublime-settings

{
	"bootstrapped": true,
	"in_process_packages":
	[
	],
	"installed_packages":
	[
		"Better CoffeeScript",
		"Dockerfile Syntax Highlighting",
		"FileIcons",
		"GitGutter",
		"Package Control",
		"Pretty JSON",
		"Stylus"
	]
}

License: https://gist.github.com/andres-torres-marroquin/0cbadb8dc0b6bfaf1834

Configuring the AWS cli

brew update
brew unlink awscli aws-elasticbeanstalk  # If already installed
brew install awscli
brew install aws-elasticbeanstalk
pip install boto

cd project/to/repo/root
eb init

Configuring the zsh

ZSH_THEME="gnzh"

Items to exclude from Time Machine

Setting up Buckets

asciicast

Install Node

brew install node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
npm i -g gulp # install node 10 for this
npm i -g webpack
npm i -g webpack-cli
npm i -g webpack-dev-server

Update ~/.zshrc

ZSH_THEME="gnzh"
...
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

export JAVA_HOME=$(/usr/libexec/java_home)
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/platform-tools
export PATH=${PATH}:$ANDROID_HOME/platforms
export PATH=${PATH}:$ANDROID_HOME/build-tools/26.0.0/

export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.fastlane/bin:$PATH"

bindkey "^[^[[D" backward-word
bindkey "^[^[[C" forward-word

neofetch 2> /dev/null

Setup the keep alive ssh connections

https://github.com/BU-ISCIII/dotfiles/wiki/Keep-alive-ssh-connections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment