day in and day out

day in and day out, its the small things that kill our spirit: The sales representative whoe empties his cold coffee and leaves the splatters all over the sink. The manager who uses the last drop of lotion and doesn’t refill the container The analyst who walks away from the printer, leaving the red light […] →Read more

setup better env for developer

Setting up a convenient environment on macOS for developers involves configuring the terminal, installing essential tools, and customizing workflows for efficiency. Here’s a comprehensive guide: 1. Update macOS and Install Xcode Command Line Tools Ensure your macOS is up-to-date: sudo softwareupdate –install –all Install Xcode Command Line Tools (required for compilers like gcc and tools […] →Read more

5大工具

1️⃣PDCA循环法 计划(Plan)、实施(Do)、检查(Check)、调整(Adjustment) 2️⃣SMART原则 S(Specific)具体的、M(Measurable)可衡量的、A(Attainable)可达成的、R(Relevant)相关的,T(Time-based)有一定期限的 3️⃣5W2H管理法 What(做什么),Why(为什么),Who(何人做),When(何时),Where(何地),How(如何),How much(多少) 4️⃣SWOT分析法 S(Strength)竞争优势、W(Weakness)竞争劣势、O(Opportunity)机会、T(Threats)威胁 5️⃣STAR原则 Situation(情景)、Task(任务)、Action(行动)、Result(结果) →Read more

赤诚地燃烧

看最新一期的十三邀, 片尾有一段话, 说的很好 做自己想做的事 爱自己想爱的人 走自己想走的路 痛了就哭, 喜了就笑 累了就歇, 好了就走 … 我看到了自己 也看到 生命原本的纯粹与自然 →Read more

拥抱变化

唯一确定的是不确定性 唯一不变的是变化 无法预测未来, 只能拥抱变化 通过迭代与反馈的循环来学习如何应对变化 →Read more

docker for java app

write a Dockerfile FROM openjdk:21 COPY target/reminder.jar /usr/src/reminder WORKDIR /usr/src/reminder EXPOSE 8080 CMD ["java" ,"-jar", "reminder.jar" ] build image docker build –t reminder:1.0.0 . docker run -it -p 18080:8080 reminder:1.0.0 use cloud native buildpacks to build open container initiative(OCI) ./mvnw spring-boot:build-image →Read more

Programming prompts

# Prompt Variable Example Category 1 You are an expert in {language}, please explain how the {function} works in {language} in a simple and understandable way language, function You are an expert in Python, please explain how the list comprehension works in Python in a simple and understandable way learn 2 You are an expert […] →Read more

minikube minutes

create a cluster minikube start –force –image-mirror-country='cn' –image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers' –cpus 2 –memory 4g –driver docker –profile lazy-rabbit-studio kubectl get nodes kubectl get context kubectl config use-context lazy-rabbit-studio minikube image load gcr.io/k8s-minikube/kicbase:v0.0.45 minikube start –force –base-image=gcr.io/k8s-minikube/kicbase:v0.0.45 -cpus 2 –memory 4g –driver docker –profile lazy-rabbit-studio minikube start –vm-driver=docker –base-image="anjone/kicbase" –image-mirror-country='cn' –image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers' –kubernetes-version='v1.22.0' –force minikube start –vm-driver=docker –base-image="anjone/kicbase" –image-mirror-country='cn' […] →Read more

push gateway

Overview Occasionally you will need to monitor components which cannot be scraped. The Prometheus Pushgateway allows you to push time series from short-lived service-level batch jobs to an intermediary job which Prometheus can scrape. Combined with Prometheus’s simple text-based exposition format, this makes it easy to instrument even shell scripts without a client library. Data […] →Read more

Prettier for java

Overview Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. A Prettier plugin must first parse the source code of the target language into a traversable data structure (Usually an […] →Read more