08 2022 档案
摘要:【翻译】一个成功的 Git 分支模型 在这篇文章中,我将向你们介绍一个开发模型,早在差不多一年前,我已经将这个模型应用于我的多个项目,而事实证明,这个模型是非常成功的。其实这篇文章我早就打算写了,只是一直没有时间,直到现在。在这篇文章中我将不会谈及任何项目细节,分支策略和发布管理才是本文的核心内容。
阅读全文
摘要:#!/bin/bash # qcow2 模板文件路径和md5 #qcow2TemplatePath=/var/lib/libvirt/images/wangrui/CentOS-7.0.2009-template-none-50G.qcow2 #qcow2TemplateMD5=4941c69a7e
阅读全文
摘要:当我们频繁使用 Linux 命令行时,有效地使用历史记录,可以大大提高工作效率。 在平时 Linux 操作过程中,很多命令是重复的,你一定不希望大量输入重复的命令。如果你是系统管理员,你可能需要对用户操作进行审计,管理好 Linux 命令历史记录显得非常重要。 今天我们来介绍一下,在 Linux 使
阅读全文
摘要:Linux 最重要的三个命令在业界被称为三剑客,它们是:awk、sed、grep。sed 已经在上篇中讲过,本文要讲的是 grep 命令。 我们在使用 Linux 系统中,grep 命令的使用尤为频繁,熟练掌握 grep 的常见用法,能够极大地提高你的工作效率。 grep 命令是一种强大的文本搜索工
阅读全文
摘要:1、下载 golang 安装包 curl -O https://go.dev/dl/go1.19.linux-amd64.tar.gz 2、解压安装 rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz 3、
阅读全文
摘要:1、下载解压 git 源代码 curl -O https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.37.2.tar.gz tar -xvf git-2.37.2.tar.gz cd git-2.37.2 2、安装依赖包 yum ins
阅读全文
摘要:go-proxy-pass.go package main import ( "flag" "fmt" "log" "net/http" "net/http/httputil" "net/url" "os" "strconv" "strings" "time" ) const ( timeForma
阅读全文
摘要:一键生成TLS和CA证书 auto-generate-docker-tls-ca.sh: # !/bin/bash # 一键生成TLS和CA证书 # Create : 2021-08-25 # Update : 2021-08-25 # @Autor : wuduoqiang # 服务器主机名 SE
阅读全文
摘要:去除注释: cat /etc/ssh/sshd_config | grep -v ^# 去除空行: cat /etc/ssh/sshd_config | grep -v ^$ 去除注释及空行: cat /etc/ssh/sshd_config | grep -v ^# | grep -v ^$
阅读全文
摘要:vi ~/.docker/config.json { "proxies":{ "default":{ "httpProxy":"socks5h://192.168.36.106:7890", "httpsProxy":"socks5h://192.168.36.106:7890", "noProxy
阅读全文
摘要:pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple
阅读全文