Debian 11初始化脚本2021-11-15Debian参考 debian 10初始化脚本 此脚本比debian10初始化脚本略有变化,引用了一个环境变量$VERSION_CODENAME 示例 1 curl -fsSL https://raw.yanyong.cc/sh/debian11-init.sh | bash -s fqdn=blog.yanyong.cc user=yanyong port=23422Read more...
go/golang学习之路(1)go指南练习题解答2021-09-08go/golanggo指南练习题 练习:切片 https://tour.go-zh.org/moretypes/18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 package main import ( "math" "golang.org/x/tour/pic" ) func Pic(dx, dy int) [][]uint8 { pic := make([][]uint8, dy) for y := 0; y < dy; y++ { pic[y] = make([]uint8, dx) for x := 0; xRead more...
macOS常用工具推荐2021-08-02未分类macOS工具: 包管理器(必备神器):Homebrew 浏览器:Chrome,Safari 编辑器:MacVim,Visual Studio Code(VS),MacDown,ProperTree,Numbers,Pages,WPS 压缩:The UnarchiverRead more...
Docker安装各种软件参考示例2021-07-25未分类MariaDB 创建数据目录和配置文件 1 sudo mkdir -p /data/mariadb/{data,conf.d} 1 2 3 4 5 6 7 8 9 10 11 cat << EOF | sudo tee /data/mariadb/conf.d/my.cnf [mariadb] server_id=1 character-set-server=utf8mb4 # default collation-server=utf8mb4_general_ci # default lower_case_table_names=1 max_connections=10000 max_connect_errors=100000 innodb_buffer_pool_size=4294967296 # 4G. default 128M max_allowed_packet=1073741824 # 1G. default 16M EOF 如果镜像有安装tzdataRead more...
记录一次gitlab迁移,gitlab跨版本升级2021-07-01未分类官方迁移文档 确认gitlab版本 gitlab网页上help里查看,或命令查看,我这里版本是13.3.5 1 sudo docker exec gitlab cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 备份 1 2 3 4 5 6 7 sudo docker execRead more...