<commit_before># New computer setup

---

## If second-hand
### Format the drive

1. Restart with cmd-R or cmd-D
2. Erase drive / 3x if second-hand
3. Reinstall MacOS

---

## First boot

### Change system password.

### System Prefs
```
  Network
      add Google DNS (https://developers.google.com/speed/public-dns/)
      8.8.8.8
      172.16.58.3
      add Open DNS (http://www.opendns.com/opendns-ip-addresses/)
      208.67.222.222
      208.67.220.220
```


### Setup SSH keys for Github

- Setup ssh keys for github use:
  ```
  cd ~/.ssh && sshkey # github_rsa
  ```
- Start the ssh-agent:
  ```
  eval "$(ssh-agent -s)"
  ```
- Add the ssh key to the agent:
  ```
  ssh-add -K ~/.ssh/github_rsa # -K for Mac OS X keychain persistence
  ```
- Get copy of public key:
  ```
  pbcopy < ~/.ssh/github_rsa.pub # paste into GitHub GUI
  ```
- Test setup:
  ```
  ssh -T git@github.com
  ```

### Clone dotfiles repo via SSH

```
cd ~
git clone git@github.com:phamann/dotfiles.git
mv -r dotfiles .dotfiles
```

### Run doftiles bootscript

```
cd ~/.dotfiles
script/bootstrap
```

### Post bootscript setup

- Restart iTerm
- Re-install [vim-colors-solarized](https://github.com/altercation/vim-colors-solarized)
- `cd ~/.dotfiles/vim.symlink/bundle && git clone git://github.com/altercation/vim-colors-solarized.git`
- Test vim setup
- Test tmux setup
- Sync iTerm preferences via Copy

### <commit_msg>Update github ssh setup<commit_after># New computer setup

---

## If second-hand
### Format the drive

1. Restart with cmd-R or cmd-D
2. Erase drive / 3x if second-hand
3. Reinstall MacOS

---

## First boot

### Change system password.

### System Prefs
```
  Network
      add Google DNS (https://developers.google.com/speed/public-dns/)
      8.8.8.8
      172.16.58.3
      add Open DNS (http://www.opendns.com/opendns-ip-addresses/)
      208.67.222.222
      208.67.220.220
```


### Setup SSH keys for Github

- Setup ssh keys for github use:
  ```
  ssh-keygen -t rsa -b 4096 -C "<EMAIL>"
  ```
- Start the ssh-agent:
  ```
  eval "$(ssh-agent -s)"
  ```
- Add the ssh key to the agent:
  ```
  ssh-add -K ~/.ssh/id_rsa # -K for Mac OS X keychain persistence
  ```
- Get copy of public key:
  ```
  pbcopy < ~/.ssh/id_rsa.pub # paste into GitHub GUI
  ```
- Test setup:
  ```
  ssh -T git@github.com
  ```

### Clone dotfiles repo via SSH

```
cd ~
git clone git@github.com:phamann/dotfiles.git
mv -r dotfiles .dotfiles
```

### Run doftiles bootscript

```
cd ~/.dotfiles
script/bootstrap
```

### Post bootscript setup

- Restart iTerm
- Re-install [vim-colors-solarized](https://github.com/altercation/vim-colors-solarized)
- `cd ~/.dotfiles/vim.symlink/bundle && git clone git://github.com/altercation/vim-colors-solarized.git`
- Test vim setup
- Test tmux setup
- Sync iTerm preferences via Copy

### 
{'fraction_non_alphanumeric': 0.15875265768958186, 'fraction_numerical': 0.028348688873139617, 'mean_word_length': 2.7390728476821193, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5459514', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1020, 'n_words': 286}