摘要: delete branch locally git branch -d localBranchName delete branch locally force git branch -D localBranchName delete branch remotely git push origin - 阅读全文
posted @ 2023-02-28 13:47 艺言弈行 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 时间戳: UNIX_TIMESTAMP(NOW()) 随机数 rand() e.g. SELECT CONCAT(UNIX_TIMESTAMP(NOW()), FLOOR(1000000000 * RAND())) 结果 1677563095319281885 阅读全文
posted @ 2023-02-28 13:46 艺言弈行 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 命令:substitude :s/{from}/{to} 其中 s 为 substitude :s/{from}/{to} 当前行的第一个 from 替换为 to :s/{from}/{to}/g 将当前行中的 from 替换为 to :s/{from}/{to}/gc 将当前行中的 from 替换 阅读全文
posted @ 2023-02-28 13:43 艺言弈行 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 安装 yum -y install lrzsz https://www.ohse.de/uwe/software/lrzsz.html 使用 上传 rz 下载 sz 阅读全文
posted @ 2023-02-28 13:42 艺言弈行 阅读(35) 评论(0) 推荐(0) 编辑
摘要: linux 定时任务 crontab crontab -l 列出所有任务 crontab -e 编辑任务 service crond reload 刷新任务 阅读全文
posted @ 2023-02-28 11:03 艺言弈行 阅读(16) 评论(0) 推荐(0) 编辑
摘要: docker ps | grep cita | awk -F " " '{print $1}' awk -F " " 按空格分割 e.g. [root@host-10-0-169-67 ~]# sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STA 阅读全文
posted @ 2023-02-28 11:02 艺言弈行 阅读(18) 评论(0) 推荐(0) 编辑
摘要: MyBatis 大于小于不等于 |原符号|说明|替换符号|CDATA| | | | | | |<|小于|&lt;|<![CDATA[ < ]]>| |<=|小于等于|&lt;=|<![CDATA[ <= ]]>| |>|大于|&gt;|<![CDATA[ > ]]>| |>=|大于等于|&lt;=| 阅读全文
posted @ 2023-02-28 10:54 艺言弈行 阅读(20) 评论(0) 推荐(0) 编辑
摘要: List<User> newList = objList.stream().collect( Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(User::ge 阅读全文
posted @ 2023-02-28 10:51 艺言弈行 阅读(18) 评论(0) 推荐(0) 编辑