From Limitations in Git versus limitations in libgit2

 All RPCs have been converted to not use libgit2 anymore, and the remaining infrastructure will be removed in this release. I'm thus going to close this issue as there is nothing left to do in this context anymore. 

记忆里小时候看过一本小说:大家都是小动物,主角是臭鼬,紧张的时候会放屁,排山倒海的,某日受国王嘱托一行人去调查海盗,见到海盗后海盗拿出了国王的许可,原来是国王年纪大忘了...

two years passed, i finally learned how to use wl_signal  ╥﹏╥...
https://codeberg.org/qaqland/wayland-util-demo/src/branch/main/wl_signal.c

linux stocks at all time low

Windows下使用git权限测试通过

ssh -T [email protected]

但是使用异常

[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解决办法→ https://stackoverflow.com/a/72497021

 setx /m GIT_SSH C:\Windows\System32\OpenSSH\ssh.exe 

gcc × 😇
clang √

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#define yalloc(x, ...) calloc((1, ##__VA_ARGS__), x)
#pragma clang diagnostic pop

---
update to disable tags in code block

meson 可以把生成的 target 与 sources 文件放在一起,避免手动添加 include 路径👉
https://codeberg.org/qaqland/yusan/src/commit/2bd03f0c

而这样在 gcc 中直接使用是不行的:

$ gcc ../header.h main.c
main.c:1:10: fatal error: header.h: No such file or directory
    1 | #include "header.h"
      |          ^~~~~~~~~~
compilation terminated.

只能把包含的头文件添加到 -I 选项里

$ gcc -I.. main.c
lab ~/test/c-header/src
$ ./a.out
from header.h

ssh 可以在连接建立之后再对端口转发进行配置,参考 https://man.openbsd.org/ssh,使用转义字符 <enter>~C 打开临时的小终端(?)再输命令添加需要转发的端口。常用就是把本地(Local)的端口上的请求转发到远端的机器上,如访问远程的 jupyter 等服务

-L [bind_address:]port:host:hostport

今天偶然发现vscode给alpine特意做了musl链接的cli版本,测试发现它对应的 vscode server 也是专版优化的,不仅版本新(1.88.1)而且没有remote ssh连接时的巨大 CPU 占用,于是学习了如何使用并打了个小 bin 包 https://codeberg.org/koimoe/kmapk/pulls/12

这个工具还挺好的 https://github.com/haampie/libtree

$ libtree libwayland-server.so -v
libwayland-server.so.0
├── libc.musl-x86_64.so.1 [default path]
└── libffi.so.8 [default path]
    └── libc.musl-x86_64.so.1 [default path]