Skip to content

Instantly share code, notes, and snippets.

@almunnings
Last active May 29, 2023 23:18
Show Gist options
  • Save almunnings/08f8aa812344d12106def5be725ccc31 to your computer and use it in GitHub Desktop.
Save almunnings/08f8aa812344d12106def5be725ccc31 to your computer and use it in GitHub Desktop.
@almunnings developer stack setup

Instructions for Apple Silicon MacOS 13+
Essential settings and utilities for developers.

Brew

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Configure SSH

Generate a 4096bit ssh key if you dont already have one.

[ ! -f ~/.ssh/id_rsa ] && ssh-keygen -q -t rsa -b 4096 -N '' -f ~/.ssh/id_rsa <<<y >/dev/null 2>&1 || true

Configure Git

echo "Your name:"; read NAME; git config --global user.name "$NAME";
echo "Your git email:"; read EMAIL; git config --global user.email "$EMAIL";
git config --global --add safe.directory /app

Docker

brew install --cask --force docker

Lando

brew install --cask lando

Lando Jail

Basic strategy to segregate lando.

mkdir -p ~/.lando-home-jail/.ssh
echo "home: '$HOME/.lando-home-jail'" >~/.lando/config.yml

cp -fR ~/.gitconfig ~/.lando-home-jail
cp -fR ~/.ssh/id_rsa ~/.lando-home-jail/.ssh

GovCMS

brew tap pygmystack/pygmy
brew install pygmy
brew install ahoy

OhMyZSH

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/HEAD/tools/install.sh)"

NVM

mkdir -p ~/.nvm
brew install -f nvm

PVM

Python Version Manager. Documentation assumes you can run pyenv install in a repository root to get the correct python version. These instructions set your global to Python 2. Look for .python-version files as an indication you may need a different version.

brew install -f pyenv
pyenv install -f 2.7.18
pyenv global 2.7.18

PHP

brew install -f [email protected]

1Password CLI

Some documentation will instruct you to access secrets from 1password CLI.

brew install 1password-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment