程序员爸爸写给女儿的第一封信-勇敢秀自己
There is no excerpt because this is a protected post.
手握灵珠常奋笔, 心开天籁不吹箫
There is no excerpt because this is a protected post.
🧭 Helm to install the NGINX Ingress Controller 🔒 HTTPS termination using a self-signed TLS secret (or you can replace with cert-manager later) 🌐 A sample web service (echo server) 📦 An Ingress resource with host routing and HTTPS 📦 Project Structure (1-file setup) You can copy/paste this into a single script or Helm chart, […] →Read more
Building a Local Knowledge Base and Agent with LLM Here’s a detailed guide on how to create a local knowledge base from your files and build an agent that can interact with this knowledge. Part 1: Building a Local Knowledge Base Step 1: Set Up Your Environment # Create a virtual environment python -m venv […] →Read more
we can build a local knowledge base powered by RAG (Retrieval-Augmented Generation) using: 🔍 ChromaDB (embedded vector DB) 🧠 Ollama (local LLM: Mistral, LLaMA, etc.) ✍️ Go code to ingest documents, embed chunks, and query with context ✅ Prerequisites Install the following tools: # Chroma as a Python backend server pip install chromadb # Ollama […] →Read more
In software service observability, saturation refers to how "full" or constrained a system or service is in terms of its capacity to handle more work. It is one of the "Four Golden Signals" in the Google SRE book: Latency, Traffic (Usage), Errors, and Saturation To understand saturation beyond Usage (traffic), Errors, and Delay (latency), think […] →Read more
There is no excerpt because this is a protected post.
Managing Services with Snap on Ubuntu On Ubuntu, if you want to use snap start commands to run a program as a backend service that automatically restarts when it exits, you’ll need to create and package your application as a Snap with proper service definitions. Creating a Snap with Service Capabilities 1. Create a snapcraft.yaml […] →Read more
Keycloak 的架构与应用 一、什么是 Keycloak? Keycloak 是一个开源的身份与访问管理(IAM)解决方案,它帮我们搞定登录、单点登录(SSO)、注册、社交登录、MFA、多租户等等——简单说,就是把“怎么登录”的锅交给它,我们专注于写业务代码就行了。 你可以把它想象成“统一认证中心”,你应用里所有关于“用户是谁”“有没有权限”的问题,都可以丢给它来处理。 Keycloak 支持哪些协议? OAuth 2.0:现代认证的主流协议,像 GitHub 登录那套就是它。 OIDC(OpenID Connect):在 OAuth 2.0 上封装一层,用于获取“用户是谁”的信息。 SAML 2.0:主要是企业、老系统在用。 二、Keycloak 架构一图流 +————-+ +——————–+ +————-+ | 浏览器 | <—> | 前端 Vue 应用 | <—> | | +————-+ +——————–+ | | | Keycloak | +————-+ +——————–+ | | | Python | <—> | 后端 FastAPI […] →Read more
AWS credentials 🔍 What is ~/.aws/credentials? This file holds AWS credentials for different user profiles. It’s read by tools like: AWS CLI (aws) AWS SDKs (Python boto3, Java SDK, etc.) Any program using the AWS shared credentials provider Each profile is a named set of AWS credentials (like default, dev-alice, etc.), and contains at minimum: […] →Read more
Chrome Plugin Development – A Beginner’s Guide I understand you’re new to Chrome plugin (extension) development. Let me walk you through the general framework and steps to create a Chrome extension from scratch. Core Concepts of Chrome Extensions Chrome extensions are built using web technologies: HTML (for UI) CSS (for styling) JavaScript (for functionality) JSON […] →Read more