Skip to content

Instantly share code, notes, and snippets.

@olgabot
Created July 24, 2017 18:13
Show Gist options
  • Save olgabot/4451b0b22b122fa256d613eb532a99d3 to your computer and use it in GitHub Desktop.
Save olgabot/4451b0b22b122fa256d613eb532a99d3 to your computer and use it in GitHub Desktop.
title date draft
Macbook Setup
2017-07-19 18:57:02 -0700
true

Turns out I have a really custom setup ... Here is what I had to do to install everything I need to get started

  • Chrome
  • Quicksilver - deprecated in favor of Spotlight Search
  • Add Russian language for input sources
  • Remove all Apple software from doc except preferences
  • Git/XCode (type git and mac OS Sierra knows you're a coder and installs tools for you)
  • PyCharm
  • oh my zsh: https://github.com/robbyrussell/oh-my-zsh
    • Add a few plugins: plugins=(git osx python)
    • Uncomment a few lines:
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"

... more options ...

# Preferred editor for local and remote sessions
# Changed to `emacs`
if [[ -n $SSH_CONNECTION ]]; then
  export EDITOR='vim'
else
  export EDITOR='mvim'
fi

... more options ...

# ssh
export SSH_KEY_PATH="~/.ssh/rsa_id" 

Add alias for Triton Supercomputing Cluster (TSCC):

# Alias to Triton Supercomputing Cluster (TSCC)
alias tscc="ssh [email protected]"

Never use vi/vim:

# >:)
alias vim=emacs
alias vi=emacs
cat .ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
  • ~/code folder
    • GitHub repos from grad school that I'm still working on
  • Terminal settings
  • Anaconda Python
    • Make sure to copy the lines added to ~/.bash_profile to ~/.zshrc since Anaconda doesn't know you use oh-my-zsh
    • Make separate environments for each github repo
source activate kvector-env
conda install ipykernel
python -m ipykernel install --user --name myenv --display-name "Python 3.6 (kvector-env)"
  • Homebrew
    • hub
      • brew install hub: mislav/hub#978
      • Add token for command line access so you can do git pull-request on the command line: mislav/hub#978
      • brew install git-lfs for git large file storage
    • tree to view directory trees from the command line
    • watch to rerun commands forever
  • Caffeine - Turn off the screen dimming on your mac - keep it "awake" :)
  • Toggl for time tracking so I know how long I spend on projects. This was especially useful for seeing how long formatting my dissertation took
  • VLC - Watch videos in something other than .mov or .mp4 format
  • Flux - Dim the blue light in your screen at night so you sleep better
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment