- We will start with launching minikube cluster.
minikube start --driver=docker- Create a namespace for argocd
kubectl create namespace argocd- Apply ArgoCD manifest installation file from ArgoCD github repository
| def hasChanges(String path) { | |
| return !sh(script: "git diff --name-only HEAD~1 HEAD | grep '${path}' || true", returnStdout: true).trim().isEmpty() | |
| } | |
| pipeline { | |
| agent any | |
| stages { | |
| stage('Detect changes') { | |
| steps { |
| $npm install -g @github/copilot | |
| $copilot | |
| ┌── ──┐ | |
| │ ▄██████▄ │ | |
| Welcome to GitHub ▄█▀▀▀▀▀██▀▀▀▀▀█▄ | |
| █████┐ █████┐ █████┐ ██┐██┐ █████┐ ██████┐ ▐█ ▐▌ █▌ | |
| ██┌───┘██┌──██┐██┌─██┐██│██│ ██┌──██┐└─██┌─┘ ▐█▄ ▄██▄ ▄█▌ | |
| ██│ ██│ ██│█████┌┘██│██│ ██│ ██│ ██│ ▄▄███████▀▀███████▄▄ | |
| ██│ ██│ ██│██┌──┘ ██│██│ ██│ ██│ ██│ ████ ▄ ▄ ████ | |
| └█████┐└█████┌┘██│ ██│██████┐└█████┌┘ ██│ ████ █ █ ████ |
| # 1. สร้าง project ด้วย Spec-kit เพื่อสร้าง specification ขึ้นมา | |
| $uvx --from git+https://github.com/github/spec-kit.git specify init demo-api | |
| ███████╗██████╗ ███████╗ ██████╗██╗███████╗██╗ ██╗ | |
| ██╔════╝██╔══██╗██╔════╝██╔════╝██║██╔════╝╚██╗ ██╔╝ | |
| ███████╗██████╔╝█████╗ ██║ ██║█████╗ ╚████╔╝ | |
| ╚════██║██╔═══╝ ██╔══╝ ██║ ██║██╔══╝ ╚██╔╝ | |
| ███████║██║ ███████╗╚██████╗██║██║ ██║ | |
| ╚══════╝╚═╝ ╚══════╝ ╚═════╝╚═╝╚═╝ ╚═╝ | |
| # Hybrid search | |
| GET rag-langchain/_search | |
| { | |
| "retriever": { | |
| "rrf": { | |
| "retrievers": [ | |
| { | |
| "standard": { | |
| "query": { | |
| "semantic": { |
minikube start --driver=dockerkubectl create namespace argocd| .m2/repository/io/opentelemetry/opentelemetry-sdk-trace/1.53.0/opentelemetry-sdk-trace-1.53.0.jar) | |
| 2025-09-02T11:41:27.145+07:00 INFO 91609 --- [demo_otel] [main] [ ] i.m.c.instrument.push.PushMeterRegistry : | |
| Publishing metrics for OtlpMeterRegistry every 1m to http://localhost:4318/v1/metrics | |
| with resource attributes {service.name=demo_otel} |
| # Start with Green tea | |
| $GOEXPERIMENT=greenteagc go run main.go | |
| 2025/08/27 11:01:27 pprof server on :6060 | |
| 2025/08/27 11:01:27 Server running on :8080 with Green Tea GC enabled | |
| /gc/heap/allocs:bytes = {1 2402052896 <nil>} | |
| /gc/heap/frees:bytes = {1 2396205576 <nil>} | |
| /gc/heap/allocs:objects = {1 22943712 <nil>} | |
| /gc/heap/frees:objects = {1 22922079 <nil>} | |
| /gc/heap/live:bytes = {1 5356376 <nil>} |
Script Explanation: deleted_fd_cleanup.sh
This script helps identify and optionally truncate files that have been deleted but are still held open by processes on a Linux system (commonly causing df to show full disk while du shows much less).
Features
| @EnableResilientMethods | |
| class Demo { | |
| // 5 retry attempts and an exponential back-off strategy with a bit of jitter | |
| @Retryable(maxAttempts = 5, delay = 100, jitter = 10, multiplier = 2, maxDelay = 1000) | |
| public void sendNotification() { | |
| this.jmsClient.destination("notifications").send(...); | |
| } | |
| // |