摘要: 列表的基本操作: import java.io.File class Example { static void main(String[] args){ def list1 = [1,2]; def list2 = [1,2,3,4]; def list3 = [1,5,2,9,0]; // 向列 阅读全文
posted @ 2025-07-07 15:46 山村放羊娃 阅读(13) 评论(0) 推荐(0)
摘要: groovy 字符串 class Example { static void main(String[] args){ String a = "hello,groovy"; String b = "hello,java"; String c = "hello,shell" + ",hello,pyt 阅读全文
posted @ 2025-07-07 15:03 山村放羊娃 阅读(11) 评论(0) 推荐(0)
摘要: import java.io.File class Example { static void main(String[] args){ File file = new File("./abc.txt"); println "The file ${file.absolutePath} has ${f 阅读全文
posted @ 2025-07-07 14:03 山村放羊娃 阅读(7) 评论(0) 推荐(0)
摘要: class Example { static int x = 100; public int getX(){ this.x = 200; return x; } public int setX(int pX){ x = pX; } static void main(String[] args) { 阅读全文
posted @ 2025-07-07 10:26 山村放羊娃 阅读(13) 评论(0) 推荐(0)
摘要: Tmux(Terminal Multiplexer)是一个 终端复用工具,用于在单个终端窗口中创建和管理多个 虚拟终端会话。它主要解决以下问题: Tmux 的核心功能 会话持久化 即使断开SSH连接,会话仍会在后台运行(适合长时间任务)。 重新连接后可恢复工作现场。 多任务分屏 在一个终端中分割多个 阅读全文
posted @ 2025-06-23 17:58 山村放羊娃 阅读(33) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-05-30 10:53 山村放羊娃 阅读(5) 评论(0) 推荐(0)
摘要: Action Command Start a new session tmux or tmux new -s mysession List sessions tmux ls Attach to a session tmux attach -t mysession Detach from sessio 阅读全文
posted @ 2025-05-14 11:36 山村放羊娃 阅读(11) 评论(0) 推荐(0)
摘要: 正确命令及作用 git ls-remote --heads <远程仓库URL> # 或简写为 git ls-remote -h <远程仓库URL> 输出示例 $ git ls-remote -h https://github.com/user/repo.git a1b2c3d... refs/hea 阅读全文
posted @ 2025-04-28 16:27 山村放羊娃 阅读(24) 评论(0) 推荐(0)
摘要: 通过 HTTP/HTTPS 拉取 GitLab 仓库时 免输入账号密码,可以用 GitLab 提供的 Personal Access Token(个人访问令牌) 来代替密码,或者设置 Credential Helper(凭据助手) 来缓存密码/token 方式二:缓存用户名/密码或 Token(自动 阅读全文
posted @ 2025-04-25 13:08 山村放羊娃 阅读(178) 评论(0) 推荐(0)
摘要: Pipeline Stage View Plugin:显示每个stage的状态 阅读全文
posted @ 2025-03-25 21:56 山村放羊娃 阅读(14) 评论(0) 推荐(0)