References:
echo 'source ~/.zshrc' >> ~/.zsh_profile
source ~/.zsh_profileAdd LC_ALL to .zsh_profile.
echo 'export LC_ALL=en_US.UTF-8' >> ~/.zsh_profile
source ~/.zsh_profileInstall Xcode from App Store from https://apps.apple.com/sg/app/xcode/id497799835?mt=12.
Or install command line tools only.
xcode-select --installGenerate keys.
ssh-keygen -t rsa -C "[email protected]"Copy public key to macOS clipboard.
pbcopy < ~/.ssh/id_rsa.pubAdd copied public key to Github at https://github.com/settings/keys.
References:
Install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Update $PATH in .zsh_profile.
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zsh_profile
source ~/.zsh_profileVerify Homebrew.
brew doctorbrew install gnupgReferences:
Create the key.
gpg --full-generate-key
# use the following settings:
# - "RSA and RSA" key
# - 4096 bits
# - key does not expireList keys.
gpg --list-secret-keys --keyid-format LONG
# Copy the `sec` key after `rsa4096/`Export key.
gpg --armor --export [sec key] > ~/.gnupg/gpg_rsa.pubCopy public key to macOS clipboard.
pbcopy < ~/.gnupg/gpg_rsa.pubAdd copied key to Github at https://github.com/settings/keys.
brew install gitUpdate global configuration.
git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"References:
- https://docs.python-guide.org/starting/install3/osx/
- https://gist.github.com/patriciogonzalezvivo/77da993b14a48753efda
brew install pythonUpdate $PATH in .zsh_profile.
# note the correct path to brewed Python after installing
# or check with `brew info python`
echo 'export PATH="/usr/local/opt/python/libexec/bin:$PATH"' >> ~/.zsh_profile
source ~/.zsh_profilepip install virtualenvInstall NVM.
# check https://github.com/nvm-sh/nvm for the latest version of NVM to install
\curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | zshUpdate Terminal's environment.
source ~/.zsh_profileInstall NodeJS.
nvm install nodeReferences:
Add GPG keys.
gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDBInstall RVM.
\curl -sSL https://get.rvm.io | zsh -s stableGet list of known Rubies.
rvm list knownInstall the latest version of Ruby.
# install the latest listed version.
rvm install 2.6Install MySQL Community Server from https://dev.mysql.com/downloads/mysql/.
Or install from Homebrew.
brew install mysqlInstall MySQL Workbench from https://dev.mysql.com/downloads/workbench/.
Install Docker from https://docs.docker.com/docker-for-mac/install/.
References:
Install Azure CLI.
brew install azure-cliLogin to Azure.
az loginReferences:
Download the SDK from https://cloud.google.com/sdk/docs/ to $HOME, then extract the ZIP.
Update $PATH in ~/.zsh_profile.
cd ~/google-cloud-sdk
./install.shInitialise the SDK.
cd ~/google-cloud-sdk
./bin/gcloud init