摘要:
Replace environment variables in a file with their actual values? # config.xml <property> <name>instanceId</name> <value>$INSTANCE_ID</value> </proper 阅读全文
摘要:
REF: grpc golang example Golang gRPC In-Depth Tutorial [Create Server & Client] This is a simple and good example. grpcurl -import-path ./proto -proto 阅读全文
摘要:
How to define global shell functions in a Makefile? makfile with shell code block and function 阅读全文
摘要:
we use ubuntu as example: open the ubuntu docker hub, https://hub.docker.com/_/ubuntu # with the right sha256, can works, suffix with 20 docker pull u 阅读全文
摘要:
Golang test https://go.dev https://go.dev/testing/ Users who want to have more control over which packages are included for coverage can build with th 阅读全文
摘要:
json(JSON标签) orm(Beego标签)、gorm(GORM标签)、bson(MongoDB标签)、form(表单标签)、binding(表单验证标签) Go系列:结构体标签 阅读全文
摘要:
https://stackoverflow.com/questions/29396154/jq-setdiff-of-two-arrays 1. echo -n '{"all":["A","B","C","ABC"],"some":["B","C"]}' | jq '. as $d | .all | 阅读全文
摘要:
ns=${ns:-maestro-platform-system} secret=${secret:-maestro-ca} kubectl get secret -n $ns $secret -o jsonpath='{.data.*}' | base64 -d | openssl x509 -n 阅读全文
摘要:
How To Use Bash Wildcards For Globbing? shell中的文件名扩展和通配符的使用说明 10 Practical Examples Using Wildcards to Match Filenames in Linux 阅读全文
摘要:
1. use awk https://stackoverflow.com/questions/2371248/how-to-convert-timestamps-to-dates-in-bash https://www.oreilly.com/library/view/learning-awk-pr 阅读全文