Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Last active September 28, 2019 15:55
Show Gist options
  • Select an option

  • Save wpsmith/86d3a384badf30def722d45c25d9e913 to your computer and use it in GitHub Desktop.

Select an option

Save wpsmith/86d3a384badf30def722d45c25d9e913 to your computer and use it in GitHub Desktop.
ssh-keygen -t rsa -b 4096 -C "[email protected]"
sudo yum update -y
sudo yum install git curl make bison gcc glibc-devel -y
# Install GVM
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
source /home/ec2-user/.gvm/scripts/gvm
# Add to ~/.bash_profile
echo 'source /home/ec2-user/.gvm/scripts/gvm' >>~/.bash_profile
# Install GO & set to 1.12.9
gvm install go1.13 -B
gvm install go1.12.9 -B
gvm use go1.12.9 --default
# Fix git
git config --global url."[email protected]:".insteadOf "https://github.com/"
# Add some basics
echo 'source /home/ec2-user/go/src/github.com/wpsmith' >>~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment