- nvm install [node 版本號] - 安裝特定版本的 nvm
- nvm list - 列出已安裝清單
- nvm use [node 版本號]
|
- curl -v -X POST https://api.sandbox.paypal.com/v2/checkout/orders \
- curl -v https://api.sandbox.paypal.com/v1/oauth2/token -H "Accept: application/json" -H "Accept-Language: en_US" -u "AcEkcPFFkElC0qzAacfvBobtUwNxxb85_I7-eUddJqQM6_xzWji8V4qAftA9BbZqqhbA825ZmnLY9DVr:EOVmL4X9qDK9PBatXRt2k5gZoJlMpw-WNWjEwRvmpvJHo5bmfBcQYH6G1-eLoYiEiIIUYqDsRhxb1gjl" -d "grant_type=client_credentials"
- curl -v -X POST https://api.sandbox.paypal.com/v1/payment-experience/web-profiles/ -H 'Authorization: Bearer <Access-Token>' -d '{
- >> "name": "ebayProfile",
- >> "presentation":
- >> {
- >> "logo_image": "https://www.paypal.com"
- >> },
- >> "input_fields":
- >> {
- >> "no_shipping": 1,
- >> "address_override": 1
- >> },
- >> "flow_config":
- >> {
- >> "landing_page_type": "billing",
- >> "bank_txn_pending_url": "https://www.paypal.com"
- >> }
- >> }'
|
- kubectl get nodes
- kubectl get namespaces
- kubectl get pods
- kubectl get services
- kubectl describe pod [pod name]
- kubectl describe node [node name]
- kubectl logs
- kbuectl api-resources
- kubectl config use-context docker-desktop
- ------------------------------------------------------
- helm get all istio-system -n istio-system
- helm get values istio-system -n istio-system
- helm get all default
- helm list --namespace default
- helm list --all-namespaces
- helm list -alll -defaut
- -------------------------------------------------
- choco upgrade kubernetes-helm skaffold docker-desktop istioctl gcloudsdk -y
- wsl --set-default-version 2
|
- skaffold run
- skaffold dev
|
Question:- where does luarocks install --tree /opt/lua_modules lua-resty-jwt 0.2.0-0 install files to ? -------/opt/lua_modules/share/lua/5.1
- how to generatee a docker image with docker file, how does dockerfile work?
|
Docker commands - docker-compose up -d //run the bat of docker
- docker build -t [image的名字] .
- //根据当前目录下的docker file,制作一个docker image,注意-t 后面跟的不是tag而是image的名字
- 还可以用-f 来指定docker文件的位置,一般就用 .(点)来表示当前目录比较方便,不易错。
- docker exec -it b52d8c8b94d4 /bin/bash //go into docker
- docker run -d -p 80:80 --name docker-tutorial docker101tutorial
- docker tag [who] [what]:比如:
- docker push casproteus/docker101tutorial
- docker images = docker image list = docker image ls //list all docker image
- docker ps = docker container list //list running docker container
- docker network list
- docker network inspect [network name]
- docker run -dit --name my_proj6 --network bridge [networkid]
- docker attach [container name]
- docker stop [container name]
- docker container prune
- docker image prune -a
- docker rm image mysql/mysql-server
|