Skip to content

Instantly share code, notes, and snippets.

@calebwashburn
Last active November 15, 2020 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebwashburn/b98ef51d6adf495971b094f90b6443ea to your computer and use it in GitHub Desktop.
Save calebwashburn/b98ef51d6adf495971b094f90b6443ea to your computer and use it in GitHub Desktop.
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install git lastpass-cli go
lpass login caleb.washburn@me.com
# get SSH keys from lastpass
mkdir -p ~/.ssh
lpass show --name ssh-public --notes > ~/.ssh/id_rsa.pub
lpass show --name ssh-private --notes > ~/.ssh/id_rsa
chmod 0644 ~/.ssh/id_rsa.pub
chmod 0600 ~/.ssh/id_rsa
cat << EOF > ~/.ssh/config
UseKeychain yes
Host *
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
EOF
git clone git@github.com:calebwashburn/dotfiles ~/dotfiles
cd ~/dotfiles/bootstrapper
go build -o /usr/local/bin/bootstrapper ./cmd/bootstrapper/main.go
cd ..
bootstrapper steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment