Skip to content

Instantly share code, notes, and snippets.

@etheleon
Last active September 4, 2020 07:46
Show Gist options
  • Save etheleon/0e4b38e62b911aa64f07ddb1bdd5cd46 to your computer and use it in GitHub Desktop.
Save etheleon/0e4b38e62b911aa64f07ddb1bdd5cd46 to your computer and use it in GitHub Desktop.
New mac setup

You got your machine, now you want to start working immediately on your 1st day at work. What do you do?

  1. Install iterm2
curl -O https://iterm2.com/downloads/stable/iTerm2-3_3_12.zip
  1. Install brew (and xcode)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  1. Install docker
https://download.docker.com/mac/beta/Docker.dmg

By default the memory given to containers in macOS installation is 2GB Preferences > Resource > Memory

  1. Pull image and start container
docker pull etheleon/data-science:gpu
docker run -it \
   --privileged  \
   -p 8888 -p 8000 -p 5000 \
   --name altimitus \
   -v /Users/uesu:/home/jovyan/work etheleon/data-science:gpu zsh
  1. Set up powerfonts / nerdfont
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
  1. Set up .gitconfig

The .gitconfig used in the image is generic please fill in your work email and name (this should follow your user name handle)

[user]
    name            = <github / gitlab> handle 
    email           = <github / gitlab> email

If you accidentally committed wrongly (default email ie. name email).

git rebase -i <SHA>

change to edit

git commit --amend --author="username <email>" --no-edit

Include brackets for <email>

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