When using WordPress with Jetpack plugin, the image in the post will be automatically optimized to use Jetpack CDN: And such image hosted on CDN could have lower quality compared to the original image you provided. To avoid this, we could go to the Jetpack settings to disable image optimation: After this, the image shouldContinue reading “Disable Jetpack Image Optimization”
Category Archives: Techs
Check Actual Memory Usage on Windows 11
Sometimes, the total memory usage show up in the “Memory” tab is not the same with the sum-up value in “Processes” tab. Concretely: This post provided an approach to check the actual memory usage of running processes and thus to locate a memory leak of a certain program. Which Process Used the Memory We couldContinue reading “Check Actual Memory Usage on Windows 11”
Create Shared-Permission Directory Using ACL
Senarios Let’s say we have a directory animes, with several sub directories, one of which is animes/Dandadan. And now: In this scenario, we could use ACL (getfacl and setfacl) to achieve such permission management. Check ACL Status First let’s go to animes directory: -a/–access means only showing the access setting, without default::*, we will useContinue reading “Create Shared-Permission Directory Using ACL”
Clash Load Balancing to Bypass Speed Limit
Note: Author is using: As the image shows, some proxy providers will provide some nodes specifically dedicated to downloading task, with lower ratio but lower rate limit (10Mbps in image above). This post demonstrates how to use Load Balance proxy group feature in clash core to download files using several such “download nodes”, effectively bypassingContinue reading “Clash Load Balancing to Bypass Speed Limit”
Git LFS
Enable LFS Install & Track First of all, install lfs for git using following command: Then add track of large files using lfs: Note that the command above will also update .gitattributes file automatically. Migrate Steps above will only handle future large files. To migrate large file to LFS storage for previous commits, we couldContinue reading “Git LFS”
About GPG
For GPG basic concepts, check out this blog post on Median, which well explained what GPG is and the basic practice is about it. Sign Content Here we use Kleopatra on Windows to demonstrate how to sign content using its Notepad feature. As shown above: Sign Commit Using Git Set Up GPG Sign for GitContinue reading “About GPG”
A Simple Image Hosting Solution Using FTP
Previously trying to use NextCloud and webdav as the way to upload and manage images, but it turns out that deal with share links of those images in NextCloud is not a easy thing to do, so I started to think another way. I found this project on GitHub called PicGo, which allows user toContinue reading “A Simple Image Hosting Solution Using FTP”
Gitea – Self-Hosted Git & CI/CD Tools
This article is about my deployment experience of Gitea, a self-hosted GitHub like code hosting service which also support CI/CD pipeline workflows like GitHub Action. Why I Need It Recently, I was searching for a way to host Obsidian vault on the Internet. There is an official way to achieve this using Obsidian Publish, however,Continue reading “Gitea – Self-Hosted Git & CI/CD Tools”
Simple Callback Function In C++
This article will discuss the basic practice of using callback functions in C++ Function Type To use function type as parameter, it’s recommended to use functional library to define function type: In the code snippet above: Use With Lambda It’s recommended to use Function Type with Lambda Expression: For more info about the C++ LambdaContinue reading “Simple Callback Function In C++”
Segment Tree
Theorem Some diagrams and contents are based on Segment Tree – Algorithms for Competitive Programming. A segment tree should be a binary tree like the one below, additionally, we could proof that Segment Tree should NOT have any node with degree 11. Based on the property of binary tree, we can calculate the index ofContinue reading “Segment Tree”