Skip to content

Instantly share code, notes, and snippets.

@rmacian
Last active April 20, 2022 13:46
Show Gist options
  • Save rmacian/be463fd2a90bcd819c8a5c45eda645dd to your computer and use it in GitHub Desktop.
Save rmacian/be463fd2a90bcd819c8a5c45eda645dd to your computer and use it in GitHub Desktop.
mac first steps

ohmyzsh:

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

non-breaking space:

mkdir ~/Library/KeyBindings
cat <<EOT >> ~/Library/KeyBindings/DefaultKeyBinding.dict
{
"~ " = ("insertText:", " ");
}
EOT

python & virtualenvs:

brew install python3
pip3 install virtualenv virtualenvwrapper
cat <<EOT >> ~/.zshrc
#path
export PATH=/usr/local/share/python:$PATH
# Configuration for virtualenv
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source /usr/local/bin/virtualenvwrapper.sh
EOT
mkvirtualenv ansible-2.9

disable cisco umbrella:

cd /usr/local/bin
curl -LO https://git.io/umbrellactl
chmod 755 umbrellactl
./umbrellactl -d

git ssh key:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
# copy to clipboard and paste in github
pbcopy < ~/.ssh/id_rsa.pub

azure:

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