Recently, WebShell needed to support file management under PowerShell. To perform file-related operations, it’s necessary to understand the relevant commands. Here’s the summary.

Compress Folder

1
Compress-Archive -Path '${formatted}' -DestinationPath '${zipTempPath}'

Copy File/Folder

Read more »

I’m still using Hexo for my blog. The following are the hexo plugins I used.

Note: The configuration file is _config.yml

1
permalink: :year/:month/:day/:abbrlink/
Read more »

In development, I hope that user can invoke the RDP app by one click on the web page. I think URL Scheme is the answer.

Actual tests have found that the support for RDP URL Scheme is incomplete.

Platform

  1. MacOS

    System version has behave different, actual verification: BigSur supports ok.

    1
    rdp://full%20address=s:<ip>:<port>&username=s:Administrator

    Click to test

    Sonoma not work

    Failed to launch ‘rdp://full%20address=s:127.0.0.1:3389&username=s:Administrator’ because the scheme does not have a registered handler.

    manual install RDP

  2. Windows

    Only supports launching the RDP client, but cannot pass any parameter.

    Click to test

RDP File Download

The currently perfect support is for users to manually download the .rdp file and open it manually. The File content is followdings.

Read more »

Caddy is simpler compared to Nginx and very convenient for server proxying, especially for obtaining HTTPS certificates.

Here are some common operations recorded.

Installation

It is recommended to use a package manager for installation, such as on Mac:

1
brew install caddy

On CentOS7:

Read more »

Besides providing chat models, OpenAI API also offers many useful technologies, including Moderation.

Here is what I know.

Is this API free? Yes, Free

That’s right, moderation is free.

Purpose of Moderation

Based on the provided content, it scores according to predefined categories and if the content belongs to the predefined category.

Read more »
0%