# M2 Setting Process ## ssh key ```shell= # generate ssh key ssh-keygen ``` Update ssh key of each service 1. dev.pdogs.ntu.im 2. prod1.pdogs.ntu.im 3. prod2.pdogs.ntu.im 4. gitlab 5. github 6. ntuim gitlab ## zsh setting ```shell= # .zshrc alias pip="pip3" alias python="python3.10" alias ll="ls -laG" alias la="ls -a" # PDOGS alias dev="ssh wsa2002@dev.pdogs.ntu.im" alias prod1="ssh wsa2002@prod1.pdogs.ntu.im" alias prod2="ssh wsa2002@prod2.pdogs.ntu.im" ``` ## git config ```shell= [alias] ck = checkout cb = checkout -b cm = commit -m stat = status branch-name = "!git rev-parse --abbrev-ref HEAD" publish = "!git push -u origin $(git branch-name)" dev = checkout develop main = checkout main now = rev-parse --abbrev-ref HEAD master = checkout master pub = publish ``` ## brew ```shell= /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" echo ‘eval $(/opt/homebrew/bin/brew shellenv)’ >> ~/.zprofile eval $(/opt/homebrew/bin/brew shellenv) ``` ## docker ```shell= brew install docker ``` or Download docker desktop from [here](https://www.docker.com/products/docker-desktop/) ## poetry reference: https://python-poetry.org/docs/ ```shell= curl -sSL https://install.python-poetry.org | python3 - ``` ``` poetry init poetry shell ``` - install package ``` poetry add <package> ``` ## Other Apps * PyCharm * DataGrip * GoLand * Sublime Text * VsCode * Pulse Secure
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up