kindle

1
2
3
4
5
6
7
# ubuntu 下
# 解开 regular 看一下 name 表中的值
ttx -o r.ttx Play-Regular.ttf
# 解开 Italic 将 name 表中的值改为和 regular 中的一样,可能有多个
ttx -o i.ttx Play-Italic.ttf
# 重新打包回 ttf
ttx -o i.ttf i.ttx

1 设置 字体和词典在 kindle 环境文件夹 - 把电子书过滤设置选为“全部内容”,然后把电子书排序设置选为“收藏夹” 。用收藏夹分类电子书 - 字体放在 fonts 文件夹,自带英文字体可以用 Baskerville ,中文字体思源黑体还好,思源宋体(Source Han Serif)太浅不要用,思源宋体,如何评价,以及如何正确使用 - 词典放在 documents\dictionaries 文件夹 - 一本英汉:与 PC 词典相同的简明英汉(160万),一本英英:Merriam-Webster’s Advanced Learner’s Dictionary,选择依据。其它为 kindle 自带,现代英汉、汉英、汉语,Oxford - kindle 不适合阅读长篇英英解释,如需彻底理解单词,用 kindlemate 导出生词本到欧路词典背,见 词典软件。或者在平板上用 k ...

阅读更多

linux

1
2
3
# 通过 aptitude 尝试解决
sudo apt install aptitude
sudo aptitude install PACKAGENAME

1 配置 - 必装 ssh proxychains4 git meld p4merge vim gtags ctags,github 导入公钥 - 关闭该死的系统更新,非要更新前一定创建快照 1.1 SSH apt-get install openssh-server openssh-client - 如配置 VPS 修改 SSH 端口,则要在系统 iptables 和 vps 页面两处同时放行新端口,并用 nc -l 测试没问题后,再重启 sshd 服务。此时先别断开旧连接,防止出现新端口连不上的情况 1.1.1 解决 20.04 broken package 问题 参考 Problems with installing of the openssh-server 根据 aptitude 安装前的提示,发现是预安装的 openssh-client 版本高,apt p ...

阅读更多

手机_电视_平板

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
adb shell pm uninstall --user 0 com.android.mediacenter  音乐
adb shell pm uninstall --user 0 com.huawei.himovie 视频
adb shell pm uninstall --user 0 com.huawei.wallet 钱包
adb shell pm uninstall --user 0 com.huawei.search 搜索
adb shell pm uninstall --user 0 com.huawei.hwread.al 阅读
adb shell pm uninstall --user 0 com.huawei.browser 浏览器
adb shell pm uninstall --user 0 com.huawei.vassistant 语音助手。不建议删,开启可支持 AI 字幕
adb shell pm uninstall --user 0 com.huawei.scanner 智慧视觉
adb shell pm uninstall --user 0 com.huawei.intelligent 智能助手
adb shell pm uninstall --user 0 com.huawei.android.pushagent 推送服务
adb shell pm uninstall --user 0 com.huawei.tips 智能提醒
adb shell pm uninstall --user 0 com.baidu.input_huawei 百度输入法华为版
adb shell pm uninstall --user 0 com.huawei.hitouch 智慧识屏
adb shell pm uninstall --user 0 com.huawei.hiaction 智能识屏中控模块
adb shell pm uninstall --user 0 com.huawei.hiai 智慧引擎
adb shell pm uninstall --user 0 com.huawei.recsys (HwHiAIDSEngine)
adb shell pm uninstall --user 0 com.huawei.pengine 智能建议
adb shell pm uninstall --user 0 com.huawei.phoneservice 我的华为
adb shell pm uninstall --user 0 com.android.contacts 联系人
adb shell pm disable-user com.huawei.android.hwouc 关闭系统更新,先清除数据,进入更新消除红点。disable-user 换成 enble 启用
adb shell pm disable-user com.huawei.hwid (HMS Core)

1 ADB 卸载系统 App 1. 开发者选项,开启 USB 调试 2. 安装 USB driver 3. 下载 ADB 工具 2、3 放入 windows 建议安装 - ADB 中 - 获取包名,打开 App,输入 adb shell dumpsys window | findstr mCurrentFocus - 列出包,adb shell pm list packages - 恢复方法 adb shell cmd package install-existing com.huawei.appmarket - Andrioid 11无线调试 - 打开 usb 调试和无线调试 - adb pair HOST[:PORT] [PAIRING CODE] - adb connect 192.168.1.xxx:xxx // 注意端口和上门的配对端口不一样,无线调试的I ...

阅读更多

路由器

1
2
3
4
5
6
7
替换 <STOK>

http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3B%20nvram%20set%20ssh_en%3D1%3B%20nvram%20commit%3B%20sed%20-i%20's%2Fchannel%3D.*%2Fchannel%3D%5C%22debug%5C%22%2Fg'%20%2Fetc%2Finit.d%2Fdropbear%3B%20%2Fetc%2Finit.d%2Fdropbear%20start%3B

http://192.168.31.1/cgi-bin/luci/;stok=<STOK>/api/misystem/set_config_iotdev?bssid=Xiaomi&user_id=longdike&ssid=-h%3B%20echo%20-e%20'admin%5Cnadmin'%20%7C%20passwd%20root%3B

root 密码 admin

1 刷机 1.1 斐讯K2 1. 确定硬件版本,斐讯K2 PSG1218 硬件A2 2. 更新到官方某个版本,来实现开 telnet、ssh 3. 刷 breed,相当于 bootloader 4. EEPROM、编程器固件备份 5. 刷别人的固件,华硕、padavan(hiboy),见 刷机与固件列表,还可以考虑 自己编译 1.2 小米路由器3G 1. 下载 开发板 miwifi_r3g_firmware_12f97_2.25.124.bin,登陆路由器页面,系统状态 -> 升级检测 刷入 2. 开 SSH miwifi_ssh.bin。按照页面提示操作 3. 刷 breed breed-mt7621-xiaomi-r3g.bin。放入 U 盘后,mtd -r write /extdisks/sda1/breed-mt7621-xiaomi-r3g.b ...

阅读更多

windows

1
2
3
4
# 导入 ie 代理
netsh winhttp import proxy source=ie
# 取消代理
netsh winhttp reset proxy

1 清理旧文件 删除没有权限的文件夹 1. 文件夹属性 -> 安全 -> 高级 -> 更改所有者 -> 输入自己的用户名 -> 选择下面应用到子文件夹的勾 -> 确定所有对话框 2. 文件夹属性 -> 安全 -> 高级 -> 权限添加 -> 主体为自己的用户名 -> 勾选下面的继承权限 2 搭建 1. 安装 PE 环境到 U 盘,PE 环境尽量不更新,否则 DG 版本更新后之前的系统备份是否还能兼容 - 用 Edgeless PE,写入 时选择预留分区,大小为 U 盘容量 - 1G,即给前面的 PE 留出 1G 空间 2. PE 环境下加载 ISO 镜像(镜像选择专业版),运行 source 下的 setup - 对 Win11 用 Windows 安装器加载镜像安装,绕过 TPM 2.0 3. 更新系统、自动装驱动 4. 关闭更新 5. 修改桌面、 ...

阅读更多

docker

1
2
3
4
5
6
sudo groupadd docker
sudo usermod -aG docker $USER
# 激活新修改
newgrp docker
# 提示没权限的话重启
docker version

1 安装 - ubuntu 20.04 安装、参考二 - 避免每次输入 sudo - compose 安装,这里下载的 github 地址要去 GitHub 看一下来改 1.1 windows-wsl2 - wsl –update 用 wsl2 - 在 resource - proxies 设置代理 - 按 Configure WSL 2 Data Location 修改文件路径到其它盘 - wsl 其它 distro 也可以这样改路径 - 相关命令 - 设置 appendWindowsPath = false,需要 wsl --shutdown 2 镜像 - 拉取镜像,替换源速度没有提升,建议 设置代理,只设置前 http 和 https 两处就可以了 - 保存和加载镜像 3 容器 - 生成容器 - 列出容器 - 运行命令 - 进入 docker - 修改端口映射 ...

阅读更多

LFS

  • 书的由来:按自己的喜好搭建,写自己的软件,有一个自己的系统。这本书还可用来理解系统
    • 定制化,尤其是小型嵌入式系统
    • 安全