YaCHEN's
Memo Blog

  • 首页
  • 关于
  • 归档
  • 友链
  • XP软件
  • Win7软件
Feb 8, 2024
No Comments

PG把所有序列更新到表id最大值+1

DO $$ DECLARE rec RECORD; max_id bigint; seq_name TEXT; sql_str TEXT; BEGIN -- 遍历每个表 FOR rec IN SELECT table_name, column_name FROM information_schema.column...

继续阅读 »

Jan 28, 2024
No Comments

nextcloud在php8.2运行apcu cli运行

refer: https://help.nextcloud.com/t/upgrade-to-debian-12-bookworm/163944/36?page=2vi /etc/php/8.2/mods-available/apcu.iniapc.enable_cli = 1

继续阅读 »

Dec 29, 2023
No Comments

使用reprepro搭建一个deb repo

https://wiki.debian.org/DebianRepository/SetupWithReprepro生成gpgkey$ gpg --gen-key建立仓库目录$ mkdir -p /srv/d/apt/debian/conf配置# /srv/d/apt/debian/conf/distributions Origin: YaCHEN Deb Repo Label: YaCHE...

继续阅读 »

Dec 26, 2023
No Comments

golang交叉编译运行在小米ac2100 mips架构的可执行文件

最近咸鱼45包邮收了一台小米ac2100用来做ap,米系设备还是可以的,预留好了漏洞给刷openwrt,openwrt也直接官方提供了方案:https://openwrt.org/toh/xiaomi/mi_router_ac2100搞定后发现CPU为MT7621,是个mips架构的cpu,openwrt软件源里木有sing-box,只能手动编译下了编译注意点:MT7621为mipsle,也...

继续阅读 »

Dec 22, 2023
No Comments

debian下的wireguard简易配置

有公网的Debian服务器:1.1. 生成密钥对# cd /etc/wireguard/ # umask 077; wg genkey | tee privatekey | wg pubkey > publickey1.2. /etc/network/interfacesauto wg-wxc iface wg-wxc inet static address 192.168.2...

继续阅读 »

下一页
© 2025 Powered By YaCHEN & Typecho Theme By Junichi