References:
echo 'source ~/.zshrc' >> ~/.zsh_profile
source ~/.zsh_profile
Add LC_ALL
to .zsh_profile
.
echo 'export LC_ALL=en_US.UTF-8' >> ~/.zsh_profile
source ~/.zsh_profile
Install Xcode from App Store from https://apps.apple.com/sg/app/xcode/id497799835?mt=12.
Or install command line tools only.
xcode-select --install
Generate keys.
ssh-keygen -t rsa -C "[email protected]"
Copy public key to macOS clipboard.
pbcopy < ~/.ssh/id_rsa.pub
Add 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_profile
Verify Homebrew.
brew doctor
brew install gnupg
References:
Create the key.
gpg --full-generate-key
# use the following settings:
# - "RSA and RSA" key
# - 4096 bits
# - key does not expire
List keys.
gpg --list-secret-keys --keyid-format LONG
# Copy the `sec` key after `rsa4096/`
Export key.
gpg --armor --export [sec key] > ~/.gnupg/gpg_rsa.pub
Copy public key to macOS clipboard.
pbcopy < ~/.gnupg/gpg_rsa.pub
Add copied key to Github at https://github.com/settings/keys.
brew install git
Update 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 python
Update $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_profile
pip install virtualenv
Install 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 | zsh
Update Terminal's environment.
source ~/.zsh_profile
Install NodeJS.
nvm install node
References:
Add GPG keys.
gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Install RVM.
\curl -sSL https://get.rvm.io | zsh -s stable
Get list of known Rubies.
rvm list known
Install the latest version of Ruby.
# install the latest listed version.
rvm install 2.6
Install MySQL Community Server from https://dev.mysql.com/downloads/mysql/.
Or install from Homebrew.
brew install mysql
Install 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-cli
Login to Azure.
az login
References:
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.sh
Initialise the SDK.
cd ~/google-cloud-sdk
./bin/gcloud init