随笔分类 -  scripts

the scripts of works
摘要:1、官网 https://www.consul.io/docs/guides HTTP API | Consul by HashiCorp 2、docker hub https://hub.docker.com/_/consul/ 3、github https://github.com/hashic 阅读全文
posted @ 2022-08-01 12:06 代码诠释的世界 阅读(428) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11WGU6KG 2、一键替换(更快捷) 备份(备份是个好习惯) sudo cp /etc/apt/sources.list /etc/apt/s 阅读全文
posted @ 2022-08-01 10:26 代码诠释的世界 阅读(3244) 评论(0) 推荐(0) 编辑
摘要:1、pymongo官网 https://pypi.org/project/pymongo/ https://api.mongodb.com/ 2、github https://github.com/mongodb/mongo-python-driver 3、文档 https://www.osgeo. 阅读全文
posted @ 2022-07-30 21:58 代码诠释的世界 阅读(372) 评论(0) 推荐(0) 编辑
摘要:1. 官网 https://docs.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2 2、下载 3、下载帮助 https://d.serctl. 阅读全文
posted @ 2022-04-26 10:05 代码诠释的世界 阅读(123) 评论(0) 推荐(0) 编辑
摘要:1. 方法一:[[ "${array[@]}" =~ "字符串" ]] names="This is a computer , I am playing games in the computer" if [[ "${names[@]}" =~ "playing" ]]; then echo 'st 阅读全文
posted @ 2022-03-31 15:56 代码诠释的世界 阅读(717) 评论(0) 推荐(0) 编辑
摘要:1. 方法一:${JAVA_ALLOWED_VERSIONS[*]} =~ "$JAVA_VERSION" JAVA=`type -p java` JAVA_ALLOWED_VERSIONS=( "1.8" "11" ) # Work out the JAVA version we are work 阅读全文
posted @ 2022-03-31 15:51 代码诠释的世界 阅读(1311) 评论(0) 推荐(0) 编辑
摘要:1. 新建项目 2. 新建流水线项目 输入名称,选择流水线项目 3. 基础配置 4. 根据自己需求配置对应参数 4. 配置触发器 5. 配置触发器高级选项 6. 配置高级项目选项-流水线脚本 7. pipline脚本示例 pipeline { agent any stages { stage('Pr 阅读全文
posted @ 2021-12-22 14:37 代码诠释的世界 阅读(442) 评论(0) 推荐(0) 编辑
摘要:1. 先上简单代码 function echo_log(){ color=$1 msg=$2 current=`date "+%Y-%m-%d %H:%M:%S"` if [[ $color == "error" ]]; then echo -e "\033[31m [$current]|${BAS 阅读全文
posted @ 2021-07-13 16:11 代码诠释的世界 阅读(213) 评论(0) 推荐(0) 编辑
摘要:python 读取指定文本并拼接成指定的格式 文本内容如下: 阅读全文
posted @ 2019-05-01 13:40 代码诠释的世界 阅读(836) 评论(0) 推荐(0) 编辑
摘要:bat 读取指定文件的信息并拼接成指定格式 一般是指文本文件 @echo off set str='' setlocal enabledelayedexpansion for /f %%i in (number.txt) do ( set str=%%i echo !str! >> test.txt 阅读全文
posted @ 2019-05-01 13:38 代码诠释的世界 阅读(4510) 评论(2) 推荐(0) 编辑
摘要:shell脚本读取指定文件并拼接成指定的版本信息 阅读全文
posted @ 2019-05-01 13:36 代码诠释的世界 阅读(2027) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示