KeMiao's Blog

website·Indexed 31 days ago

https://kemiaosw.top

A personal blog by KeMiao, a student from Nanjing, featuring technical guides on Markdown syntax, Git synchronization, and deployment tutorials for tools like Waline, Umami, and API Workers. The site also shares resources for file hosting, design tools, and Telegram bots.

Tokens
3.9K
Snippets
19
Records
33
Agent score
52%

What's inside KeMiao's Blog

  1. Overview of DROP file sharing and hosting platform

    DROP is a cloud storage and file hosting platform designed for individuals and creators to upload, manage, and distribute files. It provides 10GB of free storage for new users and supports large file uploads, including images, videos, compressed archives, and PDFs. The platform features AI-driven transmission optimization, privacy controls for file access, and a multi-platform compatible interface.
  2. Overview of Toolooz Curved Text Design Tool

    Toolooz is a free, registration-free online tool that allows users to arrange text along any custom path to create unique visual effects for logos, titles, and artwork. It supports custom canvas sizes, text content, fonts, spacing, colors, and strokes.
  3. Integrate Umami statistics into a blog about page

    Once the Cloudflare Worker API is deployed, you can add the statistics to your blog's about page using the following configuration snippet.
    tj: # Statistics
      provider: custom
      url: <your_cloudflare_worker_api_url>
      img: https://7.isyangs.cn/1/65eb2e9109826-1.png # Background image
      desc: # Description for the bottom left of the card
  4. Create headings using underline syntax (Setext style)

    Alternative syntax for top-level headings allows adding a sequence of equal signs (=) or hyphens (-) on the line immediately following the heading text to denote level 1 or level 2 headings respectively.
    Heading level 1
    ===============
    
    Heading level 2
    ---------------
  5. Apply for a friend link on 喵落阁

    To apply for a friend link (友链) on 喵落阁, applicants must meet the following criteria: the site must not have been inactive for more than six months, it must be updated with articles periodically, and it must be legal and compliant. Use the provided JSON metadata for the reciprocal link.
    {
      "name": "喵落阁",
      "avatar": "https://cn.cravatar.com/avatar/1F6C8947D35A8186A1647009BA8BC5F2?size=256",
      "link": "https://kemiaosw.top",
      "desc": "或许,这对于我们来说,只是一个选择"
    }
  6. Create a LeanCloud database for Waline

    Waline uses LeanCloud as a backend database. To set it up:

    1. Log in to the LeanCloud International console.
    2. Create a new application (select the free Development version).
    3. Navigate to Settings > App Keys to retrieve the APP ID, APP Key, and Master Key. These are required for the Vercel environment configuration.
  7. Perform a batch cherry-pick of a commit range

    You can apply a range of commits from an upstream repository. The syntax <start-commit>^..<end-commit> includes the start commit and ends at the end commit. If conflicts occur during the process, resolve them manually and then continue the operation.
    # Cherry-pick a range of commits
    git cherry-pick <start-commit>^..<end-commit>
    
    # Continue the process after resolving conflicts
    git cherry-pick --continue
  8. Obtain an Umami API Token

    To authenticate requests to the Umami API, you must obtain a JWT token by logging in via the API. You can use a tool like Hoppscotch to perform this request.

    1. Set the request method to POST.
    2. Use the endpoint: https://<your-umami-domain>/api/auth/login.
    3. Set the request body to application/json with the following payload:
    {
     "username": "your_username",
     "password": "your_password"
    }
    1. The response will contain a token field. Copy this value for use in your Cloudflare Worker.
  9. Set up Waline administrator account

    After successful deployment, the first person to register at <serverURL>/ui/register will be automatically granted administrator privileges. Administrators can manage, mark, or delete comments via the management interface.
  10. Create headings using hash symbols (ATX style)

    To create a heading in Markdown, add one or more hash symbols (#) before a word or phrase. The number of hashes corresponds to the heading level (1-6), which maps directly to HTML <h1> through <h6> tags.
    # Heading level 1
    ## Heading level 2
    ### Heading level 3
    #### Heading level 4
    ##### Heading level 5
    ###### Heading level 6
  11. Prerequisites for deploying Waline

    To deploy Waline using the Vercel and LeanCloud method, you will need the following accounts:

    1. A GitHub account
    2. A Vercel account
    3. A LeanCloud account (International version is recommended to avoid ICP filing requirements).
  12. Deploy Umami Analytics using Vercel and Postgres

    Deploy a self-hosted Umami instance by forking the official repository and deploying it to Vercel with a Postgres database.

    Steps:

    1. Fork the umami repository to your GitHub account.
    2. Create a Vercel account and authorize GitHub.
    3. Create a Vercel Postgres database and copy the connection string (the URL part without quotes).
    4. Import the Umami project into Vercel.
    5. Configure the following environment variables:
      • DATABASE_URL: The Postgres connection string.
      • HASH_SALT: A custom string for password hashing.
      • TRACKER_SCRIPT_NAME: A custom string for the tracking script filename.
    6. Deploy the project. Once complete, access the dashboard using the provided Vercel URL.
    7. Log in with the default credentials (admin / umami) and immediately change the password. Add your target websites in the settings to begin tracking.