yum install --downloadonly --downloaddir=./yum-packages tree
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
# get k3s and disable traefik | |
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" INSTALL_K3S_EXEC="--disable=traefik" sh - | |
# install helm | |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | |
# install nginx ingress: https://kubernetes.github.io/ingress-nginx/deploy/#quick-start | |
helm upgrade --install ingress-nginx ingress-nginx \ | |
--repo https://kubernetes.github.io/ingress-nginx \ | |
--namespace ingress-nginx --create-namespace |
摘要算法: 返回固定长度的字符串
md5: 128 bit
SHA-1: 160 bit
SHA-2(SHA-256): 256 bit, 64 hex
加密算法
VsCode 本身对于 Markdown 编写来说是足够的,但是没有办法直接插入图片。在这里分享我最近查找到的一种方式,主要是利用 vs-picgo 这个插件来实现的,图片保存在了腾讯云的 COS 中。
Vscode 设置中插件的配置类似为
{
"picgo.picBed.tcyun.appId": "xxx",
"picgo.picBed.tcyun.secretId": "xxxx",
"picgo.picBed.tcyun.secretKey": "xxxx",
"picgo.picBed.current": "tcyun",
"picgo.picBed.tcyun.area": "ap-guangzhou",
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
package main | |
import ( | |
"fmt" | |
"strconv" | |
"encoding/hex" | |
) | |
func main() { | |
// "A" |
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
package main | |
import ( | |
"log" | |
"os/exec" | |
) | |
func main() { | |
cmd := exec.Command("aaa", "-za") | |
output, err := cmd.CombinedOutput() |
three parts
Major.Minor.Patch
increment Major
if make backward incompatible changes.
increment Minor
if make backward compatible changes, specially functionality not bug fix.
increment Patch
if make bug fix not affecting anything.
If version is released, you can't change it. You should make a new release if there is something to change.
upstream apachereadonly {
server 10.10.11.10:8011;
server 10.10.11.11:8011;
server 10.10.11.12:8011;
hash $remote_addr consistent;
}
Please note the ip_hash
of nginx only cares the first thress parts of client ip, so 10.0.0.1/24
all will go to the same backend server.
NewerOlder