Xlenco Blog

website·Indexed 32 days ago

https://blog.xlenco.top

A personal technical blog featuring guides and articles on development tools and productivity. Topics include Git commit standards, pnpm, GitHub Actions, Scoop, Shizuku, and various software recommendations such as ImageGlass and Fontmin, as well as notes on the Cornell Note-taking System and digital product reviews.

Tokens
17.3K
Snippets
90
Records
121
Agent score
65%

What's inside Xlenco Blog

  1. Overview of Shuangpin input method

    Shuangpin is a Pinyin-based input scheme that maps initials (consonants) and finals (vowels) to specific keyboard keys. Unlike full Pinyin, where a character can require 1 to 6 keystrokes, Shuangpin fixes the input to exactly 2 keystrokes per character (one for the initial and one for the final). This reduces the average number of keystrokes by approximately 31% compared to full Pinyin, improving input efficiency and creating a more consistent typing rhythm.
  2. Overview of Fontmin font subsetting

    Fontmin is a pure JavaScript solution for font subsetting. It allows developers to extract specific characters from a TTF font file and output a new, smaller TTF file, effectively compressing the font by removing unused glyphs.
  3. Overview of Scoop for Windows

    Scoop is a command-line application package manager for Windows. It is designed to install programming dependencies and GUI applications efficiently without polluting the system PATH. It uses a 'Shim' mechanism, creating small executable files in ~/scoop/shims instead of adding every application's directory to the system environment variables. Key benefits include lightweight installation, no requirement for administrator privileges in most cases, support for multiple software versions, and easy automation via scripts.
  4. Overview of GitHub Actions for CI/CD

    GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows users to automate build, test, and deployment pipelines. It can trigger workflows based on repository events (such as pull requests or issue creation) and runs on GitHub-hosted virtual machines (Linux, Windows, macOS) or self-hosted runners.
  5. Overview of Shizuku ADB Permission Manager

    Shizuku is an ADB (Android Debug Bridge) permission manager that allows users to perform advanced system operations without needing full ROOT access. While it does not provide the highest level of system permissions (ROOT), it provides a significant level of control for power users without the risks associated with unlocking bootloaders or losing device warranties.
  6. Understand the fundamentals of process and flowcharts

    A process is a procedure consisting of a sequence of regular activities or behaviors. It is defined by six key elements: resources, process, structure, results, objects, and value. A flowchart is a graphical representation of this process, using standardized symbols to describe operations, data, flow, and devices. Flowcharts are used to simplify complex processes, compare actual operations against planned steps, and identify redundancies or areas for standardization.
  7. Predictively load future resources with prefetch

    The prefetch attribute is used to pre-load resources that the browser predicts the user will likely need for future navigation. The browser fetches these resources during idle time to improve the perceived loading speed of subsequent pages.
    <link rel="prefetch" href="http://www.baidu.com/" />
  8. Alternative image hosting strategies

    Beyond standard image beds, consider these alternatives:

    • Cloudflare + Backblaze B2: Use the blazeB2 tool for CDN-accelerated hosting.
    • IPFS: Use the InterPlanetary File System for distributed hosting (e.g., xlcoud.eu.org).
    • Private Deployment: Search GitHub for open-source self-hosted image bed projects.
    • Avoid: Using GitHub + jsDelivr or NPM + NPM CDN, as these often violate Terms of Service (TOS) and can be unstable.
  9. Trigger GitHub Actions via Yuque Webhooks and Serverless API

    To automate deployments when Yuque documents are updated, you can use a Serverless API as a bridge between Yuque Webhooks and GitHub Actions.

    1. Serverless API: Use a service (like the provided Vercel API) that converts Yuque's POST request into a GitHub repository_dispatch event.
    2. Yuque Configuration: In Yuque, go to Knowledge Base -> More Settings -> Message Push and enter the API URL.

    API Format: https://serverless-api-elog.vercel.app/api/github?user=xxx&repo=xxx&event_type=xxx&tok=xxx

  10. Change Hexo theme to Butterfly

    To replace the default theme with the Butterfly theme, clone the theme repository into the themes folder and update the configuration file.
    # Clone theme into themes directory
    git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly
    # In _config.yml
    theme: butterfly
  11. Prioritize critical resources with preload

    Unlike prefetch, preload is used for resources required by the current page (such as scripts, styles, fonts, or images). Preloaded resources have a higher priority and are not waited until idle time, meaning they consume HTTP request slots immediately. You must specify the as attribute to tell the browser the type of content being loaded.
    <link rel="preload" href="style.css" as="style" />