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 Render Markdown with Blade and Embed Dynamic Syntax
Laravel PHP

Render Markdown with Blade and Embed Dynamic Syntax

Use Blade addExtension to make .md files support @include and variables, then pass the output through CommonMark to generate HTML for dynamic documentation.

2020 年 7 月 14 日
正體中文
Laravel Blade Composer CommonMark
Featured image of post Run Windows 10 on 1GB RAM: 5 PowerShell Optimizations
Windows

Run Windows 10 on 1GB RAM: 5 PowerShell Optimizations

Disable Memory Compression, Superfetch, Windows Defender, and Ndu via PowerShell to significantly reduce RAM usage and run Windows 10 on just 1GB of memory.

2020 年 7 月 6 日
正體中文
Windows
Featured image of post How to Install Windows 10 on AWS EC2 via VM Import
Windows DevOps

How to Install Windows 10 on AWS EC2 via VM Import

Build a Windows 10 VHD in VirtualBox, import it to AWS as an AMI using VM Import, and launch an EC2 instance. Covers IAM role setup, S3 upload, and RDP login.

2020 年 7 月 4 日
正體中文
Windows Aws
Featured image of post Laravel Testing: Assert Final Page Content After a Redirect
Laravel Testing

Laravel Testing: Assert Final Page Content After a Redirect

POST requests only return a 302, hiding the final page. Use followingRedirects() to automatically follow redirects and assert on the destination page content.

2020 年 6 月 25 日
正體中文
Laravel PHPUnit Testing
Featured image of post 2 Ways to Fake $_SERVER Variables in Laravel Feature Tests
Laravel Testing

2 Ways to Fake $_SERVER Variables in Laravel Feature Tests

Fake $_SERVER in Laravel feature tests by passing server vars per-request, or use withServerVariables() to apply them globally for the entire test method.

2020 年 6 月 23 日
正體中文
Laravel Testing PHPUnit
Featured image of post Fix Laravel Eloquent Memory Leak with Large Datasets
Laravel PHP

Fix Laravel Eloquent Memory Leak with Large Datasets

Eloquent caches loaded relations on every Model instance, causing memory to climb in large loops. Call setRelations([]) on each iteration to release the cache.

2020 年 6 月 18 日
正體中文
Laravel Eloquent Php
Featured image of post Fix Redis TCP Backlog 511 Warning: Raise somaxconn
Database DevOps

Fix Redis TCP Backlog 511 Warning: Raise somaxconn

Redis warns that TCP backlog 511 exceeds somaxconn 128, dropping connections under load. Raise somaxconn via /proc and persist it in sysctl.conf permanently.

2020 年 6 月 12 日
正體中文
Redis Linux
Featured image of post 3 Laravel Migration Pitfalls and How to Fix Them
Laravel Database

3 Laravel Migration Pitfalls and How to Fix Them

Avoid 3 migration rollback mistakes: mixing add/drop in one closure, dropping index and column together, and multiple dropColumn calls. Catch them with SQLite.

2020 年 6 月 8 日
正體中文
Laravel Migration Sqlite
Featured image of post Fix PHP Curl Comodo SSL Expired Error with GuzzleHttp verify
PHP Laravel

Fix PHP Curl Comodo SSL Expired Error with GuzzleHttp verify

PHP Curl throws a Comodo RSA SSL expired error on Linux due to missing Root CA. Use GuzzleHttp verify to point to the certificate file, globally or per service.

2020 年 6 月 1 日
正體中文
Php Guzzle Laravel
Featured image of post Fix adb Server and Client Version Mismatch on Mac
MacOS

Fix adb Server and Client Version Mismatch on Mac

Homebrew and Android SDK each install a separate adb, causing server and client version conflicts. Remove the Homebrew copy and point PATH to the SDK to fix it.

2020 年 5 月 29 日
正體中文
Android MacOS
1 5 6 7 8 9 10
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy