This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i yrm -g | |
npm init -y | |
npm i typescript -g | |
tsc --init | |
npm i webpack webpack-cli webpack-dev-server -D | |
npm i ts-loader typescript -D | |
npm i htlm-webpack-plugin -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://my-room-in-3d.vercel.app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helm install kubenetes-dashboard kubernetes-dashboard/kubernetes-dashboard --set service.type=NodePort,extraArgs="{--enable-insecure-login=true,--enable-skip-login=true,--disable-settings-authorizer=true}" | |
export NODE_PORT=$(kubectl get -n default -o jsonpath="{.spec.ports[0].nodePort}" services kubenetes-dashboard-kubernetes-dashboard) | |
export NODE_IP=$(kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}") | |
echo https://$NODE_IP:$NODE_PORT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set transaction isolation level read uncommitted; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://bohutang.me/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get the current branch name | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
# Get the JIRA number | |
JIRA=$(echo $BRANCH_NAME | grep -o -E '[0-9A-Z]+-[0-9]+') | |
#Check if this a normal commit, or an amend | |
IS_NORMAL_COMMIT=$(grep -c "$JIRA" $1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to_owned is like clone, | |
it move var from stack to heap, | |
it get the ownership, | |
it turn &str to String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sox -n -r 44100 -c 2 silence.wav trim 0.0 3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${env.RUN_DISPLAY_URL} blue ocean url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"registry-mirrors": [ | |
"https://docker.mirrors.ustc.edu.cn", | |
"https://registry.docker-cn.com", | |
"https://reg-mirror.qiniu.com", | |
"https://hub-mirror.c.163.com", | |
"https://mirror.ccs.tencentyun.com" | |
], | |
"debug": true, | |
"experimental": false |
NewerOlder