Skip to content

Instantly share code, notes, and snippets.

@conbon
Last active Mar 8, 2022
Embed
What would you like to do?
Brewfile - local development
# Taps
tap "homebrew/cask"
tap "adoptopenjdk/openjdk"
tap "bufbuild/buf"
tap "FiloSottile/musl-cross"
tap "messense/macos-cross-toolchains"
# Casks - OSX only
# cask "vagrant"
# cask "docker"
cask "iterm2"
cask "visual-studio-code"
cask "sublime-text"
cask "spotify"
cask "rectangle"
cask "pycharm"
cask "postman"
cask "obsidian"
# linux/OSX
brew "zsh"
brew "gcc"
brew "libffi"
brew "pkg-config"
brew "python"
brew "go"
brew "rust"
brew "protobuf"
# cmd utils - gnu version maybe needed if others are working
# on *nix and write non portable scripts
brew "coreutils"
brew "grep"
brew "gnu-sed"
brew "watch"
brew "telnet"
brew "nvm"
brew "npm"
brew "maven"
brew "git-lfs"
brew "tree"
brew "jq"
brew "gh"
brew "buf"
brew "openssl"
#brew "musl-cross"
#brew "mingw-w64"
brew "x86_64-unknown-linux-gnu"
brew "aarch64-unknown-linux-gnu"
brew "htop"
brew "awscli"
brew "kubectl"
brew "kubectx"
brew "vault"
brew "kops"
brew "aws-iam-authenticator"
brew "aws-okta"
brew "tfenv"
brew "zeromq"
#!/bin/bash
set -exo pipefail
if [[ -z $1 ]]; then
echo "please supply a git user email address to configure"
exit 1
fi
git config --global user.email $1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/conalmclaughlin/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
curl -o Brewfile https://gist.githubusercontent.com/conbon/d5779a97de68d509523d75377b7c72e8/raw/81929d6e9964506d14fbf8ee666ee5f31a1912b6/Brewfile
# apple m1
softwareupdate --install-rosetta
# install bins
brew bundle
# set default shell & install ohmyzsh
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -s "https://get.sdkman.io" | /bin/bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
# krew kubectl plugin manager
(
set -x; cd "$(mktemp -d)" &&
OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
KREW="krew-${OS}_${ARCH}" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
tar zxvf "${KREW}.tar.gz" &&
./"${KREW}" install krew
)
echo 'export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"' >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment