NekoBoxForAndroid配置Hysteria2

服务器安装Hysteria2 root@bwg:~# bash <(curl -fsSL https://get.hy2.sh/) Checking for installed version ... not installed Checking for latest version ... v2.1.1 Downloading hysteria binary: https://github.com/apernet/hysteria/releases/download/app/v2.1.1/hysteria-linux-amd64 ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 13.0M 100 13.0M 0 0 15.4M 0 --:--:-- --:--:-- --:--:-- 36.0M Installing hysteria executable ... ok Install /etc/hysteria/config.yaml ... ok Creating user hysteria ... ok Install /etc/systemd/system/hysteria-server.service ... ok Install /etc/systemd/system/hysteria-server@.service ... ok Congratulation! Hysteria 2 has been successfully installed on your server. What's next? + Take a look at the differences between Hysteria 2 and Hysteria 1 at https://hysteria.network/docs/misc/2-vs-1/ + Check out the quick server config guide at https://hysteria.network/docs/getting-started/Server/ + Edit server config file at /etc/hysteria/config.yaml + Start your hysteria server with systemctl start hysteria-server.service + Configure hysteria start on system boot with systemctl enable hysteria-server.service 配置文件/etc/hysteria/config.yaml示例如下: ...

2024年5月29日 · bbq

将blogger备份批量转换为md文件

安装blog2md apt install git npm git clone https://github.com/xtod/blog2md.git cd blog2md npm install 使用blog2md转换blogger导出的xml文件 node index.js b bak.xml outmd 处理完成后,所有的md文件将保存在outmd文件夹下。

2024年5月22日 · bbq

Unixbench

Version 5.1.3 – 2011-01-13 下载地址: http://0x8.net/res/UnixBench.zip UnixBench是测试类Unix系统性能基本指标的一个软件;使用多个测试来测试系统性能的各个方面。然后将这些测试结果与基线系统的分数进行比较,以产生指数值,该值通常比原始分数更容易理解。然后将整组索引值组合在一起,为系统创建整体评估分数。 Unixbench使用: UnixBench从5.1版本开始包含系统测试和图形测试。如果需要图形测试,编辑Makefile文件,以确保GRAPHIC_TESTS = defined未被注释。并且确保GL_LIBS变量可用,x11perf命令可用。 如果不需要图形测试,请将Makefile文件中GRAPHIC_TESTS = defined行注释掉,切记是注释掉而不是改为其他任何值。 执行 make命令。 执行 Run命令以进行系统测试; 执行Run graphics 命令以进行图形测试; 执行Run gindex 命令以同时进行系统和图形测试。 Run是用perl写的,所以得保证系统已经安装perl。 For more information on using the tests, read “USAGE”. For information on adding tests into the benchmark, see “WRITING_TESTS”. 发行备注 ======================== Jan 13 ========================== v5.1.3 Fixed issue that would cause a race condition if you attempted to compile in parallel with more than 3 parallel jobs. ...

2023年12月26日 · bbq

小米Mix2S安装Mobian

解锁Mix2S 下载小米官方解锁工具,解锁Mix2S的bootloader。 miflash_unlock_7.6.727.43.zip 密码: 3705 下载所需文件 下载SDK Platform-Tools 官方地址:https://developer.android.com/tools/releases/platform-tools 国内地址: platform-tools-36.0.0-windows.zip 密码: 3705 platform-tools_r34.0.4-windows.zip 密码3705 下载好的文件解压,路径添加至系统环境变量。 Mobian镜像 下载地址 https://images.mobian.org/sdm845/weekly/,最新包为mobian-sdm845-phosh-20231008.tar.gz,下载后解压即可。 国内网盘下载: [mobian-sdm845-phosh-20231008.boot-polaris.img]http://ct.optipng.cn#/f/18418398-1504816489-91f9f9?p=3705) (访问密码: 3705) [mobian-sdm845-phosh-20231008.boot.img]http://ct.optipng.cn#/f/18418398-1504816471-08751d?p=3705) (访问密码: 3705) [mobian-sdm845-phosh-20231008.rootfs.img]http://ct.optipng.cn#/f/18418398-1504820431-d0245d?p=3705) (访问密码: 3705) 安装Mobian Mix2s关机,按住音量减+电源键进入bootloader模式,连接电脑。 ## 查看连接设备 $ fastboot.exe devices 4f02e5e9 fastboot ## 刷入boot镜像 $ fastboot.exe flash boot mobian-sdm845-phosh-20231008.boot-polaris.img Sending 'boot' (23220 KB) OKAY [ 0.516s] Writing 'boot' OKAY [ 0.094s] Finished. Total time: 1.281s ## 刷入系统镜像 $ fastboot.exe flash system mobian-sdm845-phosh-20231008.boot.img Sending 'system' (40904 KB) OKAY \[ 0.922s] Writing 'system' OKAY \[ 0.000s] Finished. Total time: 1.859s ## 刷入userdata $ fastboot.exe -S 100M flash userdata mobian-sdm845-phosh-20231008.rootfs.img Sending sparse 'userdata' 1/35 (102041 KB) OKAY \[ 3.278s] Writing 'userdata' OKAY \[ 0.000s] Sending sparse 'userdata' 2/35 (102396 KB) OKAY \[ 3.789s] Writing 'userdata' OKAY \[ 0.000s] Sending sparse 'userdata' 3/35 (102396 KB) OKAY \[ 3.649s] Writing 'userdata' OKAY \[ 0.001s] Sending sparse 'userdata' 4/35 (95532 KB) OKAY \[ 3.449s] Writing 'userdata' OKAY \[ 0.000s] ... ... Writing 'userdata' OKAY \[ 0.000s] Sending sparse 'userdata' 34/35 (100392 KB) OKAY \[ 4.788s] Writing 'userdata' OKAY \[ 0.001s] Sending sparse 'userdata' 35/35 (14549 KB) OKAY \[ 1.755s] Writing 'userdata' OKAY \[ 0.001s] Finished. Total time: 297.226s ## 清除数据 $ fastboot.exe erase dtbo Erasing 'dtbo' OKAY \[ 0.005s] Finished. Total time: 0.007s ## 重启设备 $ fastboot.exe reboot Rebooting OKAY \[ 0.000s] Finished. Total time: 0.001s 重启后进入系统,用户名为mobian,默认密码为1234。 ...

2023年10月8日 · bbq

小狼毫使用搜狗词库设置方法

将搜狗个人词库导入小狼毫 备份搜狗个人词库 搜狗输入法设置->属性设置->词库->中文词库->导出/备份 将个人词库备份到本机,如下操作,导出文件名为搜狗词库备份_2023_8_10.bin 转换搜狗个人词库 点击下载深蓝词库转换,下载后解压打开软件,如下所示选择备份的搜狗个人词库文件。 如下设置转换选项 保存词库文件为txt文件 导入词库到小狼毫输入法 右键点击右下角小狼毫输入法图标,选择用户词典管理 选择当前词典,点击右下方导入文本码表,选择刚转换完保存的txt文本文件即可。 搜狗细胞词库转换为小狼毫词库 有两个方法将搜狗细胞词库转换为小狼毫词库 1.使用深蓝词库转换 同上使用深蓝词库转换将细胞词库转换为txt文本,然后使用小狼毫词典管理导入。 2.使用python批量转换scel为小狼毫词典文件 点击下载scel2txt.py文件 搜狗词库下载地址 https://pinyin.sogou.com/dict/ 新建scel文件夹,将下载的所有细胞词库(.scel)放到这个目录 最终目录结构如下: alair@a1b2c3d4 MINGW64 /f/dls/ckzh $ ls -Rl .: total 40 drwxr-xr-x 1 alair 197121 0 Aug 10 16:33 scel/ -rw-r--r-- 1 alair 197121 5539 Apr 7 17:21 scel2txt.py ./scel: total 2320 -rw-r--r-- 1 alair 197121 165460 Aug 10 15:24 中国中医医院名录.scel -rw-r--r-- 1 alair 197121 792262 Aug 10 15:23 中国医院大全【官方推荐】.scel -rw-r--r-- 1 alair 197121 130068 Aug 10 15:28 '中国南北大菜-- 菜名大全.scel' -rw-r--r-- 1 alair 197121 74596 Aug 10 15:23 中国地铁【官方推荐】.scel -rw-r--r-- 1 alair 197121 91234 Aug 10 15:24 中国疗养院名录.scel -rw-r--r-- 1 alair 197121 53140 Aug 10 15:23 中国风景名胜.scel -rw-r--r-- 1 alair 197121 688104 Aug 10 15:23 中国高等教育名录数据库.scel -rw-r--r-- 1 alair 197121 365740 Aug 10 15:23 中国高等院校(大学)大全【官方推荐】.scel 然后执行scel2txt.py来转换所有词库文件 ...

2023年8月10日 · bbq