Check the path of one executable:
type -a postgres
Check the path:
echo $PATH
import contextlib | |
@contextlib.contextmanager | |
def inner(): | |
try: | |
print("inner(): before yield") | |
yield "~~~message~~~" | |
print("inner(): after yield") | |
except Exception as e: | |
print("inner(): catch exception -- "+str(e)) |
Check the path of one executable:
type -a postgres
Check the path:
echo $PATH
pip install --user localstack
brew install nose
Modify ~/.zshrc
to add
export PATH="/Users/cynthia/Library/Python/3.6/bin:${PATH}"
Basically just spawn a new EC2 instance. I choose ubuntu 18.04 server, as Amazon 2 ECS optimized image doesn't have free tier. Log into the instance by
$ ssh ubuntu@<ec2-instance-ip>
No need to install git
. But to make git clone
works (even for public repo) I need to add my RSA key in this EC2 instance to github. Just follow this link to do so.
Follow this link to install docker.
sudo lsof -PiTCP -sTCP:LISTEN |
$ kubectl create clusterrolebinding MYNAME-cluster-admin-binding --clusterrole=cluster-admin --user=MYNAME@gmail.com | |
$ kubectl create namespace argocd | |
$ kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml | |
$ kubectl -n argocd get pods | |
NAME READY STATUS RESTARTS AGE | |
argocd-application-controller-5bc5cf665f-8hgl2 1/1 Running 0 70s | |
argocd-dex-server-b59646b69-7mktd 1/1 Running 0 70s | |
argocd-redis-868b8cb57f-lz7qj 1/1 Running 0 70s |