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 49
2024 3
2023 11
2022 13
2020 15
More

Categories

PHP Laravel Testing Frontend DevOps Database Tools Python AI MacOS

Tags

Laravel Php Testing Javascript PHPUnit Sqlite Python Typescript Ai-Agent Claude-Code Composer Linux Aws Blade Developer-Tools Devops Docker Guzzle MCP Mockery
Featured image of post reverse_ssh: Manage Reverse Shells With Native SSH Syntax, No VPN Required
Tools

reverse_ssh: Manage Reverse Shells With Native SSH Syntax, No VPN Required

reverse_ssh flips SSH: target machines connect back to your server, and you connect to them with standard SSH syntax. HTTP/WebSocket/TLS transports punch through firewalls. SCP, SFTP, and port forwarding all work.

2026 年 3 月 27 日
正體中文
Ssh Reverse-Shell Security Networking Golang Firewall Tunnel
Featured image of post yazi: Rust Terminal File Manager with Image Preview — Alacritty Fix Included
Tools

yazi: Rust Terminal File Manager with Image Preview — Alacritty Fix Included

yazi is an async Rust terminal file manager with vim keybindings, image preview, Lua plugins, and fzf/zoxide integration. Alacritty has no native image protocol — macOS uses Chafa, Linux uses Überzug++ with X11/Wayland.

2026 年 3 月 26 日
正體中文
Yazi Terminal Rust File-Manager Alacritty
Featured image of post reptyr: Move a Running Process Into tmux After Forgetting to Start It
Tools

reptyr: Move a Running Process Into tmux After Forgetting to Start It

reptyr uses ptrace to re-attach a running process to a new terminal. Started a long job over SSH without tmux? reptyr moves the process into tmux so you can disconnect safely.

2026 年 3 月 25 日
正體中文
Reptyr Linux Terminal Tmux Ssh Process Rescue
Featured image of post Two SQL NULL Traps: Missing JOIN Rows and UNIQUE Constraints That Do Nothing
Database

Two SQL NULL Traps: Missing JOIN Rows and UNIQUE Constraints That Do Nothing

NULL behavior varies across databases and causes two common problems: JOIN on NULL columns returns no rows, and UNIQUE constraints allow multiple NULLs. Covers MySQL, PostgreSQL, SQLite, SQL Server with solutions for each.

2026 年 3 月 24 日
正體中文
Sql MySQL Postgresql Sqlite Database
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
1 2 3 4 5 6 7 10
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy