紀錄工作上的點點滴滴

CLI 檢查網站憑證
2024-04-26 工作雜記 linux
curl curl https://www.google.com -v -k 2>&1 | grep -E "Connected to|subject|expire" 執行結果 ❯ curl https://www.google.com -v -k ... Read More
linux 資料基礎分析
2024-04-25 工作雜記 linux 資料分析
grep: 過濾資料 grep 要過濾出的資料 exampleFileSource.log > exampleFile.log cut 切除每行前 60 個字元 cut -b 60- exampleFile.log > exampleFile.2.log sort: 類似 sql ... Read More
grails5 hibernate 建立監聽事件研究
2024-04-16 grails java grails
注入: conf/spring/resources.groovy package spring import work.pollochang.pollo.grails.db.aop.CustomInterceptor // Place your Spring DSL code here beans ... Read More
grails 攔截器
2024-04-16 grails java grails
Interceptor 介面: org.hibernate.Interceptor 介面允許您在 Hibernate 事件的各個階段介入,並提供了一些方法來實現您自己的邏輯。EmptyInterceptor 是 Interceptor 介面的一個簡單實現,它包含了所有方法的空實現。 ... Read More
程式進化史
2024-04-16 工作雜記 groovy CyclomaticComplexity
筆記一下這些年我寫的糞 code 的優化流程 一開始寫的 被檢測為 CyclomaticComplexity 。程式如下: package work.pollochang.twgcb import grails.gorm.transactions.Transactional import ... Read More
annotation 與 AOP
2024-04-13 工作雜記 java AOP
範例程式完整專案: Java 基本內置 annotation @Override 重寫父層的方法 @Deprecated 表示該方法再為雷會被棄用 @SuppressWarnings 主要的用處就是忽略警告信息 規定 annotation 可以放在哪裡 類別 ElementType.TYPE : 能 ... Read More
KDE 桌面 CLI
2024-04-09 linux KDE
KED 強制登出使用者 sudo pkill -KILL -u [username]] 是直接強制踢出指定使用者所有程序 Read More
Mozilla Public License Version 2.0 中英文對照
2024-04-08 工作雜記 License
英文原文 MOZILLA PUBLIC LICENSE Version 2.0 1. Definitions 1.1. “Contributor” means each individual or legal entity that creates, contributes to the ... Read More
windows 透過 CLI 檢查有沒有自動更新
2024-03-28 工作雜記 winsows
今天突然收到客戶需要檢查windows 有沒有設定自動檢查更新,因為有多台實在懶得一台一台進入,然後一個一個點擊視窗擷圖,因此想說有沒有輸入 CLI 指令檢查的方法。 windows server 2000 以下是操作的版本 windows server 指令 reg query ... Read More
DB2 切 db2diag.log
2024-03-25 DB2
今天在工作時碰到 db2diag.log 膨脹到把硬碟塞滿,在這邊分享一下處理過程 db2diag -A 可以很放心去執行,執行過程中不會對現形資料庫運作產生任何影響 操作資料庫環境 OS: RedHat 6 DB2 Version: 9.7 ... Read More