Skip to content

Instantly share code, notes, and snippets.

@TheBoroer
Last active January 10, 2024 18:48
Show Gist options
  • Save TheBoroer/8d4ffedac25e2a2e22825c5066e415ca to your computer and use it in GitHub Desktop.
Save TheBoroer/8d4ffedac25e2a2e22825c5066e415ca to your computer and use it in GitHub Desktop.
Script to setup a general dev environment on a new mac
# WORK IN PROGRESS
brew update
# Install NVM
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
# To setup auto 'nvm use' follow instructions for zsh or bash here:
# https://github.com/nvm-sh/nvm#deeper-shell-integration
# Install yarn
npm install --global yarn
# Install useful python binaries:
brew install pipx
brew install pyenv
brew install pipenv
# ^^ apparently it's better to just do `pip install pipenv` instead because python versions change between macos updates and it breaks stuff?
brew install pyenv && brew install pyenv-virtualenv
# Setup some handy git aliases or config tweaks
git config --global alias.alias "git config --list | grep -E '^alias'"
git config --global alias.flpush "push --force-with-lease origin"
git config --global http.postBuffer 157286400
###
### Optional Tools/Apps - common things I use
###
# remote control for android devices
brew install android-platform-tools
brew install scrcpy
# mtr
brew install mtr
# DroneCI CLI tools
brew tap drone/drone
brew install drone
# mac address spoofer
brew install spoof-mac
# IPMI Tool
brew install ipmitool
# Mikrotik Winbox port (https://github.com/nrlquaker/winbox-mac)
brew install --cask nrlquaker-winbox
# heptapod - https://github.com/tg44/heptapod
# allows rules to exclude stuff like node_modules from time machine backups
brew tap heptapod
brew install heptapod
# use default ruleset
mkdir -p ~/.heptapod/rules
cp -R $(brew --prefix heptapod)/rules ~/.heptapod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment