Sharp tools make good work.

Daily Tools

Terminal

## download z.sh, and then put it at your favorite place
wget https://raw.githubusercontent.com/rupa/z/master/z.sh

## add z.sh to the .zashrc
# method 1
# vi .zashc
# method 2
echo 'path/to/z.sh' >> ~/.zshrc

## reload 
source ~/.zshrc

Coding

  • Xcode - App Store
  • VSCode Download
  • VSCode Plugin List
    • Visual Studio IntelliCode
    • (ES6) code snippets
    • ES7 React/Redux/GraphQL/React-Native snippets
    • Vetur
    • Volar
    • Prettier — Code formatter
    • ESLint
    • EditorConfig for VS Code
    • dotenv
    • Path Intellisense
    • Auto Rename Tag
    • Code Runner
    • filesize
    • GitLens
    • Better Comments
    • Code Spell Checker

Package Manager

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

You might encounter the error message brew not found when you type brew on your terminal due to the wrong path. First check the place where your brew is installed,

~ which brew
# /opt/homebrew/bin/brew

then add it to the global PATH env as follows.

export PATH=$HOME/bin:/usr/local/bin:/opt/homebrew/bin:$PATH

pip

python -m ensurepip --upgrade

wget  https://bootstrap.pypa.io/get-pip.py

python get-pip.py

nvm

We use nvm to manage different versions of node.

brew install nvm

nvm install v16.13.1

nvm ls
nvm ls-remote

Git

brew install git

# identity
git config --global user.name 'yourname'
git config --global user.email 'xx@163.com'


# view your config
vi ~/.gitconfig
# or
git config --list


git config --global init.defaultBranch main
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.glog  'log --all --decorate --oneline --graph'

# remove
git config --global --unset alias.co

# clean branches
## look up
git br | grep 'pattern'
## delete it
git br | grep 'pattern' | xargs git branch -D

Download

English

Vocabulary

Paraphrase

FrontEnd

Fundamentals

Advanced

Database

Data Science

Statistics

Visualisation

Machine Learning

Deep Learning

Complexity