Skip to content

Instantly share code, notes, and snippets.

View nshermione's full-sized avatar

Thinh Tran nshermione

  • MECORP
  • Vietnam
View GitHub Profile
pm2 set pm2-logrotate:max_size 30M
pm2 set pm2-logrotate:retain 200
pm2 set pm2-logrotate:compress true
pm2 set pm2-logrotate:dateFormat YYYY-MM-DD_HH-mm-ss
pm2 set pm2-logrotate:workerInterval 30
pm2 set pm2-logrotate:rotateInterval 0 0 * * *
pm2 set pm2-logrotate:rotateModule true
@nshermione
nshermione / setup_openvpn.sh
Last active March 29, 2025 07:52
ubuntu simple openvpn server and client
#!/bin/bash
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "Please run as root or with sudo"
exit 1
fi
# Exit on error
set -e