Skip to content

yi-le/LifeExperience

Repository files navigation

Life Experience

Good good study, day day up

How to write a README.md

click me

Use pyenv to install python on macOS Mojave

CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install -v 3.7.2

SSH Port Forwarding

click me

Find Container's Internal IP address

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${CONTAINER_ID}

What should you do if kubectl can't find the cluster

kubectl config set-cluster demo-cluster --server=http://master.example.com:8080
kubectl config set-context demo-system --cluster=demo-cluster
kubectl config use-context demo-system
kubectl get nodes

Find and restore a deleted file in a Git repository

git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"

Set default java version in Mac

/usr/libexec/java_home -V
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

About

Good good study, day day up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages