Skip to content

Instantly share code, notes, and snippets.

@robjwells
Last active December 11, 2019 14:55
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 robjwells/2325d2fd3ad816944375a3d9f81699e4 to your computer and use it in GitHub Desktop.
Save robjwells/2325d2fd3ad816944375a3d9f81699e4 to your computer and use it in GitHub Desktop.
set -euf -o pipefail
cd $HOME/Desktop/
rm -r 'imac-setup' || true
mkdir -p 'imac-setup'
cd 'imac-setup'
xcode-select --install || true
curl -s --show-error https://bootstrap.pypa.io/get-pip.py | sudo /usr/bin/python
pip install --user ansible
# Put system Python 2.7 pip directory on path
PATH="$HOME/Library/Python/2.7/bin/:$PATH"
git clone https://github.com/geerlingguy/mac-dev-playbook.git
cd mac-dev-playbook/
# Config last updated 16:00 2019-09-01
CONFIG='https://gist.githubusercontent.com/robjwells/d5dad7685e54af79a2c13c98f02fe38d/raw/a361139a0e81dc7b527e83d7ef7bcf8b859e2923/config.yml'
curl -s --show-error -O $CONFIG
sudo ln -s "/Users/sport/Library/Python/2.7/lib/python/site-packages/ansible" "/etc/ansible" || true
ansible-galaxy install -r requirements.yml
ansible-playbook main.yml -i inventory -K
pip3 install -U pip setuptools boto3 docopt requests beautifulsoup4
cd "$HOME/Downloads/"
http --download "http://download.support.xerox.com/pub/drivers/CQ8570/drivers/macos1012/pt_BR/XeroxPrintDriver_5.1.0_2110.dmg"
open "XeroxPrintDriver_5.1.0_2110.dmg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment