不好用的 OpenAI 对话应用

下载并安装chatkit,这是一个需要激活高级版的 app,卸载。

稀疏检出,部分克隆

开发 raycast extensions时,使用稀疏检出仓库,部分克隆文件夹的方法 (Git 2.25.0):

git clone --filter=blob:none --no-checkout https://github.com/raycast/extensions.git
git sparse-checkout set --cone
git sparse-checkout set extensions/spotify-beta
git checkout @peduarte/spotify-beta

解释:

  1. git clone --filter=blob:none --no-checkout https://github.com/raycast/extensions.git

    • 这个命令用于克隆一个 Git 仓库,即从指定的 URL https://github.com/raycast/extensions.git 克隆仓库到本地。

    --filter=blob:none 参数表示在克隆过程中不获取任何 blob 对象 (文件内容),只获取仓库的结构和历史信息。这可以加快克隆速度,特别是对于大型仓库。

    --no-checkout 参数表示克隆后不自动检出任何分支,仅获取仓库数据。

  2. git sparse-checkout set --cone

    • 这个命令启用了 Git 的稀疏检出 (sparse checkout) 功能,并设置为cone模式。

    • 稀疏检出允许只检出仓库的一部分文件或目录,而不是整个仓库。这在处理大型仓库时非常有用。

    --cone 参数设置稀疏检出模式为cone模式,表示只检出指定目录及其子目录。

  3. git sparse-checkout set extensions/spotify-beta

    • 这个命令将 extensions/spotify-beta 目录添加到稀疏检出集合中。

    • 执行此命令后,Git 将只检出 extensions/spotify-beta 目录及其子目录的文件。

  4. git checkout @peduarte/spotify-beta

    • 这个命令将当前工作分支切换到 @peduarte/spotify-beta 分支。

    • 执行此命令后,Git 会将 @peduarte/spotify-beta 分支检出到本地,但只包含稀疏检出集合中指定的文件和目录。

IP 的地址自动补全

短 IP:

$ ping 127.1
PING 127.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.043 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.080 ms

ping x -> ping 0.0.0.x
ping x.y -> ping x.0.0.y
ping x.y.z -> ping x.y.0.z

短网址

http://1.1 → http://1.0.0.1
http://192.168.1 → http://192.168.0.1