🍎 All kind of Useful macOS Commands & Shortcuts
sudo scutil --set ComputerName prafaelo.com
sudo scutil --set LocalHostName prafaelo
dscacheutil -flushcache# homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"# // homebrew usefull commands
brew help # // show useful commands
brew update # // update to newest formula and homebrew
brew doctor # // perform troubleshooting
brew list -l # // list all installed formulae and casks# vagrant
brew install --cask vagrant
vagrant versionbrew install --cask virtualbox
# VBoxManage manual: https://www.virtualbox.org/manual/ch08.html
VBoxManage -versionbrew install --cask microsoft-remote-desktopbrew install git
PATH=/usr/local/git/bin:$PATH
git config --global user.name "prafaelo"
git config --global user.email "prafaelo@icloud.com"
git config -l #show all local git param# Github Desktop, see https://github.com/desktop/desktop
brew install --cask github# java
# // openjdk by AdoptOpenJDK and hostspot-vm
brew tap AdoptOpenJDK/openjdk
brew search adoptopenjdk
# // Force install JDK 16
brew install --cask adoptopenjdk16
java -version# vscode
brew install --cask visual-studio-code## Update default settings to my custom settings
cd /Users/si/Library/Application\ Support/Code/User/ && curl -O https://raw.githubusercontent.com/prafaelo/setup-my-mac/main/vscode/settings.json# Python3
## From https://formulae.brew.sh/formula/python@3.11
brew install python@3.11## Also https://docs.brew.sh/Homebrew-and-Python#python-3y
python3 -m pip install --upgrade setuptools # https://pypi.org/project/setuptools/
python3 -m pip install --upgrade pip # https://pip.pypa.io/en/stable/## Python Packages
pip3 install numpy # scientific computing: https://numpy.org/
pip3 install matplotlib # draft data plots: https://matplotlib.org/
pip3 install pandas # data manipulation: https://pandas.pydata.org
pip3 list