- 博客(158)
- 资源 (10)
- 收藏
- 关注
原创 Linux学习之现代版linux命令
https://github.com/sharkdp/bathttps://github.com/Peltoche/lsdhttps://github.com/ogham/exahttps://github.com/dandavison/deltahttps://github.com/bootandy/dusthttps://github.com/muesli/dufhttps://github.com/Canop/broothttps://github.com/dalance/procsh
2021-07-01 10:14:50 394
原创 Linux学习之文件系统zfs文件系统之zpool命令详解
ZPOOL(8) System Manager's Manual ZPOOL(8)NAME zpool — configure ZFS storage poolsSYNOPSIS zpool -? zpool.
2021-06-29 23:17:32 10168
原创 Ubuntu实用技巧之ubuntu 20.04 安装 synergy
Ubuntu实用技巧之ubuntu 20.04 安装 synergy下载安装运行下载ubuntu 20.04 要 下载 个 synergy_1.8.8-stable+dfsg.1-1build1_amd64.deb 版本, 对应的windows 也要安装个相同的版本的.在这里下载 https://launchpad.net/ubuntu/+source/synergy, 妈的百度了半天才找到,要是用谷歌估计一下子就找到了.垃圾百度.synergy Share mouse, keyboard an
2021-06-29 13:24:28 2314
原创 Linux学习之文件系统 ZFS - 文件系统简介
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar
2021-06-29 13:16:45 265
原创 jenkins学习之Jenkins插件页面的一个报错
首先从 doCheckUpdatesServer() 这里 开始 执行 start(),在执行 start 方法之前需要初始化 updateServerRetrier变量,FormValidation result = updateServerRetrier.start();在 Retrier.java 类中的 有个 start() 方法,中会执行 result = callable.call(); 这个。这个callable 是什么呢?看 doCheckUpdatesServe.
2021-04-17 23:00:02 1060
原创 Ubuntu学习巧用systemd实现个ssh端口转发服务
新建 /etc/systemd/system/ssh-proxy.service文件[Unit]Description=ssh proxy from HKAfter=network.target[Service]User=user # 这里是ubuntu系统建的一个账号。最好上非root的Group=userRestart=on-failureRestartSec=5ExecStart=/usr/bin/ssh -p 2222 -N -D 127.0.0.1:<port>
2021-04-12 15:26:51 485
原创 Linux学习之文件系统zfs文件系统
ZFS(Zettabyte File System)一个打破过去思维的文件系统,是 Sun Microsystems这家公司所开发出来的全新型态文件系统,因为License的问题所以目前只有在Solaris、Mac、BSD上看得到,ZFS是128bit的文件系统,而它到底有多强呢?别再等待了马上用了你就知道,只能说ZFS真是一个上帝赐给IT人员的好礼物。...
2021-02-19 15:55:08 9452 1
原创 ELK学习之elasticsearch的安装之Ubuntu上安装kibana
https://www.elastic.co/guide/en/kibana/current/deb.html使用apt安装wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -sudo apt-get install apt-transport-httpsecho "deb https://artifacts.elastic.co/packages/7.x/apt stable ma
2021-02-01 14:13:22 232
原创 ELK学习之elasticsearch的安装之Ubuntu上安装elasticsearch
https://www.elastic.co/guide/en/elasticsearch/reference/7.10/deb.html#debInstall Elasticsearch with Debian Packagewget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -sudo apt-get install apt-transport-httpsecho "deb htt
2021-02-01 11:17:13 753
原创 Linux学习之bash学习之在bash中=和=~的区别
怎么理解 bash [[]] 判断中的 = 和 =~ 这2个判断呢??if [[ 23ab = *ab ]] ; then echo yes; fi[[$a=~$b]] 是正则表达式匹配。在这种语法中,*匹配前一个字符或模式的0-n个实例。是正则表达式if [[ 23ab =~ [0-9]{1,2}ab ]] ; then echo yes; fi 是一个glob的模式匹配。在此语法中,*匹配任何类型的0-n个字符。 和正则还是有点区别的。https://en.wikipedia.org
2021-01-27 10:48:33 4546
原创 jenkins学习之Jenkins流水线when条件判断执行
流水线中如何使用条件判断来决定某个stage是否需要执行呢?答案是 使用 when 这个闭包。 when 放到 stage 中使用,条件成立 就会执行 下面的 step是中的语句的。Conditionals in a Declarative Pipeline Jenkinsfile例子1pipeline { agent any parameters { choice( choices: ['greeting' , 'silence'],
2021-01-23 18:22:06 11069 1
原创 jenkins学习之Jenkins流水线中parallel中的并发数
Jenkins流水线怎么限制parallel并发个数呢?Throttle parallel step in pipeline script https://issues.jenkins.io/browse/JENKINS-46236stage('Test') { steps { script { testing_closures = [one: { print("starting one"); sleep 10; print("finishing one") },
2021-01-22 17:39:58 2128
原创 jenkins学习之Jenkins流水线parallel并发执行
pipeline { agent any stages { stage('BuildAll') { parallel { stage('build-win') { steps { sh "env | grep -i NODE_NAME" runParallel items: ("a"..
2021-01-22 16:08:45 4680 1
原创 jenkins学习之Jenkins流水线中load其他groovy文件
steps { script { def util = load("${env.WORKSPACE}/scripts/build_util.groovy") util.runStep1() } } steps { script { ...
2021-01-13 17:29:56 2159
原创 jenkins插件学习之build-user-vars-plugin
插件源码地址 https://github.com/jenkinsci/build-user-vars-plugin问题背景之前有写过 一篇 https://blog.csdn.net/mmh19891113/article/details/105747729 一直在使用 BuildUserVars 和 BuildNameDescriptionSetter 这2个插件,当然是在自由风格的job中使用的,但是当我们转到 流水线 风格的job时候 发现 build-user-vars-plugin 不太
2020-11-22 10:42:40 1452
原创 jenkins学习之Jenkins流水线中怎么使用全局变量
https://stackoverflow.com/questions/53541489/updating-environment-global-variable-in-jenkins-pipeline-from-the-stage-level/53541813pipeline { agent any environment { FOO = "initial FOO env value" } stages { stage("Stage
2020-11-20 20:01:44 2403 2
原创 jenkins学习之Jenkins历史任务构建时间引发的思考
我们在使用jenkins的过程中有没有发现 历史任务 那里的构建时间的格式 是不是怪怪的???看着不习惯,例如某个任务显示是"上午 00:30" ,感觉很怪。是不是显示的12小时制格式的时间???而且看着还挺奇怪的。参考这个 https://github.com/jenkinsci/localization-zh-cn-plugin/issues/79https://bugs.openjdk.java.net/browse/JDK-7087304[zh_CN]DateFormat: Inco
2020-10-21 20:28:54 1018
原创 gerrit源码分析之ls-user-refs命令的实现
from https://blog.csdn.net/czq7511/article/details/73610510本文章主要记录本人在学习开发Gerrit插件过程中的一些心得,一些零零碎碎的资料:一、关于插件jar的META-INF/MANIFEST.MF文件:这个文件的主要作用是记录一些有关这个jar的属性,以便被识别、引用或加载,也可以理解为是这个jar的配置文件。这里举些例子:Manifest-Version: 1.0----配置版本号。如果日后要做升级兼容的话,可以利用这个属性。
2020-08-27 20:25:53 767
原创 github学习之githubAPI详解
https://api.github.com/orgs/mamh-java/repos?page=0&per_page=1[ { "id": 146588718, "node_id": "MDEwOlJlcG9zaXRvcnkxNDY1ODg3MTg=", "name": "gerrit-java-client", "full_name": "mamh-java/gerrit-java-client", "private": false, "ow
2020-08-26 20:55:00 2570
原创 Linux学习之Advanced-Bash-Scripting-Guide
http://www6.uniovi.es/LDP/LDP/abs/html/abs-guide.html
2020-08-26 09:19:08 265
原创 jenkins学习之Jenkins外部任务项目
今天介绍一下jenkins的不同项目类型之外部任务项目External Monitor Job Type1.7Jenkins is useful for monitoring the non-interactive execution of processes, such as cron jobs, procmail, inetd-launched processes. Often those tasks are completely unmonitored (which makes it hard f
2020-08-22 20:50:42 913
原创 jenkins插件学习之throttle-concurrent-builds-plugin之一
今天介绍一个插件 throttle-concurrent-builds-pluginhttps://github.com/jenkinsci/throttle-concurrent-builds-pluginThis plugin allows for throttling the number of concurrent builds of a project running per node or globally.throttle 有节流的意思,也就是限制 某个任务同时并发的个数的。下面分别的讲
2020-08-22 19:24:40 1161
原创 jenkins插件学习之throttle-concurrent-builds-plugin之二
今天介绍一个插件 throttle-concurrent-builds-pluginhttps://github.com/jenkinsci/throttle-concurrent-builds-pluginThis plugin allows for throttling the number of concurrent builds of a project running per node or globally.throttle 有节流的意思,也就是限制 某个任务同时并发的个数的。下面分别的讲
2020-08-20 19:16:46 2592
原创 jenkins学习之Jenkins流水线之声明式管道与脚本式管道
Jenkins pipeline最近由于项目需要,接触到了Jenkins 2.0版本,其中最重要的特性就是提供了对pipeline的支持。简单的来说,就是把Jenkins1.0版本中,Project中的相关配置信息,如SVN/Git的配置,Parameter的配置等都变成Code,即Pipeline as Code。这样的优势为可以通过写代码的形式配置Project,且Jenkins中内置了常用的steps。实现了构建步骤代码化、构建过程视图化。声明性管道与脚本管道声明式管道 和 脚本化管道 的主
2020-08-08 12:57:44 1450
原创 Linux学习之bash学习之几个特殊变量$*和$@
Special Parameters The shell treats several parameters specially. These parameters may only be referenced; assignment to them is not allowed. * Expands to the positional parameters, starting from one. When the expansion is not within d
2020-08-08 12:55:00 267
原创 Python学习之命令行参数解析之argparse和optparse
Python 有两个内建的模块用于处理命令行参数: 一个是 getopt只能简单处理 命令行参数;另一个是 optparse,它功能强大,而且易于使用,可以方便地生成标准的、符合Unix/Posix 规范的命令行说明。会自动帮你负责-h帮助选项。更高级的可以使用aegparse这个模块,argparse从python2.7开始被加入标准库. 后续版本都不在维护 optparse 了.Python command line parsinghttps://code.google.com/archiv
2020-08-06 18:54:14 1688 1
原创 jenkins插件学习之matrix-project-plugin
今天介绍一个插件 matrix-project-pluginhttps://github.com/jenkinsci/matrix-project-pluginmatrix 矩阵的意思,这个插件在创建的时候又显示 Multi-Configuration Projects 这个名称,中文的界面的话 叫 多配置 项目, 这名称起的着实让人很迷惑,通过使用,可以看出来是几个参数,或者几个配置, 几个节点的一个全排列组合 这样看就像是矩阵,一共二维表格。其中有个 User Defined Axis 类型的选
2020-08-05 14:00:56 2128
原创 Linux学习之task-spooler是一个Unix批处理系统
解决 多人编译 抢占资源问题, 使用 linux task spooler 工具.task spooler is a Unix batch system where the tasks spooled run one after the other. The amount of jobs to run at once can be set at any time. Each user in each system has his own job queue. The tasks are run in th
2020-06-19 17:43:31 1459
原创 jenkins插件学习之Console-Tail-Plugin
今天介绍一个插件Console-Tail-PluginConsole-Tail-Plugin这个插件会在 最后一次如果是编译失败的情况下.在job的界面是 弄个一个 Console output 的 div。 显示log的最后几行输出。 如果点击了 "console output " 那个连接 会跳转到lastFailedBuild/console, ( http://example.com:8080/jenkins/job/test_Console-Tail-Plugin/lastFail
2020-05-30 15:10:55 460
原创 jenkins插件学习之build-name-setter-plugin
jenkins插件学习之BuildUserVars和BuildNameDescriptionSetter插件执行顺序之前一直在使用 BuildUserVars 和 BuildNameDescriptionSetter 这2个插件, 通过 BuildUserVars 能够获取到是哪个人触发了构建.这个插件会设置个类似的环境变量 BUILD_USER. 然后 通过 BuildNameDescri...
2020-04-25 12:34:24 1193
原创 jenkins插件学习之build-history-metrics-plugin
今天介绍一个插件 build-history-metrics-pluginJenkins Build History Metrics PluginDisplay job parameter summary on main job page 在job主页上显示 metrics (翻译过来就是 衡量指标; 韵律学; 量度; 指标)插件的源码地址: https://github.com/jenk...
2020-04-23 09:01:16 929
原创 jenkins插件学习之show-build-parameters-plugin
今天介绍一个插件 show-build-parameters-pluginhttps://github.com/mamh-java/show-build-parameters-plugin.git如下图所示,作用就是在job的每个构建历史上显示参数。这里先点击左侧的 Build with Parameters 链接。进入界面填写,选择需要的参数。构建结束,在历史中找到2这次构建,点进去,...
2020-04-21 20:51:12 834
原创 jenkins插件学习之job-parameter-summary-plugin
今天介绍一个插件 job-parameter-summary-pluginDisplay job parameter summary on main job page 在job主页上显示参数摘要插件的源码地址: https://github.com/jenkinsci/job-parameter-summary-plugin插件wiki地址: https://plugins.jen...
2020-04-21 19:07:59 388
原创 jenkins学习之Jenkins开发调试于jenkins插件开发调试
jenkins的学习之路之Jenkins插件调试运行 如果是在 Jenkins core 的源码目录下的话,需要进入到 war 目录;如果是插件的话,通常在根目录下执行:mvn hpi:run程序正常启动后,会在 target 下生成一个运行时的目录:target/jetty/webapp/跳过测试 mvn hpi:run -DskipTests 该命令会跳过测试的执行,...
2020-03-15 11:53:20 855
原创 Ubuntu学习笔记之调试Samba
调试samba我们工作中经常的会使用samba。但是出现一个棘手的问题我们应该怎么办呢?网上查资料查解决方案?还是自己下一套samba的源码分析一番呢?本文介绍了工作中遇到的一个问题。然后通过查看源码来分析为什么会出这个错误。以及最后应该怎么解决这个错误。参考https://wiki.ubuntu.com/DebuggingSamba这个。IntroductionSamba i...
2020-03-09 14:10:18 1188
原创 jenkins插件学习之参数定义createValue()方法介绍
Defines a parameter for a build.这里介绍一下 几个 createValue() 方法, 这些都是抽象方法,需要子类去实现的 /** * Create a parameter value from a form submission. * * <p> * This method is invoked...
2020-02-21 17:39:05 702
原创 Android下的配置管理之道之gerrit自动备份分支ref-protection插件
最近研究了一个gerrit自动备份分支的插件。Ref protection 直译过来就是 引用保护.也就是保护 git下面 refs 的一个插件Ref protection plugin.Protects against commits being lost by creating backups of deleted refs (or non-fast-forward commits) ...
2020-01-13 11:24:37 649
原创 Android下的配置管理之道之理解 Android Build 系统
理解 Android Build 系统https://mp.csdn.net/mdeditor#
2019-10-12 13:33:32 306
原创 Android下的配置管理之道之对 OTA 更新包进行签名
对要发布的版本进行签名Android 操作系统映像在两个地方使用加密签名:映像中的所有 .apk 文件都必须经过签名。Android 软件包管理器通过下列两种方式使用 .apk 签名:更换应用时,必须使用与旧应用相同的密钥对其签名,才能存取旧应用的数据。无论是通过覆盖 .apk 来更新用户应用,还是使用安装在 /data下的新版本应用来覆盖系统应用,这一点都适用。 如果两个或多个应用...
2019-10-12 13:29:46 2017
原创 Android下的配置管理之道之OTA 软件包工具
OTA 软件包工具build/tools/releasetools 中提供的 ota_from_target_files 工具可以编译两种类型的软件包:完整更新软件包和增量更新软件包。该工具将 Android 编译系统生成的 target_files .zip 文件作为输入文件。完整更新完整更新是指软件包将对设备的整个最终状态(系统分区、启动分区和恢复分区)进行更新。只要设备能够接收软件包并...
2019-10-12 13:13:44 622
synergy_1.8.8-stable+dfsg.1-1build1_amd64.deb.tar.gz
2021-06-29
gerrit-2.15.3.war
2018-07-19
git高手之路-英文版
2018-06-13
git 视频教程
2018-06-04
《linux shell脚本攻略》视频教程
2018-06-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人