avatar
busylog
odhcpd modes with ra/pd allocation
1 simple wan - lan relay. ra is provided by upstream wan.master=1, ra=relay, dhcpv6=relay, rdp proxy=1 lan.ra=relay, dhcpv6=relay, rdp proxy=1 2 advanced wan - lan relay, ra is provided by upstream if network.wan6(or auto generated wan_6).reqprefix=auto, then it could provide pd prefix. (needs to be "no" to disable pd) if pd prefix is enabled(you see IPv6-PD), you can only allocate to lan with non-empty ip6hint, with ra=server,dhcpv6=server. so it isnt the /64 ra range. if you still want isp ra, so I learned from this article (https://blog.pzc.moe/articles/notes…
avatar
busylog
Ralink MT7620A Repeater Investigation
1 the way to breed (https://breed.hackpascal.net/ ) baud is 57600. use minicom + usb ttl/serial converter. /proc/mtd shows 0x30000 uboot + 0x10000 + 0x10000 layout, firmware start at 0x50000. ralink sdk provides gpio commands to test button. in my case the button is gpio 12. this will be mapped to gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; (so select 57600 baud, reset gpio 12 breed rom for mt7620a) you need mtd command (unlock/erase/write/verify) to write to bootloader region. tftp to receive so/binary files and chmod +x. LD_LIBRARY_PATH=…
avatar
busylog
gentoo zfs installation notes
I accidently selected musl with systemd so there are problems... save space (waste memory) portage (/var/tmp can be unmounted after sync) mount -t tmpfs none /var/tmp mount -t tmpfs none /var/db/repos mount -t tmpfs none /var/cache/distfiles emerge-webrsync there is "$(use_enable !elibc_musl systemd)" in zfs ebuild so have to use env to bypass that. cat <<EOF > /etc/portage/package.env/zfs sys-fs/zfs force-systemd EOF cat <<EOF > /etc/portage/env/force-systemd EXTRA_ECONF="--enable-systemd" EOF cat <<EOF > /etc…
avatar
咕咕乔
Windows常用修改注册表命令
禁用 Windows SmartScreen 和文件安全警告 reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d 1 /f 直接关机(不点击仍要关机) reg add "HKCU\Control Panel\Desktop" /v "AutoEndTasks" /t REG_SZ /d "1" /f reg add "HKCU\Control Panel\Desktop" /v "HungAppTimeout" /t REG_SZ /d "1000" /f reg add "HKCU\Control Panel\Desktop" /v "WaitToKillAppTimeout" /t REG_SZ /d "1000" /f 恢复Windows10旧版右键菜单 注意会重启资源管理器,请…
avatar
咕咕乔
Realme GT Neo5 SE 修复Super分区
createdAt: 2024-05-21T15:43:42.000Z 机型:真我GT Neo5SE 一般来说用FastbootEnhance进入fastbootd后删除cow分区,刷入系统后格式化分区即可刷入任何官方系统。但是如果使用了@梦幻灬爱情的刷机救砖包就会损坏super分区 具体症状为:无法更新系统,使用luckytool也不行,怎么刷都无法更新系统,只会更新后进入fastboot,这种情况需要刷写官方super才可以恢复更新 刷入原版super分区查看:https://www.coolapk.com/feed/54123260  @风吹落雪1 的…
avatar
咕咕乔
Motorola Edge X30(hiphic_cn) lynnrin类原生刷机教程
createdAt: 2023-05-09T05:30:29.000Z ❗注意事项: 在进行操作前,请先仔细阅读整个教程,避免操作失误。 建议使用 TWRP 进行 ROM 刷入。 在 ROM 刷入完成后,请重启进入 Recovery 后再刷入 Magisk、GApps 等插件。 请确保在刷入 ROM 前,其它分区具有内容。如果不确定,请务必刷入分区复制包进行分区复制。 解锁 Bootloader 后,摩托罗拉手机将丧失保修资格。本人不对刷机带来的硬件损坏负任何责任。 请参考 Lineage Wiki Motorola Edge 30 的刷机步骤…
avatar
咕咕乔
[B42]僵尸毁灭工程 建立服务器 卡在加载世界解决方法
一般出现这个问题,都是盗版导致的。 首先给快捷方式启动参数加上 -nosteam。 然后查看一下任务管理器里有没有多个 Java 进程,这些进程会占用端口。而且你每点一次启动,它都会再开一个 Java 进程,所以要确保任务管理器里只有一个 Java 进程。
avatar
咕咕乔
Windows 环境变量管理工具
项目地址 https://github.com/Goojoe/EnvManager 之前也有用 bat 和 powershell 写脚本。但是最终还是不够灵活。而且运行 powershell 脚本还需要允许在此系统执行,特别麻烦。 所以用 .NET 写了一个软件,可以用交互模式和命令行传参来快捷添加脚本。完美解决了我之前用脚本添加环境变量的困扰
avatar
busylog
Port forwarder example in openwrt ucode
disclaimer: code is AI generated, uloop as poll. so the missing ones are ARGV, or change substr to something else. #!/usr/bin/ucode import * as uloop from 'uloop'; import * as socket from 'socket'; const LISTEN_PORT = 12345; const TARGET_HOST = "192.168.0.1"; const TARGET_PORT = 80; uloop.init(); let listener = socket.listen("0.0.0.0", LISTEN_PORT); function close_pair(client, upstream, h1, h2) { h1?.delete(); h2?.delete(); client?.close(); upstream?.close(); } function forward(src, dst, hsrc, hdst) { let data = src.recv(8192); if (!data || length(data) == 0) { close_pair…
avatar
busylog
legacy alpine linux as zfs recovery env for raspberry pi
if alpine linux didnt upgrade linux-rpi (netboot kernel version is the same kernel version for that release), then just add zfs, zfs-scripts (required for compatibility.d files), zfs-rpi (zfs-lts for other devices) it is done! if you boot with modloop enabled, simply do: /etc/init.d/modloop stop; rm /lib/firmware /lib/modules https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/aarch64/ as of writing, v3.21(.7) includes openzfs 2.2. you can refer to zfsbootmenu guide for mkinitfs, needs zfs zfshost?
avatar
Rei
利用 HTML 的 form 属性安排表单控件的位置
最近学会了 HTML 的 form 属性的使用方式,在此分享。 需求 应用有这样一个页面: 需求是提交按钮、主体字段、次要字段放在布局的三个位置,点击保存按钮的时候,主体字段和次要字段一起提交。 原始的想法是用一个大的 <form> 标签包含整个页面,实现如下: <form action="..."> <nav> <button type="submit">Save</button> </nav> <main> <input type="text" name="title"> <textarea name="content"> <…
avatar
咕咕乔
MC模组设置
FTB library 关闭左上角 任务书 我的队伍 切换游戏模式 天气 时间 等按钮侧边栏 1.20.1 config/sidebar_buttons.json 全改成false 来源 (FTB 任务) FTB侧边栏按钮不见了? 修改或删除游戏配置文件即可! 不影响已有FTB任务 [MC模组-问答篇]怎么处理物品栏左上角的图标 EMI 显示物品查询记录 左侧边栏-固定信息改成查询记录 行数设置为3 Carpet地毯和[GCA]Gugle的Carpet附加包 # 入睡比例【1.17+才有】 /gamerule playersSleepingPercentage 0 # 26.2 /gamerule players_sleeping…
avatar
Rei
AI 写作助手上线
GeekNote 的 AI 写作助手功能现已上线!这篇文章带你快速上手,了解它的用法和注意事项。 用法 视频演示 点击编辑器顶栏的 ✨ AI 助手按钮,唤起功能。 告诉 AI 你的需求,例如:检查文章、起草提纲、扩写内容等。 AI 会给出编辑建议,你可以选择接受或拒绝。 对结果不满意,可以继续与 AI 对话,反复调整,直到达到理想效果。 即使不小心改错了也无需担心,在「编辑器设置面板 → 历史版本」中即可找回之前的文章内容。 AI 是与非 我…
avatar
咕咕乔
MC投影教程
来源 https://www.bilibili.com/video/BV1meQqBLEhD 1. 打开投影模组菜单 安装完成后进入游戏。 默认情况下:M 可以打开投影模组菜单。 如果按下 M 没有反应,很可能是快捷键冲突。 可以进入 Minecraft: 设置 → 按键控制 找到冲突的按键,将 M 键释放出来。例如与Xaero世界地图的 M 键冲突。 2. 投影工具与模式切换 投影模组默认使用 木棍 作为工具。 拿出木棍后,可以在游戏界面的左下角看到当前的模式。 使用 Ctrl + 鼠标滚轮 可以切换投影模组的不同模式。 3. 区域…
avatar
黄文杰
emacs操作指南
1. 常用命令集合(快查、复制) 1.1 基础操作 退出 Emacs:C-x C-c 取消/中断:C-g 保存:C-x C-s 打开文件:C-x C-f (可直接输入路径,如 ~/project/main.cpp) 另存为:C-x C-w 切换 buffer:C-x b 列出所有 buffer:C-x C-b (然后 d 标记删除,x 执行) 关闭当前 buffer:C-x k 撤销:C-_ 或 C-x u 搜索:C-s,反向搜索:C-r 跳到指定行:M-g g (输入行号) 执行命令:M-x 开启 shell:M-x shell 1…
avatar
咕咕乔
MC生电机器
刷铁机 https://www.bilibili.com/video/BV1kUgC6REWA/ 所需材料 11台阶 2活板门 1告示牌 6桶水 1船 1玻璃板 2楼梯 1漏斗 2箱子 苦力怕塔 https://www.douyin.com/jingxuan?modal_id=7652492853507001654
avatar
黄文杰
gdb调试手册
1. 常用命令集合(快查、复制) 1.1 启动与文件加载 启动 gdb:gdb -i=mi /path/to/executable (在 Emacs 中用 M-x gdb 后输入此命令) 加载可执行文件:file /path/to/executable 设置程序运行目录:cd /path/to/workdir 添加源码搜索目录:dir /path/to/source/dir 查看当前加载文件:info files 查看 gdb 当前目录:pwd 1.2 断点操作 按当前文件行号打断点:b filename:lineno 按完整路径打断点:b /full/path/to/file.cpp:lineno 按函数名打断点:b function_name 按类成员函数打断…
avatar
busylog
buggyfirmware problem for dual signed shim-signed binary in 2023 ca transition
debian wiki shows example hw/machines that is buggy https://wiki.debian.org/SecureBoot/BuggyFirmware so single signed binary for the rescue! https://sources.debian.org/src/shim-signed/1.51/shimx64.efi.signed.MS-2023 and put grub-efi-amd64-signed or systemd-boot-efi-amd64-signed as grubx64.efi, you can prepare a boot drive with that. mirror dl can be found from ubuntu source https://git.launchpad.net/ubuntu/+source/shim-signed/tree/?h=debian/sid
avatar
Rei
在容器中运行 DeepSeek Harness
最近想试用一下 DeepSeek Harness(DSH)。对于 AI Agent,为了安全起见我的习惯是先在容器里面跑。发现 DSH 出于安全考虑禁止监听 0.0.0.0,这给在容器中运行带来了一些麻烦。不过这只是个小问题,以下是我的配置,可供参考。 由于 DSH 只监听容器内的 127.0.0.1:3080,这里用 socat 把容器的 8080 端口转发给它,再通过 compose 映射到宿主机。 Dockerfile: FROM node:24 RUN apt-get update \ && apt-get install -y --no-install…
avatar
freewooXY
Spring MVC学习01
1. 什么是Spring MVC? spring mvc是spring framework后续的开发产品,已经很好地融入进入spring web flow生态之中,用来方便开发以mvc为架构的产品 2.为什么使用Spring MVC? Spring MVC 轻量易学 Spring MVC与Spring framework紧密结合,具有良好的生态 Spring MVC优良的设计使得其具有很好的性能 3. Spring MVC 原理 请求发送给前端控制器,也就是DispatcherServlet 前端控制器调用HandlerMapping的接口解析请求之中的URL HandlerMapping调用HandlerExecution之中的接口根据解析URL查找请求的Controller…
查看更多
首页 搜索 登录 注册