Avatar 💻

recca0120 Tech Notes

Software Developer / Tech Notes

  1. Home
  2. Archives
  3. Categories
  4. Tags
  5. Search
  6. About
    1. Dark Mode

Archives

2026 25
2024 3
2023 11
2022 13
2020 15
More

Categories

PHP Laravel Frontend Testing Database DevOps Tools MacOS Windows Python

Tags

Laravel PHP Testing Javascript PHPUnit SQLite Typescript Aws Blade Composer Developer-Tools Guzzle Mockery Sql.js Validation Devops Docker Linux MacOS Migration
Featured image of post ky + p-limit: Concurrency Control With Built-in Retry for Batch Requests
Frontend

ky + p-limit: Concurrency Control With Built-in Retry for Batch Requests

ky handles per-request retry, timeout, and auth hooks. p-limit caps simultaneous requests. Two tools, two responsibilities — batch-fetching 100 endpoints without hitting 429 or losing data to network hiccups.

2026 年 3 月 23 日
正體中文
Ky Typescript Javascript Concurrency P-Limit Api Rate-Limiting
Featured image of post Fetch Concurrency Control: Limit Simultaneous Requests with p-limit
Frontend

Fetch Concurrency Control: Limit Simultaneous Requests with p-limit

Promise.all with 100 requests fires them all at once — servers respond with 429 or fall over. Use p-limit with fetch to cap the number of simultaneous requests. One line of setup, no custom semaphore required.

2026 年 3 月 22 日
正體中文
Fetch Javascript Typescript Concurrency P-Limit Api Rate-Limiting
Featured image of post auto-venv: Fish Shell Auto-Activates Python Virtualenvs on cd
Python Tools

auto-venv: Fish Shell Auto-Activates Python Virtualenvs on cd

auto-venv is a Fish shell plugin that automatically activates and deactivates Python venvs on directory change. Supports .venv, venv, .env, env naming, uses git root for scope, and works with z, zoxide, and any other navigation tool.

2026 年 3 月 21 日
正體中文
Fish Python Venv Automation Shell Virtualenv
Featured image of post Fish Shell + Laravel Valet: Auto-Switch PHP Versions and Composer v1/v2
PHP Tools

Fish Shell + Laravel Valet: Auto-Switch PHP Versions and Composer v1/v2

Use fish shell aliases and functions to make php, composer, and phpunit automatically follow Laravel Valet PHP versions. Handles legacy projects requiring Composer v1 with smart composer.phar detection.

2026 年 3 月 20 日
正體中文
Fish Laravel Valet PHP Composer Shell Version-Manager
Featured image of post Python Mock Pitfall: Patch Where It Is Used, Not Where It Is Defined
Python Testing

Python Mock Pitfall: Patch Where It Is Used, Not Where It Is Defined

The most common Python mock mistake: patching utils.sum when the test still runs the real function. When you do `from utils import sum`, the importing module gets its own binding. Patch the importing module's namespace, not the original definition.

2026 年 3 月 19 日
正體中文
Python Testing Mock Unittest Patch Pytest
Featured image of post PHP goto Isn't Evil: One Less Nesting Level for Retry Logic
PHP

PHP goto Isn't Evil: One Less Nesting Level for Retry Logic

PHP goto makes retry logic more readable than while loops: one less nesting level, flatter structure, clearer intent. Only jumps back when explicitly retrying — success returns directly, exhausted retries throw.

2026 年 3 月 18 日
正體中文
PHP Goto Retry Pattern
Featured image of post Generate Root Domain URLs Inside Laravel Subdomain Routes: clone UrlGenerator
Laravel PHP

Generate Root Domain URLs Inside Laravel Subdomain Routes: clone UrlGenerator

Inside a Laravel subdomain route, url() and route() produce URLs with the subdomain. Clone app(UrlGenerator::class) and call useOrigin() to generate root domain URLs without affecting global state.

2026 年 3 月 17 日
正體中文
Laravel PHP Testing Routing
Featured image of post CLI-Anything: The Universal Bridge for AI Agents to Control Any Software
AI

CLI-Anything: The Universal Bridge for AI Agents to Control Any Software

No screenshots, no clicking — one command makes Claude Code generate a complete CLI for any software, letting AI agents directly call GIMP, Blender, and LibreOffice

2026 年 3 月 15 日
正體中文
Claude-Code Ai-Agent Cli Automation
Featured image of post terraform test: The Built-in Terraform Module Testing Framework, No Go Required
DevOps

terraform test: The Built-in Terraform Module Testing Framework, No Go Required

Terraform 1.6 ships a built-in test framework. Write tests in .tftest.hcl, run with terraform test. Supports plan-only unit tests, mock_provider without cloud credentials, expect_failures for validation testing, and apply-based integration tests.

2026 年 3 月 15 日
正體中文
Terraform Testing Infrastructure-as-Code Devops
Featured image of post Terraform: Manage Cloud Infrastructure as Code, Stop Clicking Around
DevOps

Terraform: Manage Cloud Infrastructure as Code, Stop Clicking Around

Terraform is an Infrastructure as Code tool that manages AWS, GCP, Cloudflare and 3000+ providers with HCL. Covers installation, HCL syntax, state management, module structure, multi-environment strategy, and a working S3+CloudFront deployment example.

2026 年 3 月 14 日
正體中文
Terraform Infrastructure-as-Code Aws Devops Cloudflare
1 2 3 4 5 7
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy