Skip to content

Instantly share code, notes, and snippets.

Last active December 4, 2017 16:29
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Setting up on a Mac


Hard Drive Encryption

Encrypt your hard drive by activating FileVault in System Preferences > Security & Privacy. A recovery key will be generated which will allow access to your encrypted hard drive in the case of a forgotten password. Store this key securely (do not select the option to store your key with Apple).

Dev Environment

1. Install Homebrew:

ruby -e "$(curl -fsSL"

2. Install VS Code

Download at

Open VS Code, press ⇧Shift ⌘Command P, and type shell command to run Shell Command: Install 'code' command in PATH. (more info / pictures)

3. Install Git with bash completion:

brew install git bash-completion

Once that's finished, open your .bash_profile in VS Code.

code ~/.bash_profile

If you don't have a .bash_profile yet, this will create a new file. add the line from Homebrew to finish installation:

[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion

Then save your changes.

4. Install Node

brew install node

5. Install the N node version manager

npm install -g n

6. Install the Long Term Support release

n lts
node --version

should now return the version you selected.


Install GPG Suite

Set up GPG Suite

Download, install, and run it (the app: GPG Keychain Access).

Generate your PGP Key

The first time you run GPG Keychain Access, it will prompt you to generate your key. The default settings are good, don't forget to check the "upload to keyserver" box. Try to use a secure password, but not one you will forget. If you lose your password, it is impossible to recover. Consider using a password manager.

Download other peoples' public keys

When you're finished, you'll have only your keys in GPG Keychain Access. To be most effective, you'll need some other PGP keys. From the Key menu (in the very top, Mac menu bar), select Search for Key....

Type and click search. When the results are returned, simply press Retrieve Key to import the PGP keys of all BitPay employees. Now you can send encrypted emails to any member of the BitPay team.

Get familiar with PGP

Explore the key listing in GPG Keychain Access. Learn about PGP key signing, and trade signatures with some other people to build your key's "Web of Trust".

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