Skip to content

Instantly share code, notes, and snippets.

@RobbieClarken
Last active March 3, 2017 09:38
Show Gist options
  • Save RobbieClarken/4994932 to your computer and use it in GitHub Desktop.
Save RobbieClarken/4994932 to your computer and use it in GitHub Desktop.

Setting up macOS

Apps

Basics

  • Type ⌘ <space> and enter "modifier keys". Change caps lock to control.

  • Install XCode.

  • Install Homebrew:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew update
  • Install Homebrew versions of python, ruby, vim and ctags:

    brew install gcc
    brew install python python3 ruby ctags tmux reattach-to-user-namespace
    brew install vim --with-lua
  • Install dotfiles.

  • Generate a SSH key for GitHub:

    ssh-keygen -t rsa
    pbcopy < ~/.ssh/id_rsa.pub
  • Paste the SSH key in GitHub/Account settings/SSH Keys.

iTerm

  • Install iTerm Themes and select one (Dracula is pretty good).
  • Under Profile / Colors, enable "Cursor Guide" and "Smart Cursor Color".
  • Under Profile / Keys set Left option acts as +Esc.

SciPy

brew install freetype jpeg lzlib pkg-config
pip install jupyter numpy scipy pandas scikit-learn matplotlib seaborn

Other Tools

gem install lunchy
pip install virtualenv requests beautifulsoup4 sympy lxml html5lib ipython-beautifulsoup
brew install coreutils gpg bash-completion wget p7zip rename watch tree \
             ghostscript imagemagick ffmpeg mercurial ack peco \
             the_silver_searcher hub pandoc
brew install Caskroom/cask/xquartz
brew install homebrew/x11/rdesktop

Configuration Changes

  • To reduce ssh dropouts, in /etc/ssh/ssh_config add

    ServerAliveInterval 120
    
  • Enable locate

    sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
    
  • Disable/enable OpenVPN service (needs to be installed first)

    sudo launchctl (load|unload) -w /Library/LaunchDaemons/net.openvpn.client.plist
    

VLC

Preferences / Hotkeys:

  • Short backwards jump: j
  • Short forwards jump: l

Optional Extras

Databases

Postgresql

brew install postgresql
lunchy install /usr/local/opt/postgresql/*.plist
lunchy start postgresql
createdb <dbname>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment