<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.3">Jekyll</generator><link href="https://sunete.github.io//feed.xml" rel="self" type="application/atom+xml" /><link href="https://sunete.github.io//" rel="alternate" type="text/html" /><updated>2023-12-02T21:21:29+08:00</updated><id>https://sunete.github.io//feed.xml</id><title type="html">浩仔博客</title><subtitle>An amazing website.</subtitle><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><entry><title type="html">Bitwarden 安装教程</title><link href="https://sunete.github.io//tutorial/bitwarden/" rel="alternate" type="text/html" title="Bitwarden 安装教程" /><published>2022-10-10T00:00:00+08:00</published><updated>2022-10-10T00:00:00+08:00</updated><id>https://sunete.github.io//tutorial/bitwarden</id><content type="html" xml:base="https://sunete.github.io//tutorial/bitwarden/">&lt;h2 id=&quot;一安装-docker&quot;&gt;一、安装 docker&lt;/h2&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;wget -qO- https://get.docker.com/ | bash
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;二安装-docker-compose&quot;&gt;二、安装 docker-compose&lt;/h2&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo curl -L &quot;https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;运行 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker-compose --version&lt;/code&gt; 以检查安装是否成功。&lt;/p&gt;

&lt;h2 id=&quot;二创建-docker-compose-配置文件&quot;&gt;二、创建 docker-compose 配置文件&lt;/h2&gt;
&lt;p&gt;在 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/var/www/vaultwarden&lt;/code&gt; 目录下创建 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker-compose&lt;/code&gt; 文件&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;vi /var/www/vaultwarden/docker-compose.yml
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;配置文件内容&lt;/p&gt;
&lt;div class=&quot;language-dockerfile highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;version: '3'
services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: always
    ports:
      - &quot;3080:80&quot;
      - &quot;3012:3012&quot;
    environment:
      DOMAIN: 'https://vw.231111.xyz/'
      SIGNUPS_ALLOWED: 'true'
      WEB_VAULT_ENABLED: 'true'
      WEBSOCKET_ENABLED: 'true'
    volumes:
      - ./data:/data
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;这里配置文件内开启了注册，在网站启动后先注册，之后修改配置文件为 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;SIGNUPS_ALLOWED: 'true'&lt;/code&gt; 关闭注册。&lt;/p&gt;
&lt;h2 id=&quot;三启动-vaultwarden&quot;&gt;三、启动 Vaultwarden&lt;/h2&gt;
&lt;p&gt;在 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker-compose.yml&lt;/code&gt; 所在文件夹执行命令&lt;/p&gt;
&lt;div class=&quot;language-dockerfile highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;docker-compose  up -d
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;查看日志&lt;/p&gt;
&lt;div class=&quot;language-dockerfile highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;docker logs vaultwarden
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;四创建-nginx-配置文件&quot;&gt;四、创建 Nginx 配置文件&lt;/h2&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;nano /etc/nginx/conf.d/vaultwarden.conf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Nginx 配置文件内容
​&lt;/p&gt;

&lt;p&gt;注意修改域名、证书路径。&lt;strong&gt;acme 申请的泛域名证书必须使用 fullchain.cer ，否则安卓客户端无法连接。&lt;/strong&gt;&lt;/p&gt;
&lt;div class=&quot;language-nginx highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;server&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;listen&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;443&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;ssl&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;http2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;listen&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;[::]:443&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;ssl&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;http2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;server_name&lt;/span&gt;  &lt;span class=&quot;s&quot;&gt;vw.231111.xyz&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

        &lt;span class=&quot;c1&quot;&gt;#SSL&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;ssl_certificate&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/root/.acme.sh/231111.xyz/fullchain.cer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;ssl_certificate_key&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/root/.acme.sh/231111.xyz/231111.xyz.key&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;ssl_session_cache&lt;/span&gt;        &lt;span class=&quot;s&quot;&gt;shared:SSL:10m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;ssl_session_timeout&lt;/span&gt;      &lt;span class=&quot;mi&quot;&gt;10m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;ssl_session_tickets&lt;/span&gt;      &lt;span class=&quot;no&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;resolver&lt;/span&gt;                 &lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;.8.4.4&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;.8.8.8&lt;/span&gt;  &lt;span class=&quot;s&quot;&gt;valid=300s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;resolver_timeout&lt;/span&gt;         &lt;span class=&quot;s&quot;&gt;10s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;ssl_session_cache&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;builtin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;shared:SSL:10m&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

        &lt;span class=&quot;kn&quot;&gt;ssl_prefer_server_ciphers&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

        &lt;span class=&quot;kn&quot;&gt;ssl_protocols&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;TLSv1&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;TLSv1.1&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;TLSv1.2&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;TLSv1.3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

        &lt;span class=&quot;kn&quot;&gt;add_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Frame-Options&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;SAMEORIGIN&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;add_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-XSS-Protection&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;mode=block&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;add_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Content-Type-Options&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;nosniff&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

        &lt;span class=&quot;kn&quot;&gt;charset&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;utf-8&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        
        &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_pass&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;http://127.0.0.1:3080&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_http_version&lt;/span&gt;    &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;.1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_cache_bypass&lt;/span&gt;    &lt;span class=&quot;nv&quot;&gt;$http_upgrade&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Upgrade&lt;/span&gt;            &lt;span class=&quot;nv&quot;&gt;$http_upgrade&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Connection&lt;/span&gt;         &lt;span class=&quot;s&quot;&gt;&quot;upgrade&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Host&lt;/span&gt;               &lt;span class=&quot;nv&quot;&gt;$host&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Real-IP&lt;/span&gt;          &lt;span class=&quot;nv&quot;&gt;$remote_addr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Forwarded-For&lt;/span&gt;    &lt;span class=&quot;nv&quot;&gt;$proxy_add_x_forwarded_for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Forwarded-Proto&lt;/span&gt;  &lt;span class=&quot;nv&quot;&gt;$scheme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Forwarded-Host&lt;/span&gt;   &lt;span class=&quot;nv&quot;&gt;$host&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Forwarded-Port&lt;/span&gt;   &lt;span class=&quot;nv&quot;&gt;$server_port&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

        &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/notifications/hub&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_pass&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;http://127.0.0.1:3012&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Upgrade&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$http_upgrade&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Connection&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;upgrade&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

        &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/notifications/hub/negotiate&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_pass&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;http://127.0.0.1:3080&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

        &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/admin&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Host&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$host&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Real-IP&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$remote_addr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Forwarded-For&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$proxy_add_x_forwarded_for&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_set_header&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;X-Forwarded-Proto&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$scheme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;proxy_pass&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;http://127.0.0.1:3080&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;server&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;listen&lt;/span&gt;          &lt;span class=&quot;mi&quot;&gt;80&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;server_name&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;vw.231111.xyz&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kn&quot;&gt;location&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
                &lt;span class=&quot;kn&quot;&gt;rewrite&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;^/(.*)&lt;/span&gt;$ &lt;span class=&quot;s&quot;&gt;https://vw.231111.xyz/&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$1&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;permanent&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;重载 Nginx 配置文件&lt;/p&gt;
&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;nginx &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; reload
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;五注册使用&quot;&gt;五、注册使用&lt;/h2&gt;
&lt;p&gt;访问网站，注册账号使用。如果只是个人使用，一定要在注册完成后，编辑 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker-compose.yml&lt;/code&gt; 关闭注册。&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;最后，数据无价，记得备份！&lt;/p&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="tutorial" /><category term="教程" /><summary type="html">一、安装 docker wget -qO- https://get.docker.com/ | bash</summary></entry><entry><title type="html">小米 6 正式退役</title><link href="https://sunete.github.io//diary/bye-mi6/" rel="alternate" type="text/html" title="小米 6 正式退役" /><published>2022-07-21T00:00:00+08:00</published><updated>2022-07-21T00:00:00+08:00</updated><id>https://sunete.github.io//diary/bye-mi6</id><content type="html" xml:base="https://sunete.github.io//diary/bye-mi6/">&lt;p&gt;前年在小米举办 &lt;a href=&quot;https://sunete.github.io/diary/replace-mi-6-battery/&quot;&gt;活动&lt;/a&gt; 的时候 49 元换了一次电池，今年电池又不行了，即便是轻度使用，也要一天 2 冲，重度使用甚至要一天 4 冲，出门充电宝必须带在身边。更惨的是，前段时间不小心把手机掉在地上，背壳直接摔碎。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220721150711.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220721150711.png&quot; alt=&quot;20220721150711&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;回头一想，2015 年购买的小米 6 性能早就跟不上了，4 + 64 的配置打开微信淘宝要等好几秒，扫码卡半天，已经服役了近 5 年的时间，也该换手机了，于是就开始物色中意的手机。&lt;/p&gt;

&lt;p&gt;换机之前刚好临近 Redmi K50 发布，性价比不错，虽说拍照不太行，但是我本身对拍照没什么要求，所以计划发布就入手。但是 K50 发布后，看了看网上发的各种 K50 的问题，比如后摄歪、MIUI 超多的 Bug，我直接放弃了 K50。&lt;/p&gt;

&lt;p&gt;K50 不考虑了，其他的品牌看了一圈，没有太喜欢的，以前玩玩王者，现在也已经退游不玩了，索性就考虑换 iPhone。&lt;/p&gt;

&lt;p&gt;新机太贵，就选二手的，在数字尾巴和 V2EX 上逛了几天，最终 2200 元在 V2 收了一个 128 G 美版 iPhone 11，原机主一直贴膜使用，屏幕和背壳都没有划痕，换过一次电池，效率 91%，可以说很不错了。&lt;/p&gt;

&lt;p&gt;卖家发货三天后收到了手机，视频开箱验机没有任何问题就直接验收了。即便是几年前的 iPhone 运行起来也很流畅，秒杀我的小米 6，这也是安卓无法匹敌的。&lt;/p&gt;

&lt;p&gt;至此，我的小米 6 正式退役，iPhone 成为我的主力机，我也从安卓，转投到了苹果阵营。&lt;/p&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="diary" /><category term="日记" /><summary type="html">前年在小米举办 活动 的时候 49 元换了一次电池，今年电池又不行了，即便是轻度使用，也要一天 2 冲，重度使用甚至要一天 4 冲，出门充电宝必须带在身边。更惨的是，前段时间不小心把手机掉在地上，背壳直接摔碎。</summary></entry><entry><title type="html">Ubuntu20.04配置开机自启动脚本</title><link href="https://sunete.github.io//tutorial/rc-local/" rel="alternate" type="text/html" title="Ubuntu20.04配置开机自启动脚本" /><published>2022-05-24T00:00:00+08:00</published><updated>2022-05-24T00:00:00+08:00</updated><id>https://sunete.github.io//tutorial/rc-local</id><content type="html" xml:base="https://sunete.github.io//tutorial/rc-local/">&lt;p&gt;Linux 中的 rc-local 服务是一个开机自动启动的，调用开发人员或系统管理员编写的可执行脚本或命令的，它的启动顺序是在系统所有服务加载完成之后执行。&lt;/p&gt;

&lt;p&gt;Ubuntu 20.04 系统已经默认安装了 rc-local.service 服务，但是不知什么原因系统把这个服务给“隐蔽”了，所以如果不做一番操作是无法使用的。&lt;/p&gt;

&lt;h2 id=&quot;配置&quot;&gt;配置&lt;/h2&gt;

&lt;p&gt;将 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rc-local&lt;/code&gt; 服务设置为开机自启动(本文操作都在 root 用户下，或使用 sudo)。&lt;/p&gt;

&lt;p&gt;首先将 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rc-local.service&lt;/code&gt; 文件复制到 system 目录下&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cp /usr/lib/systemd/system/rc-local.service /etc/systemd/system/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;新建 rc.local 文件&lt;/p&gt;

&lt;p&gt;Ubuntu 20.04 中 /etc/ 目录下是没有 rc.local 文件的，需要我们手动建立一个。&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;touch /etc/rc.local
chmod 755 /etc/rc.local
echo '''#!/bin/bash''' &amp;gt;&amp;gt; /etc/rc.local
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;设置开机启动 rc-local&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;systemctl start rc-local
systemctl enable rc-local
init 6
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;重启系统后，通过命令 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;systemctl status rc-local&lt;/code&gt; 查看服务已经正常开启了。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220524103637.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220524103637.png&quot; alt=&quot;20220524103637&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;在 rc.local 中添加你开机需要自动执行的脚本&lt;/p&gt;

&lt;p&gt;至此，你就可以在 rc.local 文件中添加你想添加的开机自启动脚本了。&lt;/p&gt;

&lt;p&gt;转载自 51CTO : https://blog.51cto.com/u_3436241/5090917&lt;/p&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="tutorial" /><category term="教程" /><category term="Linux" /><category term="服务器" /><summary type="html">Linux 中的 rc-local 服务是一个开机自动启动的，调用开发人员或系统管理员编写的可执行脚本或命令的，它的启动顺序是在系统所有服务加载完成之后执行。</summary></entry><entry><title type="html">青龙安装及对接傻妞教程</title><link href="https://sunete.github.io//tutorial/qinglong-shaniu/" rel="alternate" type="text/html" title="青龙安装及对接傻妞教程" /><published>2022-05-19T00:00:00+08:00</published><updated>2022-05-19T00:00:00+08:00</updated><id>https://sunete.github.io//tutorial/qinglong-shaniu</id><content type="html" xml:base="https://sunete.github.io//tutorial/qinglong-shaniu/">&lt;p&gt;Ubuntu 20.04 服务器安装青龙，并对接傻妞机器人。&lt;/p&gt;

&lt;h2 id=&quot;安装青龙&quot;&gt;安装青龙&lt;/h2&gt;

&lt;p&gt;执行以下命令，完成后就能通过 http://ip:5700 访问面板。&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;docker run &lt;span class=&quot;nt&quot;&gt;-dit&lt;/span&gt; &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$PWD&lt;/span&gt;/ql/config:/ql/config &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$PWD&lt;/span&gt;/ql/scripts:/ql/scripts &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$PWD&lt;/span&gt;/ql/repo:/ql/repo &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$PWD&lt;/span&gt;/ql/log:/ql/log &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$PWD&lt;/span&gt;/ql/db:/ql/db &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$PWD&lt;/span&gt;/ql/jbot:/ql/jbot &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$PWD&lt;/span&gt;/ql/raw:/ql/raw &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; 5700:5600 &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;--name&lt;/span&gt; qinglong &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;--hostname&lt;/span&gt; qinglong &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;--restart&lt;/span&gt; always &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
whyour/qinglong:latest
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;建议更改 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;5700&lt;/code&gt; 端口为其他端口，防止青龙端口被扫描爆破。&lt;/p&gt;

&lt;p&gt;如不需要最新版青龙，可自行切换，只需将 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;latest&lt;/code&gt; 改成相应版本号，如 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;2.10.13&lt;/code&gt;。&lt;/p&gt;

&lt;h2 id=&quot;安装脚本依赖&quot;&gt;安装脚本依赖&lt;/h2&gt;

&lt;p&gt;为防止出现错误 Error: Cannot find module ‘xx’，先安装脚本依赖。&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;docker &lt;span class=&quot;nb&quot;&gt;exec&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-it&lt;/span&gt; qinglong bash
curl &lt;span class=&quot;nt&quot;&gt;-fsSL&lt;/span&gt; https://ghproxy.com/https://raw.githubusercontent.com/shufflewzc/QLDependency/main/Shell/QLOneKeyDependency.sh | sh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;等待安装完成后 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;exit&lt;/code&gt; 退出。&lt;/p&gt;

&lt;h2 id=&quot;安装傻妞&quot;&gt;安装傻妞&lt;/h2&gt;

&lt;p&gt;使用一键安装脚本安装傻妞，非常简单。&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# 国内服务器用户&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;sillyGirl&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;arm64&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;uname&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;x86_64&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;then &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;amd64&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;then &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;wget http://github.yanyuge.workers.dev/https://github.com/cdle/&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;/releases/download/main/&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;_linux_&lt;span class=&quot;nv&quot;&gt;$a&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-O&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;chmod &lt;/span&gt;777 &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;pkill &lt;span class=&quot;nt&quot;&gt;-9&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/&lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 国外服务器用户&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;sillyGirl&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;arm64&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;uname&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;x86_64&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;then &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;amd64&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;then &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;wget https://github.com/cdle/&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;/releases/download/main/&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;_linux_&lt;span class=&quot;nv&quot;&gt;$a&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-O&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;chmod &lt;/span&gt;777 &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;pkill &lt;span class=&quot;nt&quot;&gt;-9&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;/&lt;span class=&quot;nv&quot;&gt;$s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;安装完成后会出现『终端交互不可用，运行带-t参数即可启用』，按 &lt;strong&gt;Ctrl+C&lt;/strong&gt; 退出。&lt;/p&gt;

&lt;h2 id=&quot;配置傻妞并对接&quot;&gt;配置傻妞并对接&lt;/h2&gt;

&lt;p&gt;cd 进入 sillyGirl 文件夹，输入命令 &lt;strong&gt;./sillyGirl -t&lt;/strong&gt; 进行交互模式配置傻妞。&lt;/p&gt;

&lt;p&gt;使用 set 命令设置傻妞机器人，这里建议先对接 QQ 机器人，或者电报机器人后在软件里操作更方便。&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# 基础配置&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl name 傻妞 &lt;span class=&quot;c&quot;&gt;#设置傻妞机器人名&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl port 8080 &lt;span class=&quot;c&quot;&gt;#设置傻妞http服务端口&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl duration 5 &lt;span class=&quot;c&quot;&gt;#傻妞消息撤回等待时间，单位秒&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl update_notify &lt;span class=&quot;nb&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#傻妞自动升级是否通知&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl auto_update &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#是否开启傻妞自动更新&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;reply 打赏 &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;CQ:image,file&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;https://xxxxxxx] &lt;span class=&quot;c&quot;&gt;#傻妞内置赞赏码&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl enable_http_server &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#是否启动http服务，对接微信公众号等需要，建议开启&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl ignore_notify &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# 傻妞忽略通知命令，默认忽略。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq spy_on ? &lt;span class=&quot;c&quot;&gt;# 返利间谍模式&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl pushplus &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;token] &lt;span class=&quot;c&quot;&gt;# 管理员推送绑定pushplus指令&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl recall 关键词1&amp;amp;关键词2... &lt;span class=&quot;c&quot;&gt;# 关键词撤回功能#关键词支持正则表达式。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;reply ? ? &lt;span class=&quot;c&quot;&gt;## 关键词回复功能 第一个问号是支持正则的关键词，第二个问号是回复的内容。&lt;/span&gt;
delete reply ? &lt;span class=&quot;c&quot;&gt;#删除用set设置的关键词回复&lt;/span&gt;
reply ? ? &lt;span class=&quot;c&quot;&gt;## 关键词回复功能 第一个问号是支持正则的关键词，第二个问号是回复的内容。&lt;/span&gt;
reply ? nil &lt;span class=&quot;c&quot;&gt;##删除reply设置的关键词回复，请区别于用set reply设置关键词的删除方法。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl recall &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\s\S&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;^0-9a-zA-Z&lt;span class=&quot;o&quot;&gt;=][&lt;/span&gt;0-9a-zA-Z]&lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;14&lt;span class=&quot;o&quot;&gt;}[&lt;/span&gt;^0-9a-zA-Z&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;][&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\s\S&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;# 屏蔽京东口令小妙招&lt;/span&gt;
重启 &lt;span class=&quot;c&quot;&gt;#重启并静默运行&lt;/span&gt;
命令 &lt;span class=&quot;c&quot;&gt;#获取傻妞的命令列表&lt;/span&gt;
守护傻妞 &lt;span class=&quot;c&quot;&gt;#解决开机自启和崩溃重启&lt;/span&gt;
systemctl disable sillyGirl &lt;span class=&quot;c&quot;&gt;#linux命令，关闭守护模式，守护模式会导致没法自动升级&lt;/span&gt;
systemctl stop sillyGirl &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; systemctl disable sillyGirl &lt;span class=&quot;c&quot;&gt;#linux命令，遇见傻妞被被杀死，请执行命令&lt;/span&gt;
docker-compose up &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--build&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#linux命令，docker运行&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 对接qq&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq tempMessageGroupCode ? &lt;span class=&quot;c&quot;&gt;#设置qq临时消息默认群号&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq onGroups g1&amp;amp;g2&amp;amp;g3... &lt;span class=&quot;c&quot;&gt;#指定要监听的qq群&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq auto_friend &lt;span class=&quot;nb&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#设置是否自动同意好友请求,似乎没用，不用在意。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq onself &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#设置是否对监听自身消息&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq default_bot 主机器人账号 &lt;span class=&quot;c&quot;&gt;#傻妞支持对接多个qq，设置主qq机器人&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq masters q1&amp;amp;q2&amp;amp;q3... 设置qq管理员
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qq notifier q1&amp;amp;q2&amp;amp;q3... 设置接受通知的qq账号

&lt;span class=&quot;c&quot;&gt;# 对接telegtam&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;tg token ? &lt;span class=&quot;c&quot;&gt;#设置telegram机器人token&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;tg http_proxy ? &lt;span class=&quot;c&quot;&gt;#设置telegram机器人代理&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;tg masters t1&amp;amp;t2&amp;amp;t3... &lt;span class=&quot;c&quot;&gt;#设置telegram机器人管理员&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;tg notifier t1&amp;amp;t2&amp;amp;t3... 设置接受通知的telegram账号

&lt;span class=&quot;c&quot;&gt;# 对接微信公众号&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wxmp app_id ? &lt;span class=&quot;c&quot;&gt;#设置微信公众平台app_id&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wxmp app_secret ? &lt;span class=&quot;c&quot;&gt;#设置微信公众平台app_secret &lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wxmp token ? &lt;span class=&quot;c&quot;&gt;#设置微信公众平台token&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wxmp encoding_aes_key ? &lt;span class=&quot;c&quot;&gt;#设置微信公众平台encoding_aes_key&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wxmp masters w1&amp;amp;w2&amp;amp;w3 &lt;span class=&quot;c&quot;&gt;#设置微信公众平台管理员&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wxmp subscribe_reply ? &lt;span class=&quot;c&quot;&gt;#设置公众号关注事件回复&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wxmp default_reply 无法回复该消息 设置公众号默认回复

&lt;span class=&quot;c&quot;&gt;# 对接微信-可爱猫&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx api_url ? &lt;span class=&quot;c&quot;&gt;#设置插件调用地址，确保傻妞可以访问可爱猫端口&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx keaimao_dynamic_ip &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#设置可爱猫是否动态网络地址，适用于可爱猫家庭宽带而傻妞在云服务器的情况下&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx keaimao_port ? &lt;span class=&quot;c&quot;&gt;#设置可爱猫端口&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx relay_mode &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#设置图片转发模式，否则可能会出现此图片来自xx未经允许不得使用的提示&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx relaier ? &lt;span class=&quot;c&quot;&gt;#设置指定转发地址，格式为 https://域名/relay?url=%s，不知道不用填&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx sillyGirl_dynamic_ip &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#设置傻妞是否动态网络地址，适用于傻妞家庭宽带而可爱猫在云服务器的情况下&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl enable_http_server &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#启动http服务，一定要打开&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 对接微信-vlw&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx vlw_addr http://vlw插件ip:端口 &lt;span class=&quot;c&quot;&gt;#设置插件调用地址，对应之前插件配置的 序号3 HTTP 外网API调用地址&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx vlw_token XXX &lt;span class=&quot;c&quot;&gt;#设置对接vlw插件的token，对应之前插件配置的 序号2 API调用Token，例如sillyGirl&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx relay_mode &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#设置图片转发模式，否则可能会出现此图片来自xx未经允许不得使用的提示。不懂就不要设置了。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;wx relaier ? &lt;span class=&quot;c&quot;&gt;#设置指定转发地址，格式为 https://域名/relay?url=%s，这个我也不知道干嘛的，不知道就别设置了。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl enable_http_server &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#启动http服务，一定要打开&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 对接青龙&lt;/span&gt;
青龙管理 &lt;span class=&quot;c&quot;&gt;#多容器青龙配置&lt;/span&gt;
ql spy &lt;span class=&quot;c&quot;&gt;#自定义监听变量运行青龙指定脚本功能&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 使用命令&lt;/span&gt;
ql config &lt;span class=&quot;c&quot;&gt;#获取青龙config.sh设置的内容，但我没测试出来结果，等猫咪大佬解惑&lt;/span&gt;
ql envs &lt;span class=&quot;c&quot;&gt;#获取青龙config.sh内设置的所有环境变量内容，但我没测试出来结果，等猫咪大佬解惑&lt;/span&gt;
ql &lt;span class=&quot;nb&quot;&gt;env &lt;/span&gt;get ? &lt;span class=&quot;c&quot;&gt;#获取青龙config.sh内指定环境变量的内容，仅精确匹配&lt;/span&gt;
ql &lt;span class=&quot;nb&quot;&gt;env &lt;/span&gt;find ? &lt;span class=&quot;c&quot;&gt;#查找青龙config.sh内指定的环境变量内容，支持模糊匹配&lt;/span&gt;
ql &lt;span class=&quot;nb&quot;&gt;env set&lt;/span&gt; ? ? &lt;span class=&quot;c&quot;&gt;#在青龙config.sh内设置环境变量&lt;/span&gt;
ql &lt;span class=&quot;nb&quot;&gt;env &lt;/span&gt;remark ? ? &lt;span class=&quot;c&quot;&gt;#字面意思是给环境变量设置备注，但我没测试出来结果，等猫咪大佬解惑&lt;/span&gt;
ql &lt;span class=&quot;nb&quot;&gt;env &lt;/span&gt;disable ? &lt;span class=&quot;c&quot;&gt;#禁用（注释）在青龙config.sh内设置的环境变量&lt;/span&gt;
ql &lt;span class=&quot;nb&quot;&gt;env enable&lt;/span&gt; ? &lt;span class=&quot;c&quot;&gt;#启用（取消注释）在青龙config.sh内设置的环境变量&lt;/span&gt;
ql raw ? &lt;span class=&quot;c&quot;&gt;#下载raw链接的js&lt;/span&gt;
ql task ? &lt;span class=&quot;c&quot;&gt;#在青龙里面运行指定的js&lt;/span&gt;
ql repo ? &lt;span class=&quot;c&quot;&gt;#在青龙里面拉库，例：ql repo https://github.com/cdle/carry.git&lt;/span&gt;
ql cookie status &lt;span class=&quot;c&quot;&gt;#查询青龙里cookie状态&lt;/span&gt;
ql crons &lt;span class=&quot;c&quot;&gt;#获取青龙所有定时任务，但我没测试出来结果，等猫咪大佬解惑&lt;/span&gt;
ql cron status ? &lt;span class=&quot;c&quot;&gt;#查看青龙指定定时任务的状态&lt;/span&gt;
ql cron run ? &lt;span class=&quot;c&quot;&gt;#运行青龙定时任务，支持模糊匹配&lt;/span&gt;
ql cron stop ? &lt;span class=&quot;c&quot;&gt;#停止运行青龙定时任务，支持模糊匹配&lt;/span&gt;
ql cron &lt;span class=&quot;nb&quot;&gt;enable&lt;/span&gt; ? &lt;span class=&quot;c&quot;&gt;#启用青龙定时任务，支持模糊匹配&lt;/span&gt;
ql cron disable ? &lt;span class=&quot;c&quot;&gt;#禁用青龙定时任务，支持模糊匹配&lt;/span&gt;
ql cron find ? &lt;span class=&quot;c&quot;&gt;#查找青龙定时任务，支持模糊匹配&lt;/span&gt;
ql cron logs ? &lt;span class=&quot;c&quot;&gt;#查找青龙定时任务运行日志，支持模糊匹配&lt;/span&gt;
ql cron hide duplicate &lt;span class=&quot;c&quot;&gt;#隐藏青龙重复定时任务&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;qinglong autoCronHideDuplicate &lt;span class=&quot;nb&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#关闭自动隐藏任务命令&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 对接芝士&lt;/span&gt;
h &lt;span class=&quot;c&quot;&gt;#短信登录&lt;/span&gt;
q &lt;span class=&quot;c&quot;&gt;#退出短信登录&lt;/span&gt;
登录 &lt;span class=&quot;c&quot;&gt;#短信登录&lt;/span&gt;
登陆 &lt;span class=&quot;c&quot;&gt;#短信登录&lt;/span&gt;
查询 ? &lt;span class=&quot;c&quot;&gt;#查询指定账号的资产&lt;/span&gt;
资产推送 &lt;span class=&quot;c&quot;&gt;#向所有绑定了账号的用户推送资产&lt;/span&gt;
查询 &lt;span class=&quot;c&quot;&gt;#查询当前社交账号绑定的所有账号资产&lt;/span&gt;
关闭?通知 &lt;span class=&quot;c&quot;&gt;#关闭指定活动任务通知&lt;/span&gt;
任务通知 &lt;span class=&quot;c&quot;&gt;#推送账号失效、果园和萌宠成熟以及未继续种植通知。有私聊和群聊@两种方式，默认私聊。&lt;/span&gt;
账号管理 &lt;span class=&quot;c&quot;&gt;#自定义任务通知等&lt;/span&gt;
推送管理 &lt;span class=&quot;c&quot;&gt;#用户设置推送&lt;/span&gt;
jd asset ? &lt;span class=&quot;c&quot;&gt;#查询指定账号的资产&lt;/span&gt;
jd imOf ? &lt;span class=&quot;c&quot;&gt;#获取绑定的社交账号，仅精确匹配pt_pin值&lt;/span&gt;
jd find ? &lt;span class=&quot;c&quot;&gt;#查找对应账号的编号、pt_pin值、备注等信息，支持编号、pt_pin值、备注查询，支持连号查询&lt;/span&gt;
jd exchange ? ? &lt;span class=&quot;c&quot;&gt;#交换两个账号的序号位置&lt;/span&gt;
jd &lt;span class=&quot;nb&quot;&gt;enable&lt;/span&gt; ? &lt;span class=&quot;c&quot;&gt;#启用指定账号&lt;/span&gt;
jd disable ? &lt;span class=&quot;c&quot;&gt;#禁用指定账号&lt;/span&gt;
jd remark ? ? &lt;span class=&quot;c&quot;&gt;#备注指定账号&lt;/span&gt;
jd remove ? &lt;span class=&quot;c&quot;&gt;#跨容器删除ck，?可以匹配整个ck和相应的备注。芝士只有这一种方式删除ck&lt;/span&gt;
jd send ? ? &lt;span class=&quot;c&quot;&gt;#给指定账号发送消息&lt;/span&gt;
jd unbind &lt;span class=&quot;c&quot;&gt;#解绑该社交账号下的某栋账号&lt;/span&gt;
jd check ? ? &lt;span class=&quot;c&quot;&gt;#不知道干嘛的，第一个问号是pin值，第二个问号是青龙clientid&lt;/span&gt;
jd myCookie &lt;span class=&quot;c&quot;&gt;#查询绑定ck&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;pt_key&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=([&lt;/span&gt;^&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;+&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;pt_pin&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=([&lt;/span&gt;^&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;+&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#发送ck提交到青龙&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;pin&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=([&lt;/span&gt;^&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;+&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;wskey&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=([&lt;/span&gt;^&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\s&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;+&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#发送wskey提交到青龙&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;packetId&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;?&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&amp;amp;|&amp;amp;amp&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;currentActId &lt;span class=&quot;c&quot;&gt;#极速推一推助力&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie notify_mode group &lt;span class=&quot;c&quot;&gt;#任务通知设置群聊模式&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie qqGroup ? &lt;span class=&quot;c&quot;&gt;#任务通知设置qq群聊ID&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie wxGroup ? &lt;span class=&quot;c&quot;&gt;#任务通知设置微信群聊ID&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;pinQQ pt_pin qq号码 &lt;span class=&quot;c&quot;&gt;#ck账号绑定qq号码，例 set pinQQ jd_xxxxxx 123456&lt;/span&gt;
delete pinQQ pt_pin，#取消ck账号绑定qq号码，例 delete pinQQ jd_xxxxxx
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;pinTG pt_pin TGID &lt;span class=&quot;c&quot;&gt;#ck账号绑定TG账号，TGID找getmyid获取&lt;/span&gt;
delete pinTG pt_pin &lt;span class=&quot;c&quot;&gt;#取消ck账号绑定TG账号&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;pinWX pt_pin 微信号 &lt;span class=&quot;c&quot;&gt;#微信给傻妞bot发送myuid获取，其实就是你的微信号，不是微信昵称。&lt;/span&gt;
delete pinWX pt_pin &lt;span class=&quot;c&quot;&gt;#取消ck账号绑定微信账号&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;pinWXMP pt_pin &lt;span class=&quot;c&quot;&gt;#微信公众号用户id #给公众号发送myuid获取&lt;/span&gt;
delete pinWXMP pt_pin &lt;span class=&quot;c&quot;&gt;#取消ck账号绑定微信公众号用户号&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jdWSCK update 56 &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#设置wskey自动转cooke定时：&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie query_wait_time &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;限制秒数] &lt;span class=&quot;c&quot;&gt;#限制查询频率 例:set jd_cookie query_wait_time 60&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie adong_addr 阿东ip:端口 &lt;span class=&quot;c&quot;&gt;#设置阿东登录地址，不需要http，仅支持阿东1.7及以下版本&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie selfQid 机器人qq账号 &lt;span class=&quot;c&quot;&gt;#设置阿东qq机器人账号，仅支持阿东1.7及以下版本&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie nolan_addr http://诺兰ip:端口 &lt;span class=&quot;c&quot;&gt;#设置诺兰登陆地址，需要http&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie login_num ? &lt;span class=&quot;c&quot;&gt;#设置登录坑位&lt;/span&gt;
delete jd_cookie adong_addr 例：delete jd_cookie adong_addr ip:5701 &lt;span class=&quot;c&quot;&gt;#删除阿东地址&lt;/span&gt;
delete jd_cookie nolan_addr 例：delete jd_cookie nolan_addr http://ip:5701 &lt;span class=&quot;c&quot;&gt;#删除nolan地址&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie xdd_url ?  &lt;span class=&quot;c&quot;&gt;#短信登录接入xdd指令，格式http://IP地址:端口/api/login/smslogin&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie xdd_token ? &lt;span class=&quot;c&quot;&gt;#对接xdd，额外设置参数&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie asset_push ? &lt;span class=&quot;c&quot;&gt;#设置定时推送&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie ad ? &lt;span class=&quot;c&quot;&gt;#自定义广告，成功登录后发送&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie asset_query_alias xxxxxxx &lt;span class=&quot;c&quot;&gt;#自定义查询口令，变相实现屏蔽查询口令。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie disable_notify &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#关闭推送指令，不想收到请jd unbind&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie enable_auto_update &lt;span class=&quot;nb&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#自动检测ck有效性开关，关闭则设置为false。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie enable_yad &lt;span class=&quot;nb&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;c&quot;&gt;#跳过云上阿东。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie login_tip xxx &lt;span class=&quot;c&quot;&gt;#你也可以自定义登录提示&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;jd_cookie sms_tip xxx &lt;span class=&quot;c&quot;&gt;#接收短信验证码提示&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;silly http_addr http://192.168.31.233:8080 &lt;span class=&quot;c&quot;&gt;#失效ck无法禁用的，检查在青龙自动生成的傻妞地址GOTIFY_URL，特定网络环境手动设置&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 对接小爱同学&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#小爱同学，可以指定API，对小爱说对话模式即可开启连续对话模式，闭嘴可关闭。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl 小爱同学 http://81.70.100.130/api/xiaoai.php?msg&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;%s&amp;amp;n&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;text &lt;span class=&quot;c&quot;&gt;#挂了就自己换&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl 小爱同学 http://jiuli.xiaoapi.cn/i/xiaoai_tts.php?msg&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;%s &lt;span class=&quot;c&quot;&gt;#挂了就自己换&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;sillyGirl 小爱同学gjson text &lt;span class=&quot;c&quot;&gt;# 处理json格式数据的小爱api，不填获取整个文本&lt;/span&gt;
silly delete 小爱同学gjson &lt;span class=&quot;c&quot;&gt;# 删除处理json格式数据的小爱api&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 使用方法：&lt;/span&gt;
1、唤起小爱：发送“小爱+想说的话”，例如：小爱今天天气。
2、对话模式：发送“小爱对话模式”开启，发送“闭嘴”结束。
3、成语接龙：发送“成语接龙”开始。这个可应该不是小爱同学的功能，但我懒得单独写它了。

&lt;span class=&quot;c&quot;&gt;# 对接短网址&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;dwz address ? &lt;span class=&quot;c&quot;&gt;#设置短网址服务地址，填傻妞对外的可以访问的地址。&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;dwz prefix d &lt;span class=&quot;c&quot;&gt;#设置短网址服务前缀&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# 使用方法&lt;/span&gt;
发送“短网址+你想要转换的网址” &lt;span class=&quot;c&quot;&gt;#例：短网址 http://kejiwanjia.com/&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# 对接返利&lt;/span&gt;
fanli_vip &lt;span class=&quot;c&quot;&gt;#vip用户对接&lt;/span&gt;
fanli_edit &lt;span class=&quot;c&quot;&gt;#进入返利傻瓜配置&lt;/span&gt;
返利设置 &lt;span class=&quot;c&quot;&gt;#进入返利傻瓜配置&lt;/span&gt;
返利配置 &lt;span class=&quot;c&quot;&gt;#进入返利傻瓜配置&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;配置完成后，执行 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;./sillyGirl -d&lt;/code&gt; 后台静默运行傻妞。&lt;/p&gt;

&lt;h2 id=&quot;服务器管理傻妞&quot;&gt;服务器管理傻妞&lt;/h2&gt;

&lt;p&gt;启动及停止相关命令&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;启动：systemctl start sillyGirl
停止：systemctl stop sillyGirl
重启：systemctl restart sillyGirl
禁用：systemctl disable sillyGirl
启用：systemctl &lt;span class=&quot;nb&quot;&gt;enable &lt;/span&gt;sillyGirl
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;杀掉傻妞后台进程&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;ps &lt;span class=&quot;nt&quot;&gt;-A&lt;/span&gt;|grep sillyGirl &lt;span class=&quot;c&quot;&gt;##显示进程号&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;kill&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-9&lt;/span&gt; xxxxxx &lt;span class=&quot;c&quot;&gt;##杀掉进程&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="tutorial" /><category term="教程" /><category term="服务器" /><category term="Linux" /><summary type="html">Ubuntu 20.04 服务器安装青龙，并对接傻妞机器人。</summary></entry><entry><title type="html">软件愿望清单</title><link href="https://sunete.github.io//diary/software-wishlist/" rel="alternate" type="text/html" title="软件愿望清单" /><published>2022-05-17T00:00:00+08:00</published><updated>2022-05-17T00:00:00+08:00</updated><id>https://sunete.github.io//diary/software-wishlist</id><content type="html" xml:base="https://sunete.github.io//diary/software-wishlist/">&lt;p&gt;在刚接触网络的时候，一直认为网络上所有的东西都应该是免费共享的，对于电脑和手机上的软件来说，我用的几乎都是免费版，即便是付费软件，也会去找破解版使用。不过最近几年，我的思想有了一些转变 —— 虽然互联网提倡共享精神，但是我们也要去尊重别人的劳动成果和知识产权。&lt;/p&gt;

&lt;p&gt;所以最近我付费购买几款常用的软件 —— &lt;a href=&quot;https://www.internetdownloadmanager.com/&quot;&gt;IDM&lt;/a&gt; 、 &lt;a href=&quot;https://www.bandisoft.com/bandizip/&quot;&gt;Bandizip&lt;/a&gt; 和 &lt;a href=&quot;https://play.google.com/store/apps/details?id=com.dv.adm&amp;amp;hl=zh&amp;amp;gl=US&quot;&gt;ADM&lt;/a&gt;，而不再用破解版。&lt;/p&gt;

&lt;p&gt;还有很多付费软件想买的，但是并不是刚需，所以暂时列一个愿望单，等打折再入手。&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;软件&lt;/th&gt;
      &lt;th&gt;平台&lt;/th&gt;
      &lt;th&gt;价格&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Typora&lt;/td&gt;
      &lt;td&gt;Windows/macOS&lt;/td&gt;
      &lt;td&gt;￥89&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Fences 4&lt;/td&gt;
      &lt;td&gt;Windows&lt;/td&gt;
      &lt;td&gt;￥169&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Snipaste&lt;/td&gt;
      &lt;td&gt;Windows/macOS&lt;/td&gt;
      &lt;td&gt;￥99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;FinalShell 专业版&lt;/td&gt;
      &lt;td&gt;Windows&lt;/td&gt;
      &lt;td&gt;￥128&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;思源笔记&lt;/td&gt;
      &lt;td&gt;Windows&lt;/td&gt;
      &lt;td&gt;￥148&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;A Dark Room®&lt;/td&gt;
      &lt;td&gt;Android&lt;/td&gt;
      &lt;td&gt;$1.99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;MX Player Pro&lt;/td&gt;
      &lt;td&gt;Android&lt;/td&gt;
      &lt;td&gt;$5.99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;JuiceSSH&lt;/td&gt;
      &lt;td&gt;Android&lt;/td&gt;
      &lt;td&gt;$4.99&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;欧路词典会员&lt;/td&gt;
      &lt;td&gt;Android/iOS/Windows/macOS&lt;/td&gt;
      &lt;td&gt;￥246&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;钱迹永久会员&lt;/td&gt;
      &lt;td&gt;Android/iOS/Windows/macOS&lt;/td&gt;
      &lt;td&gt;￥128&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;划词翻译会员&lt;/td&gt;
      &lt;td&gt;Chrome 插件&lt;/td&gt;
      &lt;td&gt;￥128&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Mirages 主题&lt;/td&gt;
      &lt;td&gt;Typecho 主题&lt;/td&gt;
      &lt;td&gt;￥88&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;sm.ms 永久会员&lt;/td&gt;
      &lt;td&gt;图片存储&lt;/td&gt;
      &lt;td&gt;$59&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="diary" /><category term="日记" /><category term="分享" /><summary type="html">在刚接触网络的时候，一直认为网络上所有的东西都应该是免费共享的，对于电脑和手机上的软件来说，我用的几乎都是免费版，即便是付费软件，也会去找破解版使用。不过最近几年，我的思想有了一些转变 —— 虽然互联网提倡共享精神，但是我们也要去尊重别人的劳动成果和知识产权。</summary></entry><entry><title type="html">我在服务器上搭建了哪些服务</title><link href="https://sunete.github.io//diary/selfhosted-services/" rel="alternate" type="text/html" title="我在服务器上搭建了哪些服务" /><published>2022-03-31T00:00:00+08:00</published><updated>2022-03-31T00:00:00+08:00</updated><id>https://sunete.github.io//diary/selfhosted-services</id><content type="html" xml:base="https://sunete.github.io//diary/selfhosted-services/">&lt;p&gt;玩服务器已经有三四年的时间了，从最开始热心网友指导我搭建网站，到现在能够熟练的驾驭服务器，服务器带给我的便利越来越多。最近又新开出来了一台 4 核 24 G 的 Oracle Cloud 服务器，就准备把我常用的一些服务迁移到这台新的服务器上。本文就来罗列一下我常用的自建服务。&lt;/p&gt;

&lt;h2 id=&quot;1-bitwarden&quot;&gt;1. Bitwarden&lt;/h2&gt;

&lt;p&gt;以前密码都是自动保存在 Chrome 里，各个平台账号太多，几乎所有账号的密码都设置为同一个，这样如果遇上某个网站被撞库，密码泄露，后果不堪设想，于是萌生了使用密码管理服务的想法。在经过多方面对比后，选择了 Biwarden，对于一般用户来说，官方的免费服务完全够用，我自建主要是用到了自动填充二次验证的功能。&lt;/p&gt;

&lt;p&gt;服务器搭建的是 &lt;a href=&quot;https://github.com/dani-garcia/vaultwarden&quot;&gt;Vaultwarden&lt;/a&gt; —— Bitwarden 第三方 Docker 服务。&lt;/p&gt;

&lt;h2 id=&quot;2-telegram-rss-bot&quot;&gt;2. Telegram RSS Bot&lt;/h2&gt;

&lt;p&gt;我是一个重度 RSS 用户，加上平时经常用 &lt;a href=&quot;https://telegram.org/&quot;&gt;Telegram&lt;/a&gt;，就搭建了一个 RSS 机器人，搭配 RSSHub，订阅、接收 RSS 信息非常方便。&lt;/p&gt;

&lt;p&gt;有关 Telegram RSS 机器人的项目在 GitHub 很多，我选择的是下面几个。&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/FreshRSS/FreshRSS&quot;&gt;FreshRSS&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/iovxw/rssbot&quot;&gt;rssbot&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/fengkx/NodeRSSBot&quot;&gt;NodeRSSBot&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;3-青龙面板&quot;&gt;3. 青龙面板&lt;/h2&gt;

&lt;p&gt;神一般的存在，因为能定时运行 Python、JavaScript 代码，可以做很多事儿。我主要是用来挂京东签到脚本和论坛自动签到脚本，解放双手，不用每天去手动签到了。&lt;/p&gt;

&lt;p&gt;GitHub：https://github.com/whyour/qinglong&lt;/p&gt;

&lt;h2 id=&quot;4-cloudreve&quot;&gt;4. Cloudreve&lt;/h2&gt;

&lt;p&gt;自建网盘程序，可以挂载 OneDrive、Google Drive、SharePoint 等网盘，搭配 Aira2 离线下载一些电影电视剧，很方便。&lt;/p&gt;

&lt;p&gt;GitHub：https://github.com/cloudreve/Cloudreve&lt;/p&gt;

&lt;h2 id=&quot;5-哪吒监控&quot;&gt;5. 哪吒监控&lt;/h2&gt;

&lt;p&gt;目前手上服务器有 6 台，为了实时监控服务器状态，就搭建了一个哪吒监控。在监控网站可以实时显示服务器 CPU、内存和硬盘的使用情况。再说哪个站长没个探针呢，是吧？&lt;/p&gt;

&lt;p&gt;GitHub：https://github.com/naiba/nezha&lt;/p&gt;

&lt;h2 id=&quot;6-archisteamfarm&quot;&gt;6. ArchiSteamFarm&lt;/h2&gt;

&lt;p&gt;ASF，用来 Steam 挂卡，挂出来的卡牌可以出售或合成。&lt;/p&gt;

&lt;p&gt;GitHub：https://github.com/JustArchiNET/ArchiSteamFarm&lt;/p&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="diary" /><category term="VPS" /><summary type="html">玩服务器已经有三四年的时间了，从最开始热心网友指导我搭建网站，到现在能够熟练的驾驭服务器，服务器带给我的便利越来越多。最近又新开出来了一台 4 核 24 G 的 Oracle Cloud 服务器，就准备把我常用的一些服务迁移到这台新的服务器上。本文就来罗列一下我常用的自建服务。</summary></entry><entry><title type="html">中文文案排版指北</title><link href="https://sunete.github.io//tutorial/chinese-copywriting-guidelines/" rel="alternate" type="text/html" title="中文文案排版指北" /><published>2022-02-26T00:00:00+08:00</published><updated>2022-02-26T00:00:00+08:00</updated><id>https://sunete.github.io//tutorial/chinese-copywriting-guidelines</id><content type="html" xml:base="https://sunete.github.io//tutorial/chinese-copywriting-guidelines/">&lt;p&gt;统一中文文案、排版的相关用法，降低团队成员之间的沟通成本，增强网站气质。&lt;/p&gt;

&lt;p&gt;转载自 GitHub 项目：&lt;a href=&quot;https://github.com/sparanoid/chinese-copywriting-guidelines&quot;&gt;sparanoid/chinese-copywriting-guidelines&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;空格&quot;&gt;空格&lt;/h2&gt;

&lt;blockquote&gt;
  &lt;p&gt;「有研究显示，打字的时候不喜欢在中文和英文之间加空格的人，感情路都走得很辛苦，有七成的比例会在 34 岁的时候跟自己不爱的人结婚，而其余三成的人最后只能把遗产留给自己的猫。毕竟爱情跟书写都需要适时地留白。&lt;/p&gt;

  &lt;p&gt;与大家共勉之。」——&lt;a href=&quot;https://github.com/vinta/pangu.js&quot;&gt;vinta/paranoid-auto-spacing&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;中英文之间需要增加空格&quot;&gt;中英文之间需要增加空格&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;在 LeanCloud 上，数据存储是围绕 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AVObject&lt;/code&gt; 进行的。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;在LeanCloud上，数据存储是围绕&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AVObject&lt;/code&gt;进行的。&lt;/p&gt;

  &lt;p&gt;在 LeanCloud上，数据存储是围绕&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AVObject&lt;/code&gt; 进行的。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;完整的正确用法：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;在 LeanCloud 上，数据存储是围绕 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AVObject&lt;/code&gt; 进行的。每个 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AVObject&lt;/code&gt; 都包含了与 JSON 兼容的 key-value 对应的数据。数据是 schema-free 的，你不需要在每个 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AVObject&lt;/code&gt; 上提前指定存在哪些键，只要直接设定对应的 key-value 即可。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;例外：「豆瓣FM」等产品名词，按照官方所定义的格式书写。&lt;/p&gt;

&lt;h3 id=&quot;中文与数字之间需要增加空格&quot;&gt;中文与数字之间需要增加空格&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;今天出去买菜花了 5000 元。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;今天出去买菜花了 5000元。&lt;/p&gt;

  &lt;p&gt;今天出去买菜花了5000元。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;数字与单位之间需要增加空格&quot;&gt;数字与单位之间需要增加空格&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;我家的光纤入屋宽带有 10 Gbps，SSD 一共有 20 TB&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;我家的光纤入屋宽带有 10Gbps，SSD 一共有 20TB&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;例外：度 / 百分比与数字之间不需要增加空格：&lt;/p&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;今天是 233° 的高温。&lt;/p&gt;

  &lt;p&gt;新 MacBook Pro 有 15% 的 CPU 性能提升。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;今天是 233 ° 的高温。&lt;/p&gt;

  &lt;p&gt;新 MacBook Pro 有 15 % 的 CPU 性能提升。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;全角标点与其他字符之间不加空格&quot;&gt;全角标点与其他字符之间不加空格&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;刚刚买了一部 iPhone，好开心！&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;刚刚买了一部 iPhone ，好开心！&lt;/p&gt;

  &lt;p&gt;刚刚买了一部 iPhone， 好开心！&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;用-text-spacing-来挽救&quot;&gt;用 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;text-spacing&lt;/code&gt; 来挽救？&lt;/h3&gt;

&lt;p&gt;CSS Text Module Level 4 的 &lt;a href=&quot;https://www.w3.org/TR/css-text-4/#text-spacing-property&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;text-spacing&lt;/code&gt;&lt;/a&gt; 和 Microsoft 的 &lt;a href=&quot;https://msdn.microsoft.com/library/ms531164(v=vs.85).aspx&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-ms-text-autospace&lt;/code&gt;&lt;/a&gt; 可以实现自动为中英文之间增加空白。不过目前并未普及，另外在其他应用场景，例如 macOS、iOS、Windows 等用户界面目前并不存在这个特性，所以请继续保持随手加空格的习惯。&lt;/p&gt;

&lt;h2 id=&quot;标点符号&quot;&gt;标点符号&lt;/h2&gt;

&lt;h3 id=&quot;不重复使用标点符号&quot;&gt;不重复使用标点符号&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;德国队竟然战胜了巴西队！&lt;/p&gt;

  &lt;p&gt;她竟然对你说「喵」？！&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;德国队竟然战胜了巴西队！！&lt;/p&gt;

  &lt;p&gt;德国队竟然战胜了巴西队！！！！！！！！&lt;/p&gt;

  &lt;p&gt;她竟然对你说「喵」？？！！&lt;/p&gt;

  &lt;p&gt;她竟然对你说「喵」？！？！？？！！&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;全角和半角&quot;&gt;全角和半角&lt;/h2&gt;

&lt;p&gt;不明白什么是全角（全形）与半角（半形）符号？请查看维基百科条目『&lt;a href=&quot;https://zh.wikipedia.org/wiki/%E5%85%A8%E5%BD%A2%E5%92%8C%E5%8D%8A%E5%BD%A2&quot;&gt;全角和半角&lt;/a&gt;』。&lt;/p&gt;

&lt;h3 id=&quot;使用全角中文标点&quot;&gt;使用全角中文标点&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;嗨！你知道嘛？今天前台的小妹跟我说「喵」了哎！&lt;/p&gt;

  &lt;p&gt;核磁共振成像（NMRI）是什么原理都不知道？JFGI！&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;嗨! 你知道嘛? 今天前台的小妹跟我说 “喵” 了哎！&lt;/p&gt;

  &lt;p&gt;嗨!你知道嘛?今天前台的小妹跟我说”喵”了哎！&lt;/p&gt;

  &lt;p&gt;核磁共振成像 (NMRI) 是什么原理都不知道? JFGI!&lt;/p&gt;

  &lt;p&gt;核磁共振成像(NMRI)是什么原理都不知道?JFGI!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;数字使用半角字符&quot;&gt;数字使用半角字符&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;这个蛋糕只卖 1000 元。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;这个蛋糕只卖 １０００ 元。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;例外：在设计稿、宣传海报中如出现极少量数字的情形时，为方便文字对齐，是可以使用全角数字的。&lt;/p&gt;

&lt;h3 id=&quot;遇到完整的英文整句特殊名词其内容使用半角标点&quot;&gt;遇到完整的英文整句、特殊名词，其内容使用半角标点&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;乔布斯那句话是怎么说的？「Stay hungry, stay foolish.」&lt;/p&gt;

  &lt;p&gt;推荐你阅读《Hackers &amp;amp; Painters: Big Ideas from the Computer Age》，非常的有趣。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;乔布斯那句话是怎么说的？「Stay hungry，stay foolish。」&lt;/p&gt;

  &lt;p&gt;推荐你阅读《Hackers＆Painters：Big Ideas from the Computer Age》，非常的有趣。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;名词&quot;&gt;名词&lt;/h2&gt;

&lt;h3 id=&quot;专有名词使用正确的大小写&quot;&gt;专有名词使用正确的大小写&lt;/h3&gt;

&lt;p&gt;大小写相关用法原属于英文书写范畴，不属于本 wiki 讨论内容，在这里只对部分易错用法进行简述。&lt;/p&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;使用 GitHub 登录&lt;/p&gt;

  &lt;p&gt;我们的客户有 GitHub、Foursquare、Microsoft Corporation、Google、Facebook, Inc.。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;使用 github 登录&lt;/p&gt;

  &lt;p&gt;使用 GITHUB 登录&lt;/p&gt;

  &lt;p&gt;使用 Github 登录&lt;/p&gt;

  &lt;p&gt;使用 gitHub 登录&lt;/p&gt;

  &lt;p&gt;使用 gｲんĤЦ8 登录&lt;/p&gt;

  &lt;p&gt;我们的客户有 github、foursquare、microsoft corporation、google、facebook, inc.。&lt;/p&gt;

  &lt;p&gt;我们的客户有 GITHUB、FOURSQUARE、MICROSOFT CORPORATION、GOOGLE、FACEBOOK, INC.。&lt;/p&gt;

  &lt;p&gt;我们的客户有 Github、FourSquare、MicroSoft Corporation、Google、FaceBook, Inc.。&lt;/p&gt;

  &lt;p&gt;我们的客户有 gitHub、fourSquare、microSoft Corporation、google、faceBook, Inc.。&lt;/p&gt;

  &lt;p&gt;我们的客户有 gｲんĤЦ8、ｷouЯƧquﾑгє、๓เςг๏ร๏Ŧt ς๏гק๏гคtเ๏ภn、900913、ƒ4ᄃëв๏๏к, IПᄃ.。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;注意：当网页中需要配合整体视觉风格而出现全部大写／小写的情形，HTML 中请使用标淮的大小写规范进行书写；并通过 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;text-transform: uppercase;&lt;/code&gt;／&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;text-transform: lowercase;&lt;/code&gt; 对表现形式进行定义。&lt;/p&gt;

&lt;h3 id=&quot;不要使用不地道的缩写&quot;&gt;不要使用不地道的缩写&lt;/h3&gt;

&lt;p&gt;正确：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;我们需要一位熟悉 TypeScript、HTML5，至少理解一种框架（如 React、Next.js）的前端开发者。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;错误：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;我们需要一位熟悉 Ts、h5，至少理解一种框架（如 RJS、nextjs）的 FED。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;争议&quot;&gt;争议&lt;/h2&gt;

&lt;p&gt;以下用法略带有个人色彩，即：无论是否遵循下述规则，从语法的角度来讲都是&lt;strong&gt;正确&lt;/strong&gt;的。&lt;/p&gt;

&lt;h3 id=&quot;链接之间增加空格&quot;&gt;链接之间增加空格&lt;/h3&gt;

&lt;p&gt;用法：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;请 &lt;a href=&quot;#&quot;&gt;提交一个 issue&lt;/a&gt; 并分配给相关同事。&lt;/p&gt;

  &lt;p&gt;访问我们网站的最新动态，请 &lt;a href=&quot;#&quot;&gt;点击这里&lt;/a&gt; 进行订阅！&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;对比用法：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;请&lt;a href=&quot;#&quot;&gt;提交一个 issue&lt;/a&gt;并分配给相关同事。&lt;/p&gt;

  &lt;p&gt;访问我们网站的最新动态，请&lt;a href=&quot;#&quot;&gt;点击这里&lt;/a&gt;进行订阅！&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;简体中文使用直角引号&quot;&gt;简体中文使用直角引号&lt;/h3&gt;

&lt;p&gt;用法：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;「老师，『有条不紊』的『紊』是什么意思？」&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;对比用法：&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;“老师，‘有条不紊’的‘紊’是什么意思？”&lt;/p&gt;
&lt;/blockquote&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="tutorial" /><category term="教程" /><category term="博客" /><summary type="html">统一中文文案、排版的相关用法，降低团队成员之间的沟通成本，增强网站气质。</summary></entry><entry><title type="html">股票知识</title><link href="https://sunete.github.io//tutorial/stock-knowledge/" rel="alternate" type="text/html" title="股票知识" /><published>2022-02-15T00:00:00+08:00</published><updated>2022-02-15T00:00:00+08:00</updated><id>https://sunete.github.io//tutorial/stock-knowledge</id><content type="html" xml:base="https://sunete.github.io//tutorial/stock-knowledge/">&lt;p&gt;最近，机缘巧合，赚了 300 多 USDT，约合人民币 2000 元，于是我便进军了币圈。为了不成为币圈韭菜，就试着学习一些相关的知识。因为加密货币市场波动和股市相类似，所以看了一些美股和加密货币相关的视频，也安装的不少软件。下面是一些学习的基本内容，在此作为记录。&lt;/p&gt;

&lt;h2 id=&quot;常用软件及网站&quot;&gt;常用软件及网站&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://tradingview.com/&quot;&gt;TradingView&lt;/a&gt; —— 看盘画线&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://okx.com/&quot;&gt;欧易&lt;/a&gt; —— 加密货币交易所&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://metamask.io/&quot;&gt;MetaMask&lt;/a&gt; —— 加密货币钱包&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.jin10.com/&quot;&gt;金十数据&lt;/a&gt; —— 关注财经市场资讯&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;k线&quot;&gt;K线&lt;/h2&gt;
&lt;p&gt;K线就是指将各种股票每日、每周、每月的开盘价、收盘价、最高价、最低价等涨跌变化状况，用图形的方式表现出来。&lt;/p&gt;

&lt;p&gt;K线最上方的一条细线称为上影线，中间的一条粗线为实体，下面的一条细线为下影线。&lt;/p&gt;

&lt;p&gt;当收盘价高于开盘价，也就是股价走势呈上升趋势时，我们称这种情况下的K线为阳线，反之则为阴线。在美股中，通常以绿色代表上涨，红色代表下跌。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215163728.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215163728.png&quot; alt=&quot;20220215163728&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;移动平均线-ma&quot;&gt;移动平均线 MA&lt;/h2&gt;
&lt;p&gt;均线是将每天的收盘价加权平均，从而得到一条带有趋势性的轨迹。均线系统是大多分析者常用的技术工具，从技术角度看是影响技术分析者心理价位因素的，思维买卖的决策因素，是技术分析者的良好的参考工具，相比价格变化是滞后的。&lt;/p&gt;

&lt;h2 id=&quot;布林带-boll&quot;&gt;布林带 BOLL&lt;/h2&gt;
&lt;p&gt;布林带由上轨、中轨和下轨组成。K线价格大概率会在布林带里运作。布林带对预测未来行情的走势起着重要的参考作用。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215172146.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215172146.png&quot; alt=&quot;20220215172146&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;布林带使用技巧：&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;压力和支撑&lt;/strong&gt; ：上轨用于压力，下轨用于支撑。当K线冲破压力或支撑，短期内股价就会有所回弹。一旦K线突破上轨，说明价格已经超买，属于卖出的信号；一旦K线跌破下轨，说明价格已经超卖，属于买入的信号。 &lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215174942.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215174942.png&quot; alt=&quot;20220215174942&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;股价强弱走势&lt;/strong&gt; ：如果股价处于中轨和上轨之间，说明股价处于强势；如果股价处于中轨和下轨之间，说明股价处于弱势。当股价自下而上突破中轨时，表示股价由弱转强，有上涨的趋势，可以买入，反之卖出。 &lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215175914.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215175914.png&quot; alt=&quot;20220215175914&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;开口和缩口&lt;/strong&gt; ：当布林线开口时，上轨向上移动，下轨向下移动，表示股价波动幅度正在增大，可能会大涨或大跌；缩口相反，上轨向下移动，下轨向上移动，股价波动幅度正在减小，股市进入盘整。 &lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215193746.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215193746.png&quot; alt=&quot;20220215193746&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
  &lt;p&gt;个人意见：如果K线自下而上突破中轨，买入（做多），每当K线从上轨回落至中轨，再次&lt;strong&gt;递减&lt;/strong&gt;加注；如果K线自上而下跌破中轨，卖出（做空）。&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;趋势线&quot;&gt;趋势线&lt;/h2&gt;
&lt;p&gt;连接股价波的高点的直线为下降趋势线，连接股价波动的低点的直线为上升趋势线。&lt;/p&gt;

&lt;p&gt;上升趋势线：
&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215204218.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215204218.png&quot; alt=&quot;20220215204218&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;下降趋势线：
&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215204630.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215204630.png&quot; alt=&quot;20220215204630&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;趋势线功能类似布林带的上下轨，有压力和支撑的作用，股价大多数情况下会在趋势线内部波动，但是当K线图突破趋势线，就会出现反转。&lt;/p&gt;

&lt;p&gt;注意：&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;触碰点越多，趋势线可能越有效&lt;/li&gt;
  &lt;li&gt;不用过度拟合，趋势线仅供参考&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;斐波那契回撤&quot;&gt;斐波那契回撤&lt;/h2&gt;
&lt;p&gt;寻找支撑点/阻力点的有效方法，可用于预测股价未来走势。&lt;/p&gt;

&lt;p&gt;例如从最低点反向到最高点线上的两个端点画出的。然后画出9条水平线，与斐波纳契水平：0.0%、23.6%、38.2%、50%、61.8%、100%、161.8%、261.8%和423.6%与趋势线交叉。在线有重大的上升或下降时，价格常常会回到它们以前的水平纠正他们最初动态一些基本的部分（有时候是全部地）。&lt;strong&gt;在这么个相互作用的动向中，斐波纳契回撤线价格常常与支撑点/阻力点处同一水平或者上下于它们的附近。&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215205309.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215205309.png&quot; alt=&quot;20220215205309&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;相对强弱指标-rsi&quot;&gt;相对强弱指标 RSI&lt;/h2&gt;
&lt;p&gt;计算公式：RSI＝[上升平均数÷(上升平均数＋下跌平均数)]×100&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;当六日指标&lt;strong&gt;上升到达80时&lt;/strong&gt;，表示股市已有超买现象，如果一旦继续上升，超过90以上时，则表示已到严重超买的警戒区，股价已形成头部，极可能在短期内反转回转，&lt;strong&gt;应该做空&lt;/strong&gt;。&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;当六日强弱指标&lt;strong&gt;下降至20时&lt;/strong&gt;，表示股市有超卖现象，如果一旦继续下降至10以下时则表示已到严重超卖区域，股价极可能有止跌回升的机会，&lt;strong&gt;应该做多&lt;/strong&gt;。&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;强弱指标多在70与30之间波动，不能仅以 RSI 当作买卖参考的指标，需结合其他指标，如斐波那契回撤，进行综合判断。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215210651.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20220215210651.png&quot; alt=&quot;20220215210651&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;怎样才能在股市中赚钱&quot;&gt;怎样才能在股市中赚钱？&lt;/h2&gt;
&lt;p&gt;真正能赚到钱的是对市场整体情绪变化有把握的，并且可以与行情达到一种共振状态的人。&lt;/p&gt;

&lt;p&gt;那种感觉很微妙，你就是能坚信可以涨上去，谁说都没用，更不会受别人的影响，对自己诚实，挨打站稳，不找理由。&lt;/p&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="tutorial" /><category term="教程" /><category term="日记" /><category term="分享" /><summary type="html">最近，机缘巧合，赚了 300 多 USDT，约合人民币 2000 元，于是我便进军了币圈。为了不成为币圈韭菜，就试着学习一些相关的知识。因为加密货币市场波动和股市相类似，所以看了一些美股和加密货币相关的视频，也安装的不少软件。下面是一些学习的基本内容，在此作为记录。</summary></entry><entry><title type="html">终于设置好了 GitHub 网络</title><link href="https://sunete.github.io//tutorial/github-proxy/" rel="alternate" type="text/html" title="终于设置好了 GitHub 网络" /><published>2022-02-13T00:00:00+08:00</published><updated>2022-02-13T00:00:00+08:00</updated><id>https://sunete.github.io//tutorial/github-proxy</id><content type="html" xml:base="https://sunete.github.io//tutorial/github-proxy/">&lt;p&gt;又过了好久没有更新博客，主要是 GitHub 网络太差，总是出现 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;failed to connect to github 443&lt;/code&gt; 错误，这就很烦。所以最近写的东西都放在一个临时的 Typecho 博客里。&lt;/p&gt;

&lt;p&gt;不过从今往后不会有这个问题了，因为我已经顺利解决了网络问题。&lt;/p&gt;

&lt;p&gt;电脑的 Clash 是开机自启的，所以只需要设置好 git 代理，就能借助 Clash 顺利把博客项目推送到 GitHub。&lt;/p&gt;

&lt;p&gt;设置代理也很简单，只需要在 CMD 执行以下命令即可设置代理。&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;因为我的 Clash 代理端口是 7890 ,所以设置代理端口为 7890，如果是其他的代理工具，需要修改为相应端口。&lt;/p&gt;

&lt;p&gt;取消 git 全局代理&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git config --global --unset http.proxy
git config --global --unset https.proxy
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;接下来就可以开启搬砖模式，把文章搬回来啦！嘿嘿 ~&lt;/p&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="tutorial" /><category term="教程" /><category term="日记" /><category term="网站" /><summary type="html">又过了好久没有更新博客，主要是 GitHub 网络太差，总是出现 failed to connect to github 443 错误，这就很烦。所以最近写的东西都放在一个临时的 Typecho 博客里。</summary></entry><entry><title type="html">批量删除 Word 文档页眉与页脚</title><link href="https://sunete.github.io//tutorial/delete-word-headers-footers/" rel="alternate" type="text/html" title="批量删除 Word 文档页眉与页脚" /><published>2021-12-14T00:00:00+08:00</published><updated>2021-12-14T00:00:00+08:00</updated><id>https://sunete.github.io//tutorial/delete-word-headers-footers</id><content type="html" xml:base="https://sunete.github.io//tutorial/delete-word-headers-footers/">&lt;p&gt;很多时候，从网上下载下来的文档会带有页眉和页脚，如果只是删除一个文件的页眉和页脚很简单，只需要双击页眉或者页脚选中，再点击 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DELETE&lt;/code&gt; 键删除即可.&lt;/p&gt;

&lt;p&gt;但是大量的文档，要删除页眉页脚，一个个操作起来工作量就很大了，这时候可以借助办公软件的 &lt;strong&gt;宏&lt;/strong&gt; 来批量、自动删除页眉页脚。&lt;/p&gt;

&lt;p&gt;这里以 WPS 为例演示怎样创建并使用 &lt;strong&gt;宏&lt;/strong&gt;。&lt;/p&gt;

&lt;h2 id=&quot;创建宏&quot;&gt;创建宏&lt;/h2&gt;
&lt;p&gt;首先在工具栏选择 &lt;strong&gt;开发工具&lt;/strong&gt;，点击 &lt;strong&gt;宏&lt;/strong&gt;，填写宏名称后点击 &lt;strong&gt;创建&lt;/strong&gt;。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20211214175153.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20211214175153.png&quot; alt=&quot;20211214175153&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;在新窗口中粘贴以下代码并保存。&lt;/p&gt;

&lt;p&gt;注意：保存时文件类型需要选择 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;*.docm&lt;/code&gt;。&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Sub 批量删除页眉页脚()
'此代码功能为列出指定文件夹中所有选取的WORD文件全路径名
Dim myDialog As FileDialog, oDoc As Document, oSec As Section
Dim oFile As Variant, myRange As Range
On Error Resume Next
'定义一个文件夹选取对话框
Set myDialog = Application.FileDialog(msoFileDialogFilePicker)
With myDialog
.Filters.Clear '清除所有文件筛选器中的项目
.Filters.Add &quot;所有Word文件&quot;, &quot;*.doc,*.docx&quot;, 1 '增加筛选器的项目为所有Word文件
.AllowMultiSelect = True '允许多项选择
If .Show = -1 Then '确定
For Each oFile In .SelectedItems '在所有选取项目中循环
Set oDoc = Word.Documents.Open(FileName:=oFile, Visible:=False)
For Each oSec In oDoc.Sections '文档的节中循环
Set myRange = oSec.Headers(wdHeaderFooterPrimary).Range
myRange.Delete '删除页眉中的内容
myRange.ParagraphFormat.Borders(wdBorderBottom).LineStyle = wdLineStyleNone '段落下边框线
Set myRange = oSec.Footers(wdHeaderFooterPrimary).Range
myRange.Delete '删除页脚中的内容
Next
oDoc.Close True
Next
End If
End With
End Sub
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;使用宏&quot;&gt;使用宏&lt;/h2&gt;
&lt;p&gt;双击打开刚才保存的后缀为 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;*.docm&lt;/code&gt; 的宏文件。工具栏选择 &lt;strong&gt;开发工具&lt;/strong&gt; 点击 &lt;strong&gt;宏&lt;/strong&gt; ，就会出现以下界面。&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20211214182753.png&quot;&gt;&lt;img src=&quot;https://fastly.jsdelivr.net/gh/sunete/imghost/img20211214182753.png&quot; alt=&quot;20211214182753&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;点击 &lt;strong&gt;运行&lt;/strong&gt;，选择需要删除页眉页脚的文件（可选择多个文件），点击 &lt;strong&gt;打开&lt;/strong&gt; 就会自动删除所有选中文档的页眉和页脚。&lt;/p&gt;</content><author><name>Sunete浩仔</name><email>xuhao0347@gmail.com</email></author><category term="tutorial" /><category term="教程" /><category term="分享" /><summary type="html">很多时候，从网上下载下来的文档会带有页眉和页脚，如果只是删除一个文件的页眉和页脚很简单，只需要双击页眉或者页脚选中，再点击 DELETE 键删除即可.</summary></entry></feed>