LMLPHP后院

MacOS dd 显示进度技术

maybe yes 发表于 2022-11-03 20:22

发明这个方法的人,真的好牛逼!

dd 命令在 Linux 操作系统上运行,我们使用 “killall -USR1 dd” 命令即显示当前 dd 命令刻录的进度,但在 OS X 上面执行此命令,可能会导致 dd 进程中止。

维基百科对 dd 命令的介绍说:“向运行中的 dd 进程发送 SIGINFO 信号(Linux 上为 USR1)可以使它将 I/O 统计信息打印到 标准错误一次,然后继续复制(注意在 OS X 上,信号可能导致进程终止)。” 重点是 SIGINFP 信号,Linux 上为使用 “killall -USR1 dd” 向运行中的进程发送 SIGINFO 信号,但在 OS X 中向进程发送 SIGINFO 的命令不是 “killall -USR1 dd”,而是 “kill -SIGINFO PID” 或者是 “killall -29 dd”(因为 SIGINFO 在 OS X 中的编号为 29,可以使用 kill -l SIGINFO 查看)。

红米 AX6 解锁以及 Clash 折腾记录技术

maybe yes 发表于 2022-10-30 20:09

记录 Redmi AX6 科学上网折腾记录,据说 AX6 停产后涨价了。

先讲讲,为什么是 AX6,因为我之前为了实现 WiFi Mesh,所以买了它,这一买就荒废了一年,因为 Mesh 有一些 Bug,导致端口转发不能用,信号也没有什么改善,所以,这个花了不少钱买个东西搁置了一年,期间差一点卖掉了。

再讲一下完成的感受,两个字,真爽。我以前虽然能科学上网,但是多多少少都有一点点麻烦,对于一些古董机器没有路由层面的实现,仍然是不行的。这次完成了之后,我觉得可以打分 90 分,以前的体验只能是 80 分。就像我以前讲的,科学上网是不完美的,因为多多少少会误伤,某些 APP 会异常,所以比较完美的解决方案是,两个路由,一个原始网络,一个科学网络。

红米 AX6 解锁以及 Clash 折腾记录
红米 AX6 解锁以及 Clash 折腾记录

nic 域名申请成功技术

maybe yes 发表于 2022-10-19 12:27

关于免费域名的一些事情。

地主家,有资源就是不一样,做出来的东西让人佩服!

不到一天的审核,成功了,nic 域名,人家有钱任性,那个网页界面,完全没有 CSS,佩服!

Domain	Created	Updated	DNSSEC	Flags
xxx.eu.org	2022-10-18 20:41	2022-10-18 20:41	Eligible	
Domains xxx-FREE: Password Two-Factor Authentication Information 
Whois data for domain xxx.eu.org
Created on: 2022-10-18 20:41

domain:      xxx.EU.ORG
address:     Bomeshtak Mui
address:     26 Langdon Rd Swansea
address:     Wales
address:     United Kingdom
changed:     2022-10-18 18:41:47
tech-c:      xxx-FREE
admin-c:     xxx-FREE
Edit
Registrant	Nameservers	History	DNSSEC		
Contacts
administrative	xxx-FREE
technical	xxx-FREE

technical
-FREE

acme letsencrypt 折腾记技术

maybe yes 发表于 2022-09-30 18:01

acme 折腾记,更便捷的申请证书,可是咱们毕竟不是域名服务商,难以做到像 CF 那样牛逼。

我不喜欢这个脚本,强制安装,安装只是复制文件,添加链接,自动任务。并且还一定要注册,越来越难用了。

以下是折腾记录

pi@raspberrypi:~/work/acme $ acme.sh  --issue  --dns  -d godruoyi.com -d *.godruoyi.com
-bash: acme.sh:未找到命令
pi@raspberrypi:~/work/acme $ bash acme.sh --issue --dns -d x.com -d *.x.com
[2022年 09月 30日 星期五 16:29:12 CST] It seems that you are using dns manual mode. Read this link first: https://github.com/acmesh-official/acme.sh/wiki/dns-manual-mode
pi@raspberrypi:~/work/acme $ bash acme.sh --issue --dns -d x.com -d *.x.com --yes-I-know-dns-manual-mode-enough-go-ahead-please
[2022年 09月 30日 星期五 16:30:47 CST] Using CA: https://acme.zerossl.com/v2/DV90
[2022年 09月 30日 星期五 16:30:47 CST] Create account key ok.
[2022年 09月 30日 星期五 16:30:47 CST] No EAB credentials found for ZeroSSL, let's get one
[2022年 09月 30日 星期五 16:30:47 CST] acme.sh is using ZeroSSL as default CA now.
[2022年 09月 30日 星期五 16:30:47 CST] Please update your account with an email address first.
[2022年 09月 30日 星期五 16:30:47 CST] acme.sh --register-account -m my@example.com
[2022年 09月 30日 星期五 16:30:47 CST] See: https://github.com/acmesh-official/acme.sh/wiki/ZeroSSL.com-CA
[2022年 09月 30日 星期五 16:30:47 CST] Please add '--debug' or '--log' to check more details.
[2022年 09月 30日 星期五 16:30:47 CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
pi@raspberrypi:~/work/acme $ vim acme.sh 
pi@raspberrypi:~/work/acme $ acme.sh --register-account -m x@gmail.com
-bash: acme.sh:未找到命令
pi@raspberrypi:~/work/acme $ bash acme.sh --register-account -m x@gmail.com
[2022年 09月 30日 星期五 16:33:07 CST] No EAB credentials found for ZeroSSL, let's get one
[2022年 09月 30日 星期五 16:33:09 CST] Registering account: https://acme.zerossl.com/v2/DV90
[2022年 09月 30日 星期五 16:33:27 CST] Registered
[2022年 09月 30日 星期五 16:33:27 CST] ACCOUNT_THUMBPRINT='WHQQJ-H2154vB4Yo7J_YU-7gmht5PgF03Z-8vd5qU_0'
pi@raspberrypi:~/work/acme $ bash acme.sh --issue --dns -d x.com -d *.x.com --yes-I-know-dns-manual-mode-enough-go-ahead-please
[2022年 09月 30日 星期五 16:33:54 CST] Using CA: https://acme.zerossl.com/v2/DV90
[2022年 09月 30日 星期五 16:33:54 CST] Creating domain key
[2022年 09月 30日 星期五 16:33:54 CST] The domain key is here: /home/pi/.acme.sh/x.com/x.com.key
[2022年 09月 30日 星期五 16:33:55 CST] Multi domain='DNS:x.com,DNS:*.x.com'
[2022年 09月 30日 星期五 16:33:55 CST] Getting domain auth token for each domain
[2022年 09月 30日 星期五 16:34:35 CST] Getting webroot for domain='x.com'
[2022年 09月 30日 星期五 16:34:35 CST] Getting webroot for domain='*.x.com'
[2022年 09月 30日 星期五 16:34:35 CST] Add the following TXT record:
[2022年 09月 30日 星期五 16:34:35 CST] Domain: '_acme-challenge.x.com'
[2022年 09月 30日 星期五 16:34:35 CST] TXT value: '1QmQCMSLPlPPTnZJcTcNRuobYUFvPwpKJTedxe8DCfE'
[2022年 09月 30日 星期五 16:34:35 CST] Please be aware that you prepend _acme-challenge. before your domain
[2022年 09月 30日 星期五 16:34:35 CST] so the resulting subdomain will be: _acme-challenge.x.com
[2022年 09月 30日 星期五 16:34:35 CST] Add the following TXT record:
[2022年 09月 30日 星期五 16:34:35 CST] Domain: '_acme-challenge.x.com'
[2022年 09月 30日 星期五 16:34:35 CST] TXT value: 'KUziMmpJzuPkEZOHKzmrcL8B9Q5pTnTYUx4lDjBr_S4'
[2022年 09月 30日 星期五 16:34:35 CST] Please be aware that you prepend _acme-challenge. before your domain
[2022年 09月 30日 星期五 16:34:35 CST] so the resulting subdomain will be: _acme-challenge.x.com
[2022年 09月 30日 星期五 16:34:35 CST] Please add the TXT records to the domains, and re-run with --renew.
[2022年 09月 30日 星期五 16:34:35 CST] Please add '--debug' or '--log' to check more details.
[2022年 09月 30日 星期五 16:34:35 CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

[8192]stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in技术

maybe yes 发表于 2022-09-26 21:43

stripos 使用报错记录。

记录一个报错

[8192]stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in

解决办法

PHP7.3版本影响

解决办法

1.换PHP版本

2.

$nullOffset = strpos($url, 0x00);//替换前
$nullOffset = strpos($url, chr(0x00));//替换后
2024-03-29 01:13:15 1711645995 0.004925