kugarocks
Come on now follow my lead 🎸🤘
Markdown Finder
Quickly find and copy code snippets from Markdown files. More...
Minichat
Terminal-style chat room. https://minichat.kugarocks.com
About Me
Backend Engineer since 2014, SRE since 2024. Currently working at OSCHINA.
Recently Updated Pages
IPTables Commands
SNAT iptables -t nat -A POSTROUTING -d 10.24.0.0/16 -j SNAT --to-source 10.24.1.1 iptables -t n...
Commands
Config Path mysql --help | grep -B 1 etc/my.cnf Default options are read from the following fil...
Docker Deploy
Init base_path=/data openresty_image=openresty/openresty:1.27.1.2-bookworm mkdir -p $base_path/...
fnOS Init
User & Group Switch to root: sudo -i Init home dir: mkdir -p /home/kuga groupadd kuga usermod ...
OpenVPN on macOS
SNAT (pf.conf) pf.confscrub-anchor "com.apple/*" nat-anchor "com.apple/*" nat-anchor "kugarocks_...
Add lo0 Aliases
lo0-aliases.sh /usr/local/bin/lo0-aliases.sh #!/bin/bash IPS=( "10.24.1.1" "10.24.1.2"...
Mastodon
Docker Compose Rails Secret docker compose run --rm web bin/rails secret VAPID Key docker compo...
Common SQL
Connect psql psql -U xxx -d postgres psql -U xxx -d postgres -p List Databases \l List Tab...
PM2 Setup
Install npm install -g pm2 macOS Root User sudo -i pm2 startup cp /var/root/Library/LaunchAge...
Deploy Server and Client
Install OpenVPN and EasyRSA apt install -y openvpn easy-rsa Create CA cd /etc/openvpn Create E...