2024年11月17日星期日

nvim 打通系统剪贴板

 配置文件的位置:

"C:\Users\27096\AppData\Local\nvim\init.lua"

选项:
-- Sync clipboard between OS and Neovim.
--  Remove this option if you want your OS clipboard to remain independent.
--  See `:help 'clipboard'`
vim.o.clipboard = 'unnamedplus'

2024年11月16日星期六

debian apt update 输出

 root@debian:/home/userA# apt update

Get:1 http://mirrors.cloud.aliyuncs.com/debian bookworm InRelease [151 kB]

Get:2 http://mirrors.cloud.aliyuncs.com/debian-security bookworm-security InRelease [48.0 kB]

Get:3 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates InRelease [55.4 kB]

Get:4 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports InRelease [59.0 kB]

Get:5 http://mirrors.cloud.aliyuncs.com/debian bookworm/main Sources [9,494 kB]

Get:6 http://mirrors.cloud.aliyuncs.com/debian bookworm/main amd64 Packages [8,789 kB]

Get:7 http://mirrors.cloud.aliyuncs.com/debian bookworm/main Translation-en [6,109 kB]

Get:8 http://mirrors.cloud.aliyuncs.com/debian-security bookworm-security/main Sources [125 kB]

Get:9 http://mirrors.cloud.aliyuncs.com/debian-security bookworm-security/main amd64 Packages [204 kB]

Get:10 http://mirrors.cloud.aliyuncs.com/debian-security bookworm-security/main Translation-en [125 kB]

Get:11 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main Sources.diff/Index [11.7 kB]

Get:12 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main amd64 Packages.diff/Index [11.7 kB]

Get:13 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main Translation-en.diff/Index [11.7 kB]

Get:14 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main Sources T-2024-09-10-2011.55-F-2024-09-10-2011.55.pdiff [562 B]

Get:14 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main Sources T-2024-09-10-2011.55-F-2024-09-10-2011.55.pdiff [562 B]

Get:15 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main amd64 Packages T-2024-09-10-2011.55-F-2024-09-10-2011.55.pdiff [1,116 B]

Get:16 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main Sources.diff/Index [63.3 kB]

Ign:16 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main Sources.diff/Index

Get:17 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB]

Ign:17 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main amd64 Packages.diff/Index

Get:18 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main Translation-en.diff/Index [63.3 kB]

Ign:18 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main Translation-en.diff/Index

Get:15 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main amd64 Packages T-2024-09-10-2011.55-F-2024-09-10-2011.55.pdiff [1,116 B]

Get:19 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main Translation-en T-2024-09-10-2011.55-F-2024-09-10-2011.55.pdiff [538 B]

Get:19 http://mirrors.cloud.aliyuncs.com/debian bookworm-updates/main Translation-en T-2024-09-10-2011.55-F-2024-09-10-2011.55.pdiff [538 B]

Get:20 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main Sources [297 kB]

Get:21 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main amd64 Packages [260 kB]

Get:22 http://mirrors.cloud.aliyuncs.com/debian bookworm-backports/main Translation-en [217 kB]

Fetched 26.2 MB in 3s (7,649 kB/s)

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

71 packages can be upgraded. Run 'apt list --upgradable' to see them.

N: Repository 'http://mirrors.cloud.aliyuncs.com/debian bookworm InRelease' changed its 'Version' value from '12.6' to '12.8'


2024年10月25日星期五

mike11闸门一提到顶或一闭到底的方法

  1.  第一个条件:达到某个水位或者流量,开始启用
  2.  第二个条件:闸门高程比初始条件高或者低时,fullopen或者close
  3.  第三个条件:unchanged
  4.  这样可以保证闸门开度不会震荡。

2024年10月23日星期三

设置pypi镜像

 $ pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

命令的输出:

Writing to /home/username/.config/pip/pip.conf

2024年10月18日星期五

subconverter编译

 https://dasmz.com/?p=1169

apt-get update

apt-get install git

git clone https://github.com/tindy2013/subconverter.git

sed -i 's/j4/j1/g' /root/src/subconverter/scripts/build.alpine.release.sh

sed -i 's/j2/j1/g' /root/src/subconverter/scripts/build.alpine.release.sh

docker pull multiarch/alpine:amd64-latest-stable

docker run -v /root/src/subconverter:/root/workdir 

                      multiarch/alpine:amd64-latest-stable 

                       /bin/sh -c "apk add bash git nodejs npm 

                                         && cd /root/workdir 

                                         && chmod +x scripts/build.alpine.release.sh 

                                         && bash scripts/build.alpine.release.sh"