摘要: 一、top(查看cpu负载和内存使用情况)1、top输出:top - 10:33:38(当前时间) up 1 day, 11:19(运行时间), 3 users(当前使用用户数), load average: 0.16, 0.23, 0.64(1分钟、5分钟、15分钟内平均负载情况)Tasks: 2 阅读全文
posted @ 2022-06-30 17:07 java_my_skill 阅读(41) 评论(0) 推荐(0)
摘要: git log --author="peter.li" --since='2021-08-09' --until='2021-08-10' --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } 阅读全文
posted @ 2022-06-30 17:04 java_my_skill 阅读(196) 评论(0) 推荐(0)
摘要: 一、手机号验证最新正则表达式:https://blog.csdn.net/itbrand/article/details/109239620 二、最完美的邮箱验证正则表达式:https://www.cnblogs.com/huoxiao/p/9872741.html 阅读全文
posted @ 2022-04-01 18:49 java_my_skill 阅读(26) 评论(0) 推荐(0)
摘要: String path = this.getClass().getClassLoader().getResource("").getPath();System.out.println("path="+path); // path=/D:/java/workspace-idea/kafka-test- 阅读全文
posted @ 2022-03-23 14:49 java_my_skill 阅读(47) 评论(0) 推荐(0)
摘要: //读数据 private static void readFileToLocal(){ File file = new File("D:/logs/testlog.txt"); StringBuilder result = new StringBuilder(); try { BufferedRe 阅读全文
posted @ 2022-03-23 14:09 java_my_skill 阅读(65) 评论(0) 推荐(0)
摘要: Class.forName("com.mysql.cj.jdbc.Driver");//这是连接mysql数据库的驱动java.sql.Connection conn = java.sql.DriverManager.getConnection("jdbc:mysql://10.xx.xx.xxx: 阅读全文
posted @ 2022-03-23 10:48 java_my_skill 阅读(20) 评论(0) 推荐(0)
摘要: #!/bin/bashsource /etc/profiletestPath="testXXX"if [[ ! -d "$testPath" ]]; thenecho "文件不存在"echo " git clone "git clone -b feature-xxx http://xxxxxx/xx 阅读全文
posted @ 2022-03-14 11:07 java_my_skill 阅读(134) 评论(0) 推荐(0)
摘要: package com.etocrm.test.jdk8;import cn.hutool.core.collection.ConcurrentHashSet;import org.bouncycastle.util.test.Test;import java.util.*;import java. 阅读全文
posted @ 2022-01-06 17:34 java_my_skill 阅读(59) 评论(0) 推荐(0)
摘要: public class CollectorsTest03 { public static void main(String[] args) { List<TestDemo> menu = Arrays.asList( new TestDemo("pork", false, 800, TestDem 阅读全文
posted @ 2022-01-06 15:48 java_my_skill 阅读(144) 评论(0) 推荐(0)
摘要: public class CollectorsTest02 { public static void main(String[] args) { List<TestDemo> menu = Arrays.asList( new TestDemo("pork", false, 800, TestDem 阅读全文
posted @ 2022-01-06 14:51 java_my_skill 阅读(78) 评论(0) 推荐(0)