github pages 部署方式变更
1. 核心问题:Hexo 部署后自定义域名被刷掉原因: Hexo 的 hexo deploy 会清空并重建目标分支,GitHub 自动生成的 CNAME 文件被删除。 解决: 在 source/ 下放置 CNAME 文件(内容为纯域名,无 http://)。 但每次部署仍有短暂验证窗口,因为 Hexo 的“清空-重建-推送”流程本身会导致 GitHub 重新识别 CNAME。 根治方案: 改用 GitHub Actions 部署。GitHub 官方文档说明,通过自定义 Actions 工作流发布时,GitHub 不依赖仓库中的 CNAME 文件,自定义域名由服务端设置直接管理,不再被刷掉。 2. 使用 GitHub Actions 后的博客更新流程以前: 本地 hexo generate + hexo deploy。 现在: 12345hexo new post "标题"# 编辑 source/_posts/标题.mdgit add .git commit -m "post: 标题"git push origin main 推送后 G...
记录一次把独显虚焊导致黑屏的笔记本改装Linux做无头服务器的过程
记录一次把独显虚焊导致黑屏的笔记本改装Linux做无头服务器的过程硬件条件,2011年 的联想笔记本,型号Z465,AMDCPU,4G内存,500G 机械硬盘,是bios只支持dos分区表,不支持gpt Z465 时代的 AMD 没有“CPU 核显”:AMD 直到 2011 年底推出 Llano APU(A系列)才把显卡塞进 CPU。你 2011 年的 Z465(AMD 速龙/羿龙),CPU 内部是不带核显的。 OS 选择:第一次是选择了rocky,因为支持更新的时间很长,大约有10年, 第二次选择了 Debian, 因为rocky的GUI安装程序anaconda,在磁盘分区的时候,强制gpt分区表,手动在命令行分区后不被识别,很麻烦,所以 turn to debian 文字界面安装 更自由采取的方案:把硬盘拆下来,借助其他显示正常的PC,从U 盘启动,安装OS到 USB转接的笔记本电脑硬盘遇到的问题和解决办法: debian net image 最小安装之后 修改 内核启动参数 /etc/dfault/grub 之后执行 grub...
adb install xapk
从 apkpure download 到了 Tailscale_1.102.4-t3caf7d9e7-g1b32d3caa_APKPure.xapk1adb install Tailscale_1.102.4-t3caf7d9e7-g1b32d3caa_APKPure.xapk # 会报错 需要解压缩,用 adb install-multiple12345mkdir tmpmv Tailscale_* tmpcd tmpunzip Tailscale_*adb install-multiple *.apk
Contact ways
Tel: MTg1NDAxODU0MTQ= Email: wang.shaodong@outlook.com Wechat:
kernel structs pos
struct task_structsched.h struct mm_structmm_types.h current*struct credcred.h
busybox SUID support
开启 busybox对suid的支持,编译busybox前修改配置选项 1234$ chmod u+s /bin/busybox$ cat /etc/busybox.conf[SUID]echo = ssx root.root
kernel image formats
Imagethe generic Linux kernel binary image file. zImagea compressed version of the Linux kernel image that is self-extracting. uImagean image file that has a U-Boot wrapper (installed by the mkimage utility) that includes the OS type and loader information.
cmd patchelf
123# sudo zypper in -y patchelf# patchelf 可以修改可执行文件的 使用的链接器# It can change the dynamic loader ("ELF interpreter") of the executables and change the RPATH of executables and libraries
git tricks
git clone加速下载 如果只需要最新的代码 不需要历史提交记录的时候可以 给git添加参数 –depth =1 1git clone --depth=1 https://github.com/TheSuperPowerIsRich/OSX-KVM.git
network protocol
rtmp srt