有的没的
长远计划
需要给爸妈家挑个路由器
看着有推荐C R 6609的 35
兆能M2 30多 但是信号不如cr好


#路由器

下周计划
1 建议214改气路
2 216备课
3 看哔哩哔哩v20的讲法 内容 ppt 问问黄皓阳ppt
4 备课步进电机
5 备课s7 开发五子棋

6 26号之前 上交实习报告
7 出卷子
8 提前打印卷子
9 查看机器人补课时间


- 1+x报销
- 教学比赛
- 2024年总结
#plan
发现 x96的 emmc 折损已经到 20%~30% 了,从上个月 9 月份开始密集使用,这才过了不到一年的时间。


如果有进一步的增长,比如超过 40%,那么考虑外置 usb 启动。

#linux #tech
把 gemini balancer 迁移到 x96 上了,没做外网映射,然后再 owu 上面配了内网地址,结果内外网都能用。看来是 owu 后端发的模型请求。

这就太妙了,部署在本地的响应速度直接缩短了至少 50%。

#tech #ai
查看emmc健康度的两种方式


eMMC 存储在 linux 上被挂载为块设备,一般通过 /dev/mmcblk* 访问。

1. mmc-utils 工具

$ mmc extcsd read /dev/mmcblk2
=============================================
  Extended CSD rev 1.8 (MMC 5.1)
=============================================

...
$ mmc extcsd read /dev/mmcblk2 | grep -iE 'life|eof'
eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x01
eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x01
eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x01


2. /sys/class/block 源文件

Android 上可能没有 mmc 工具,可以通过 /sys/class 查询设备的各种信息。

# 需要 root 权限
$ cat /sys/class/block/mmcblk2/device/pre_eol_info
0x01
$ cat /sys/class/block/mmcblk2/device/life_time
0x01 0x01


关键字段\_健康度
---------

1. DEVICE\_LIFE\_TIME\_EST\_TYP

越小越好,分为 A/B 字段,代表 SLC/MLC 寿命。

| Value | Description |
| --- | --- |
| 0x00 | Not defined |
| 0x01 | 0%~10% device life time used |
| 0x02 | 10%~20% device life time used |
| 0x03 | 20%~30% device life time used |
| 0x04 | 30%~40% device life time used |
| 0x05 | 40%~50% device life time used |
| 0x06 | 50%~60% device life time used |
| 0x07 | 60%~70% device life time used |
| 0x08 | 70%~80% device life time used |
| 0x09 | 80%~90% device life time used |
| 0x0A | 90%~100% device life time used |
| 0x0B | Exceeded its maximum estimated device life time |
| Others | Reserved |

2. PRE\_EOL\_INFO

| Value | Pre-EOL Info | Description |
| --- | --- | --- |
| 0x00 | Not defined | |
| 0x01 | Normal | Normal |
| 0x02 | Warning | Consumed 80% of reserved block |
| 0x03 | Urgent | |
| 0x04~0xFF | Reserved | |


#tech #linux
返现5欧元羊毛!(不是红包,是可直接消费的金额)5-31结束-美国VPS综合讨论-全球主机交流论坛 - 手机版 - Powered by Discuz!
https://hostloc.com/forum.php?mod=viewthread&tid=1406882&extra=page%3D1&page=1&mobile=2
DeepWiki 一个涵盖所有 GitHub 代码库的免费百科全书

您可以将任何公共 GitHub 代码库的 URL 替换为“ https:// deepwiki. com/org/repo ” 即可获得类似维基百科的精准库描述。

DeepWiki歸藏

📮投稿 ☘️频道 🌸聊天


#bm #ai
docx 批量转 pdf
太牛逼了!
横跨 win 和 macos 平台!


You can use the docx2pdf command line utility to batch convert docx to pdf on macOS (or windows). It uses Microsoft Word's APIs to directly convert to PDF creating a perfect copy. It uses JXA (Javscript for Automation, basically AppleScript in JS) in macOS and win32com in Windows.

pip install docx2pdf
docx2pdf myfolder/

Disclaimer: I wrote this tool after struggling to find a cross-platform solution for batch converting docx to pdf with zero formatting issues since it directly uses Microsoft Word. https://github.com/AlJohri/docx2pdf
GitHub - AlJohri/docx2pdf
Back to Top