Advanced Search
Search Results
294 total results found
CURL SSL/TLS Failed
Errors RST Reset. curl -v https://example.com * Host example.com:443 was resolved. * IPv6: (none) * Ipv4: xxx * Trying xxx:443 * schannel: disabled automatic use of client certificate * ALPN: curl offets http/1.1 * Recv failure: Connection was reset * schan...
apparmor
Errors dmesg | grep -i apparmor | grep mysqld [ 1237.535694] audit: type=1400 audit(1766687118.766:257): apparmor="DENIED" operation="mknod" class="file" profile="/usr/sbin/mysqld" name="/data/error.log" pid=5153 comm="mysqld" requested_mask="c" denied_mask=...
/etc/network
/etc/network 是 Debian 体系里“老一代网络配置”的地盘,主要给 ifupdown 用的, 和 netplan / systemd-networkd 是不同年代、不同体系的东西。 Examples post-up 是静态路由,eth1 是三线接口。 # This file is generated from information provided by the datasource. Changes # to it will not persist across an instance r...
OpenVPN on macOS
SNAT (pf.conf) pf.confscrub-anchor "com.apple/*" nat-anchor "com.apple/*" nat-anchor "kugarocks_nat" rdr-anchor "com.apple/*" dummynet-anchor "com.apple/*" anchor "com.apple/*" load anchor "com.apple" from "/etc/pf.anchors/com.apple" anchor "kugarocks_nat...
PM2 Setup
Install npm install -g pm2 macOS Root User sudo -i pm2 startup cp /var/root/Library/LaunchAgents/pm2.root.plist /Library/LaunchDaemons launchctl bootstrap system /Library/LaunchDaemons/pm2.root.plist launchctl enable system/pm2.root
IPTables Commands
SNAT iptables -t nat -A POSTROUTING -d 10.24.0.0/16 -j SNAT --to-source 10.24.1.1 iptables -t nat -A POSTROUTING \ -d 10.24.0.0/16 \ -j SNAT --to-source 10.24.1.1 DNAT iptables -t nat -A PREROUTING -p tcp --dport 30200 -j DNAT --to-destination 10.24.1....
Add lo0 Aliases
lo0-aliases.sh /usr/local/bin/lo0-aliases.sh #!/bin/bash IPS=( "10.24.1.1" "10.24.1.2" ) for ip in "${IPS[@]}"; do /sbin/ifconfig lo0 alias "$ip" netmask 255.255.255.255 echo "Added alias: $ip" done echo "All IP aliases added successfully"...
fnOS Init
User & Group Switch to root: sudo -i Init home dir: mkdir -p /home/kuga groupadd kuga usermod -g kuga kuga chown kuga:kuga /home/kuga Change root password: passwd xxfn-tools https://us1.vvvvvv.de5.net/soft/ Installation curl -ksSL https://us1.vvvvvv.de5....
Docker Deploy
Init base_path=/data openresty_image=openresty/openresty:1.27.1.2-bookworm mkdir -p $base_path/openresty/logs mkdir -p $base_path/openresty/conf mkdir -p $base_path/openresty/conf/conf.d Pull Image docker pull $openresty_image nginx.conf docker run --rm ...
LVM Extension
root@veen12603200261106010101:~# pvcreate /dev/vdb /dev/vdc /dev/vdd Physical volume "/dev/vdb" successfully created. Physical volume "/dev/vdc" successfully created. Physical volume "/dev/vdd" successfully created. root@veen12603200261106010101:~# lsbl...
Lua Snippet
Apache Response location /ping { default_type text/html; content_by_lua_block { ngx.say("<h1>It works!</h1>") } } Print Header location / { # 设置响应头为 JSON 格式 default_type application/json; content_by_lua_block { local...
Configurations
File Descriptor Check Max open files cat /proc/$(pidof nginx | awk '{print $1}')/limits Add below config: [Service] LimitNOFILE=65535 systemctl daemon-reload systemctl restart openresty
harbor-db
Connect DB docker exec -it harbor-db psql -U postgres -d registry No Tag Repository SELECT r.repository_id, r.name FROM repository r WHERE NOT EXISTS ( SELECT 1 FROM tag t WHERE t.repository_id = r.repository_id );
Wrangler
Installation npm install -g wrangler wrangler --version ⛅️ wrangler 4.61.0