Lime logo洛明Lime

🌿 最近打理

usr 不是 User

幼苗

/usr 指的是 Unix System Resources

Array Element

幼苗

提取数组的元素类型

Equal

幼苗

easyEqual: TS Playground - An online editor for exploring TypeScript and JavaScript Documentation - Mapped Types Documentation - More on Fun…

Array[0]

幼苗

why doesn't this work but this works this also works Are they not all the same thing? > readonly type modifier is only permitted on array an…

Modify

幼苗

用新类型覆盖原类型

OmitId

幼苗

借助条件类型分发,去掉联合类型中每个成员的 id

ValueOf

幼苗

提取对象的值类型

跳过 eslint/typesciprt/prettier 检查

幼苗

https://eslint.org/docs/latest/use/configure/rules#disabling-rules https://prettier.io/docs/ignore#javascript https://www.typescriptlang.org…

Windows 安装 ssh server/client

幼苗

Get started with OpenSSH Server for Windows Install Uninstall 生成新的 SSH 密钥并将其添加到 ssh-agent - GitHub 文档

Typescript 常量类型泛型参数

幼苗

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#const-type-parameters

vue 模板引用

幼苗

v-for 中的元素上的 ref 在 script 中获取到的类型标注应该是 tuple:[InstanceType ]

FHS 文件系统层次结构标准

幼苗

https://refspecs.linuxfoundation.org/FHS3.0/fhs/index.html

配置 git credential manager

幼苗

类比一下应该是 ssh-agent 可以使用 scoop 安装 总之 https://github.com/git-ecosystem/git-credential-manager/blob/main/docs/wsl.md 虽然文档没提 但是 git credential-ma…

nginx 755

幼苗

目录需要 755

一行获取操作系统标识

幼苗

node 或是什么其他什么的?怎么可以获得稳定的跨平台的 操作系统标识符

identicon

幼苗

bash 表达式展开

幼苗

shell prompt string

幼苗

Bash has five prompt strings that can be customized: PS0 is displayed after each command, before any output. PS1 is the primary prompt which…

使用 curl & wget 下载文件

幼苗

wget -qO- https://deno.land/x/install/install.sh | sh curl -fsSL https://deno.land/x/install/install.sh | sh curl -OL https://go.dev/dl/go1.…

man 章节编码

幼苗

可执行程序或 Shell 命令 系统调用(由内核提供的函数) 库调用(程序库中的函数) 特殊文件(通常位于 /dev) 文件格式与约定(例如 /etc/passwd) 游戏 杂项(包括宏包和约定),例如 man(7)、groff(7)、man-pages(7) 系统管理命令(通常…

WSL 脱机安装

幼苗

若要脱机安装 WSL,需要执行以下步骤: 从 GitHub 发布页下载并安装最新的 WSL MSI 包 使用管理员权限打开 PowerShell 窗口,并运行 dism.exe /online /enable-feature /featurename:VirtualMachine…

正则匹配组

幼苗

方向: 后视(lookbehind) 👈 (?<=...) 或 (?<!...) → 向左看(检查左边是否匹配) 前视(lookahead) 👉 (?=...) 或 (?!...) → 向右看(检查右边是否匹配) 是否匹配: 肯定(positive) → = → 要求匹配 否…

git 配置 ssh 代理

幼苗

https://www.seepine.com/git/ssh-proxy/ 本地防火墙或 ISP 限制 本地 ufw、iptables、或者你的 ISP/网络环境直接屏蔽了 22。 可以先测试下: 👉 解决方法:修改 SSH 配置 编辑 /.ssh/config,加上: 然后…