Skip to content

Instantly share code, notes, and snippets.

@theantichris
Last active November 26, 2022 21:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save theantichris/3a64dc898d89f4cef68010da320ca7e6 to your computer and use it in GitHub Desktop.
Save theantichris/3a64dc898d89f4cef68010da320ca7e6 to your computer and use it in GitHub Desktop.
Steps for setting up new machines.

New MacOS 10 Setup

System Update

  1. Install any available system updates

System Preferences

  1. Dock > Minimize windows into application icon
  2. Dock > Automatically hide and show the Dock
  3. Spotlight > disable Allow Spotlight Suggestions in Look Up
  4. Accessibility > Pointer Control > enable Ignore built-in trackpad when mouse or wireless trackpad is present
  5. Accessibility > Pointer Control > Trackpad Options > Enable dragging > without drag lock
  6. Security & Privacy > General > Require password immediately after sleep or screen saver begins
  7. Security & Privacy > General > Advanced > Require an administrator password to access system-wide preferences
  8. Security & Privacy > FileVault > Turn On FileVault
  9. Security & Privacy > Firewall > Turn On Firewall
  10. Security & Privacy > Privacy > Analytics & Improvements > turn off all options
  11. Keyboard > Keyboard > Touch Bar shows F1 F2, etc. Keys
  12. Keyboard > Keyboard > Modifier Keys > switch Caps Lock Key and Control Key
  13. Keyboard > Input Sources > disable Show input in menu bar
  14. System Preferences > Trackpad > Tap to click

Finder Preferences

  1. View > Show Path Bar
  2. View > Show Status Bar

Safari Preferences

  1. General > disable Open "safe" files after downloading
  2. Search > disable Include Safari Suggestions

Homebrew

  1. Install Homebrew
    1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. Disable analytics
    1. export HOMEBREW_NO_ANALYTICS=1
    2. brew analytics off
  3. brew doctor
    1. Follow any advice

iTerm

  1. Install iTerm2
    1. brew cask install iterm2
  2. Profiles > add a new profile
    1. Other Actions > Set as Default
    2. Window > Columns > 125
    3. Window > Rows > 35
  3. iTerm2 > Install Shell Integration

SSH Keys

  1. Create SSH key
  2. Add this key to GitHub

GPG Keys

With GPG-Suite

  1. Install GPG-Suite
    1. brew cask install gpg-suite
  2. Run GPG Keychain and create a new key
  3. Copy the generated key
  4. Add this key to GitHub
  5. Add fingerprint to ~/.gitconfig

ZSH

  1. ohmyzshell
    1. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  2. zsh-autosuggestions
    1. git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    2. Add zsh-autosuggestions to plugins
  3. zsh-syntax-highlighting
    1. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    2. Add zsh-syntax-highlighting to plugins
  4. git
    1. git clone https://github.com/davidde/git.git ~/.oh-my-zsh/custom/plugins/git
    2. Add git to plugins
  5. Powerlevel10k
    1. brew install romkatv/powerlevel10k/powerlevel10k
      1. Add the following to .zshrc
        • source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
      2. Restart the terminal

Dotfiles

  1. Clone dotfiles
  2. Follow instructions in the README

Apps, Tools, Etc

  1. Google Chrome
    1. brew install --cask google-chrome
  2. Rectangle
    1. brew install --cask rectangle
  3. Alfred
    1. brew install --cask alfred
  4. Fira Code
    1. brew tap homebrew/cask-fonts
    2. brew install --cask font-fira-code
  5. GitHub CLI
    1. brew install gh
  6. Slack
    1. brew install --cask slack
  7. Discord
    1. brew install --cask discord
  8. 1Password
    1. brew install --cask 1password
  9. Tweetbot
    1. brew install --cask tweetbot
  10. Docker
    1. brew install --cask docker
  11. Zoom
    1. brew install --cask zoom
  12. Google Drive
    1. brew install --cask google-drive-file-stream
  13. Visual Studio Code
    1. brew install --cask visual-studio-code
  14. Miro
    1. brew install --cask miro
  15. ClickUp
    1. brew install --cask clickup
  16. act
    1. brew install act
  17. bat
    1. brew install bat
  18. Go
    1. brew install golang
  19. Heroku CLI
    1. brew tap heroku/brew && brew install heroku
  20. NVM
    1. Look up latest version of NVM
    2. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/VERSION/install.sh | bash
    3. nvm install node
  21. fast-cli
    1. npm install --global fast-cli
  22. trash-cli
    1. npm install --global trash-cli

New Windows 10 Setup

Apps

  1. Google Chrome
  2. 7-Zip
  3. Git
  4. VS Code
  5. Google Drive
  6. Slack
  7. Discord
  8. Cacher
  9. Insomnia
  10. PowerToys
  11. Windows Terminal
  12. Docker
  13. Steam
  14. GOG Galaxy
  15. Battle.net
  16. NZXT Cam
  17. Logitech Capture
  18. Fira Code
  19. GitHub Command Line
  20. SharpKeys

WSL

  1. Install WSL

Docker

  1. Enable Settings > General > Use the WSL 2 based engine
  2. Enable Settings > Resources > Enable integration with my default WSL distro
  3. Enable Settings > Resources > Enable integration with additional distros:

Cap WSL2 Memory

c:/Users/chris/.wslconfig

[wsl2]
memory=6GB

Generate SSH Key

  1. ssh-keygen -t rsa -b 4096 -C "chris@theantichris.com"
  2. eval "$(ssh-agent -s)"
  3. ssh-add ~/.ssh/id_rsa

Generate GPG Key

  1. gpg --gen-key
  2. gpg --list-secret-keys --keyid-format LONG
  3. gpg --armor --export <PASTE_LONG_KEY_HERE> > gpg-key.txt
  4. git config --global user.signingkey <PASTE_LONG_KEY_HERE>
  5. git config --global commit.gpgsign true
  6. export GPG_TTY=$(tty)

Install ZSH

  1. sudo apt install zsh
  2. chsh -s /usr/bin/zsh <USERNAME>
  3. Relog into computer
  4. wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
  5. Update your .zshrc file
  6. source ~/.zshrc
  7. Exit and reopen the terminal

Install Fast CLI

Fast CLI

  1. wget https://github.com/ddo/fast/releases/download/TAG/fast_linux_amd64
  2. sudo install fast_linux_amd64 /usr/local/bin/fast

Install Go

From Binary

  1. Download the latest version from https://golang.org/dl/
  2. sudo tar -C /usr/local -xzf <DOWNLOADED_ARCHIVE>
  3. export PATH=$PATH:/usr/local/go/bin
  4. go version to check install

From Apt

  1. sudo add-apt-repository ppa:longsleep/golang-backports
  2. sudo apt update
  3. sudo apt install golang-go
  4. go version to check install

Configure Git

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global rerere.enabled true

Global Ignore

  1. Create a .gitignore_global file in home directory
  2. git config --global core.excludesfile ~/.gitignore_global

NVM

  1. Download and run script from GitHub
  2. Add the following to .zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Yarn

  1. npm install -g yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment