Git no passwd login

输入 1 git config --global credential.helper store 查看配置 1 git config --list 如果有下面的行,说明配置成功了 1 credential.helper=store 后面操作的时候只需要输入一次密码之后,就可以免密码操作了,在家目录下会有一个 “.git-credentials” 文件生成

二月 11, 2023 · 1 分钟 · 18 字 · HCY

Hexo next favicon

把图标放在 hexo\source\images 目录下,这个目录没有可以自己手动创建 修改 next主题配置文件,\next\themes\next_config.yml 文件 1 2 3 4 5 6 7 8 favicon: small: /images/favicon-16x16-next.png #medium: /images/favicon-32x32-next.png medium: /images/favicon.ico apple_touch_icon: /images/apple-touch-icon-next.png safari_pinned_tab: /images/logo.svg #android_manifest: /images/manifest.json #ms_browserconfig: /images/browserconfig.xml

二月 11, 2023 · 1 分钟 · 29 字 · HCY

Podman hexo

“hexo s” 在本地运行预览的端口是 4000 1 podman run -it --name=hexoenv -p 4000:4000 -v /home/hcy/Gateway/hexo_blogs:/home/devenv/hexo/source hexoenv /bin/bash 只需要把 source 文件夹暴露出来给 host 就行了 为了多端同步,推送不用 “hexo d” , 而是手动将 public 下的内容推到 github.io 那里

二月 11, 2023 · 1 分钟 · 29 字 · HCY

Podman GUI Wayland/X11

首先打开终端(我的容器使用 Linux 主机下的 podman cli 终端操作) 允许容器访问 xhost,在终端里面输入 1 xhost + run 容器即可 1 podman run -it --net=host -e DISPLAY=$DISPLAY --name=devenv -v /home/hcy/Gateway/:/home/devenv/Gateway devenv /bin/bash 参数解释: 1 ... -it ... /bin/bash // 进入交互模式 1 ... --net=host ... // 允许访问 host 网络 1 ... -e DISPLAY=$DISPLAY ... // 使用 host 的显示 1 ... --name=devenv ... // 指定启动之后容器的名字 1 2 3 ... -v /home/hcy/Gateway/:/home/devenv/Gateway ... // 将 host 的 /home/hcy/Gateway/ 映射到 container 的 /home/devenv/Gateway 1 ....

二月 11, 2023 · 1 分钟 · 78 字 · HCY

Hexo Inner Link

Markdown 编写的 Hexo 博客文章内部跳转,比如说想在文章1中的某个段落内部超链接跳转到文章2 1 {% post_link 文章文件名(不要后缀) 文章标题(可选) %} 如文章文件名为 Hello-World.md 1 2 {% post_link Hello-World %} {% post_link Hello-World 你好世界 %} 如果想做到这样子的效果 1 2 3 4 5 6 7 8 9 10 <br/> <h3 style="display:flex"> <span align="left" style="width:50%"> PRE : {% post_link 初识-MARO 初识 MARO %} </span> <span align="right" style="width:50%"> NEXT : {% post_link MARO-VM-调度 MARO VM 调度%} </span> </h3> 单纯的右边 1 2 3 4 5 6 <br/> <h3> <div align="right" > NEXT : {% post_link MARO-Distibuted-toolkit MARO Distibuted toolkit %} </div> </h3>

十一月 23, 2022 · 1 分钟 · 85 字 · HCY