我是Wah,截止目前已写了 54 篇文章,大约 74946 字,最后更新时间:。 把这里定位成数字个人花园,存放我的笔记,想法。英文内容会发布在 这里

分类 查看:
Articles (1)
Dev (2)
Journal (8)
Notes (28)
Random (17)
按最近发布的文章:

成都游记

缘起🔗

疫情三年,没出过一次远门。娃终于肯和爷爷奶奶单独呆上一周了,那起飞吧~~~

日程安排🔗

  • D0 D1 晚机落地成都双流机场,一天多悠闲逛逛成都
  • D2 D3 黄龙九寨沟两天一夜,住在九寨沟一晚上
  • D4 23点回到成都,博物馆的一天,早上成博,下午三星堆博物馆
  • D5 峨眉山一天,晚上回到成都
  • D6 吃饱补觉的悠闲 13:30天府机场起飞回深圳

→  继续阅读需要: 3 min

搭建book searcher图书搜索服务

介绍Book Searcher🔗

Book Searcher 本身并不存储任何图书源文件,它基于用户构建的私人图书索引进行搜素,得到搜索结果后,可以在 IPFS 上获取和阅读电子图书。作者页面 ,但现在原作者已经 删库 了。

只找到这个替代。可以使用Docker一键部署,使用官方源码构建了支持ARM架构的Docker镜像

→  继续阅读需要: 2 min

绿联NAS部署frp 实现内网穿透

买入绿联NAS后,再解锁docker技能后,玩法丰富了太多。部署在NAS的各种容器,为了能方便外网访问,在这个公网ip紧缺的时代,能实现内网穿透尤为重要。 而 frp 则是一个开源的常见解决方案。

frp 是一款高性能的反向代理应用,专注于内网穿透。它支持多种协议,包括 TCP、UDP、HTTP、HTTPS 等,并且具备 P2P 通信功能。使用 frp,您可以安全、便捷地将内网服务暴露到公网,通过拥有公网 IP 的节点进行中转。

→  继续阅读需要: 3 min

Github Action Workflow 触发运行分析

目标🔗

单个 (或多个) Workflow 之间触发运行逻辑,搞清楚究竟是按照什么样的顺序运行。

最直接 on.<push>🔗

When using the push and pull_request events, you can configure a workflow to run based on what file paths are changed. Path filters are not evaluated for pushes of tags.

Use the paths filter when you want to include file path patterns or when you want to both include and exclude file path patterns. Use the paths-ignore filter when you only want to exclude file path patterns. You cannot use both the paths and paths-ignore filters for the same event in a workflow. If you want to both include and exclude path patterns for a single event, use the paths filter prefixed with the ! character to indicate which paths should be excluded.

If at least one path matches a pattern in the paths filter, the workflow runs. For example, the following workflow would run anytime you push a JavaScript file (.js).

→  继续阅读需要: 2 min

如何对代码进行注释

不同编程语言有不同的方式进行注释,本文将举例说明

在你的代码中添加注释是一个很好的做法,因为它使你的代码更具有可读性,易于理解。

注释不会运行,因为它们会被编译器和解释器忽略。

总结起来,基本就是 // # /** */ <!----> ,实在不行,遍历 (逃)

→  继续阅读需要: 2 min

利用cf搭建imgur反代 支持评论图片自动上传

Typecho博客系统中的Sakura主题默认支持图片自动上传,但imgur默认访问有问题,故此设置一下完美支持imgur

原理分析🔗

  • 利用Cloudflare的worker搭建imgur反代
  • 修改主题下相关文件
  • 后台进行主题设置 添加反代地址

搭建反代🔗

0. 进入 Cloudflare 的 worker 界面,创建一个新的,删掉默认代码,用以下代码部署

addEventListener("fetch", event => {
  let url = new URL(event.request.url);
  url.protocol = 'https:'
  <mark>url.hostname = "i.imgur.com";</mark>
  let request = new Request(url, event.request);
  event.respondWith(fetch(request));
})

将得到 https://foo.boo.workers.dev 的访问域名,到此将实现原本需要 https://i.imgur.com/Ch0lmFc.jpg 访问的变为只需要 https://foo.boo.workers.dev/Ch0lmFc.jpg 即可。

1. 某些网络环境,workers.dev 域名支持不好,故此要绑定自定义个性化域名
在 worker 界面中的 Custom Domains,添加自定义域。你的 CF 账号下的任何一个域名都可以设置个二级子域名或三级,到此实现了 利用 https://yourdomain.name/Ch0lmFc.jpg

→  继续阅读需要: 3 min

一加 Ace 2 Pro 折腾

从一加 8 Pro 换到一加 Ace 2 Pro ,Android 还是折腾一下才好玩

系统🔗

2024.12 升级到C15 从14降级到13,再root了它

试用一下findx6pro移植包

再不行用官方没主流推广的,在海外aliexpress卖的出厂包氧OS PJA110_11_13.1.1.302CN01_230828_ES

[x] 遗憾现在很少类原生rom

回到出厂包🔗

用这个 PJA110domestic_11_13.1.1.302CN01_2023072223340105.zip 用流出来的那个9008软件(windows平台),回归到最原始包(真正的出厂状态)

升级,然后解锁BL🔗

OTA升级到 color 13.1 552 ,重启到 fastboot 模式,flash oem unlock 解锁BL

root,再安装模块🔗

用阿木的工具一键root,再安装magisk hide,绕过银行类app 一加 Ace 2 Pro root 教程

照片🔗

经常备份到 NAS(Network Attached Storage 网络附加存储),妈妈再也不用担心刷机

git🔗

  • 配置好,手机发博客
  • 学习Liunx系统
最近更新的笔记