Code Singularities

Technical implementations and algorithms

H

How to Download Remote Images with PHP

Downloading a remote image in PHP: request the URL with curl and write the returned file stream to a target path.

.

.htaccess Tutorial

A practical .htaccess tutorial: creating the file, custom index and error pages, disabling directory listing, IP allow/deny, redirects, and password protection.

U

Using Different Fonts for Different Languages in CSS

Some fonts only cover one language. With @font-face and unicode-range you can serve the right font to each script.

T

The Anatomy of an SSR Address

An ssr:// link is just Base64. Decode it and the structure is clear: IP, port, protocol, cipher, obfuscation, password, remarks.

L

Linux CentOS Tips

CentOS 7/8 notes: sudo -i for temporary root, and the tmux key sequences for split-screen sessions that survive SSH drops.

About the Server I Bought at Pesyun.com

About the Server I Bought at Pesyun.com

A brief review of Pesyun.com hosting: two one-year servers, a "US" high-defense VPN box whose IP turned out to be Chinese, and a Namepros blacklist surprise.

S

Self-hosting the Fiora Chat Room with aaPanel (宝塔)

A beginner-friendly walkthrough for deploying the Fiora chat room with aaPanel: dependencies, PM2, MongoDB, Redis, systemd and reverse proxy.

How to Remove /index.php/ from My URL

How to Remove /index.php/ from My URL

The basic mod_rewrite rule that hides index.php from URLs, explained line by line.

N

NextCloud Error: Installation Fails with 503 Service Unavailable

NextCloud install dying halfway into a 503? Don't touch anything — wait an hour and it finishes itself.

U

Unknown collation: 'utf8mb4_0900_ai_ci' — MySQL Error

Importing a MySQL dump fails with "Unknown collation: utf8mb4_0900_ai_ci"? Find-and-replace it with utf8mb4_general_ci.