Similar Posts
Jasypt Encrypt/Decrypt in command line
It’s needed to encrypt passwords of PROD or even NON-PROD when they’re in configuration files. Jasypt is used as a tools to encrypt/decrypt password in our application. And it can be done from command line. Here we go Encrypt Then you’ll see Decrypt Then, you got the password back Links https://github.com/jasypt/jasypt
Checking Your Mac’s Temperature Like a Pro
Ever noticed your Intel-based MacBook running warmer than usual and feeling just a bit sluggish? Temperature changes can affect performance, so it’s helpful to know how to check what’s going on under the hood. Here’s a quick and easy command to check your MacBook’s CPU temperature: This command gives you the CPU die temperature in…
Improve code coverage with JaCoCo
โค้ดเก่ามีอยู่มานานแล้ว อยากเพิ่ม code coverage จะเริ่มจากตรงไหน การทำงานกับโค้ดเดิมที่มีอยู่แล้วนั้นไม่ง่ายเท่าไหร่ แล้วเราอยากจะเพิ่ม code coverage ให้กับโปรเจค Java ของเรานั้นจะเริ่มต้นอย่างไรบ้าง Set the target เราต้องตั้งเป้าหมายให้แน่ใจว่า เราต้องการจะมี Code coverage อยู่ที่เท่าไหร่ ยกตัวอย่าง อยากได้ code coverage อยู่ที่ 80% ก็ตั้งเป็นเป้าหมายเอาไว้ สำหรับเป้าหมาย 80% นั้นทำได้ยากพอสมควรสำหรับ legacy code แต่ก็ไม่ได้แปลว่าทำไม่ได้ Setup the Tool สำหรับ Java เราจะใช้ JaCoCo – Java Code Coverage Library ซึ่งเราจะนำมาใช้ออก report ของ code coverage ในโปรเจคของเรา แอดเข้าไปใน pom.xml ตามด้านล่าง โดยเมื่อรัน…
How to pull all git repo in subfolders
คือเดี่ยวนี้มีโปรเจคย่อยเยอะแยะ เกือบๆสิบโปรเจคอยู่ใน folder เดียว เราอยากจะ run command เดียวแล้ว git pull โปรเจคทั้งหมดภายในคำสั่งเดียว ทำยังไง ก็ทำไงแบบนี้ไง จะรันผ่าน command line หรือใส่ sh file ก็ได้นะ
10 Apps for Java developer in Mac OS
Apps สำหรับ Java developer ที่ตอนนี้ผม install อยู่ในเครื่องที่ใช้งานตอนนี้ sdkman – สำหรับ tool ตัวนี้ช่วยให้ลง jdk ในเครื่องได้หลาย version และการสลับใช้งานไป version นี้หรือไปอีก version สามารถทำได้ง่าย Visual Studio Code – Editor ตัวนี้ใช้งานเหมาะมากรวดเร็ว ใช้งานง่าย ใช้บ่อยๆ สำหรับโปรเจคที่เขียนด้วย Golang, javascript, typescript, groovy IntelliJ IDEA – สำหรับ Java IDE ตัวนี้ใช้งานดีที่สุดแค่ CE version ก็เพียงพอแล้วสำหรับงาน Java micro-service, Java spring boot Sublime + PrettyJSON plugin – text editor…