30

半马


40
全马

DateTimeDistanceAvg. Pace
2023-10-1105:58-06:245KM5'07"
2023-10-1306:05-06:305KM4'51"
2023-10-1406:19-06:425KM4'45"
2023-10-1506:44-07:5915KM4'57"
2023-10-1706:12-06:365KM4'50"
2023-10-1906:37-07:025KM4'52"
2023-10-2006:18-06:425KM4'54"
2023-10-2306:00-06:245KM4'52"
2023-10-2606:02-06:265KM4'46"
2023-10-3006:12-06:365KM4'48"
2023-11-305:28-05:535KM5'00"
2023-11-508:04-09:5021KM5'00"
2023-11-2305:54-06:165KM4'28"
2023-11-2405:43-06:065KM4'39"
2023-11-2606:18-07:0510KM4'44"
2023-12-0606:22-06:445KM4'29"
2023-12-1007:03-07:5010KM4'44"
2023-12-1306:29-06:515KM4'25"

https://prismjs.com/
进入下载页 选择 Languages Themes
下载 JS CSS
将 prism.js prism.css 上传至 /usr/themes/default
在 header.php </head>前插入

<link rel="stylesheet" href="<?php $this->options->themeUrl('prism.css'); ?>">
<script src="<?php $this->options->themeUrl('prism.js'); ?>"></script>

在代码块标记 ``` 后添加语言名

wget https://github.com/typecho/typecho/releases/latest/download/typecho.zip
unzip typecho.zip
安装时上传目录无法写入:chmod o+w uploads

/usr/local/nginx/conf/vhost/host.conf
后台404:将 enable-php.conf 改为 enable-php-pathinfo.conf
IP地址访问网站:server_name 添加IP地址
重启nginx:/usr/local/nginx/sbin/nginx -s reload

侧边栏不显示最近回复与其他:
/themes/default/sidebar.php 注释 ShowRecentComments ShowOther
或者在 控制台 设置外观 去勾选 显示最近回复 显示其他杂项

禁用评论:控制台 个人设置 撰写设置 默认允许 去勾选 可以被评论

不显示"评论":/themes/default/index.php 注释 interactionCount
不显示点击作者后的"评论":/themes/default/archive.php 注释 interactionCount

自定义后台路径:config.inc.php define('__TYPECHO_ADMIN_DIR__', '/admin/');

后台不显示"最近得到的回复":index.php 注释 '最近得到的回复'对应的div

首页不显示"关于":/themes/default/header.php 注释 \Widget\Contents\Page 至 endwhile

lnmp vhost add
主域名:www.wangdake.top
更多域名:wangdake.top
网站目录:/home/wwwroot/www.wangdake.top
Allow Rewrite rule:y typecho
Enable PHP Pathinfo:n
Allow access log:n
Enable IPv6:y
添加数据库和用户:y
Add SSL Certificate:y 2
Using 301 to Redirect HTTP to HTTPS:y

yum install screen -y
screen -S lnmp
wget https://soft.lnmp.com/lnmp/lnmp1.9.tar.gz -O lnmp1.9.tar.gz && tar zxf lnmp1.9.tar.gz && cd lnmp1.9 && ./install.sh lnmp
MySQL:5.5.62
Enable InnoDB:y
PHP:7.4.30

Install lnmp takes 71 minutes.
Install lnmp V1.9 completed! enjoy it.

awk printf 不会插入换行符
获取WiFi连接设备MAC:hostapd_cli list_sta | awk 'NR>1{print $1}'
Read-only file system:mount -o remount,rw /
网络adb:adb connect ip_address:port