Skip to content

Instantly share code, notes, and snippets.

@sweetnight
sweetnight / cloudflared.txt
Last active January 4, 2026 21:03
Setup Tunnel CloudFlared
sudo apt update && sudo apt upgrade -y
sudo mkdir -p /usr/share/keyrings
curl -fsSL https://pkg.cloudflare.com/cloudflare-public-v2.gpg | sudo tee /usr/share/keyrings/cloudflare-public-v2.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/cloudflare-public-v2.gpg] https://pkg.cloudflare.com/cloudflared any main" | sudo tee /etc/apt/sources.list.d/cloudflared.list
sudo apt update
sudo apt install cloudflared -y
@sweetnight
sweetnight / instalasiWP.txt
Last active January 5, 2026 00:06
Download file WordPress di Linux Ubuntu CLI
Perintah download file WP terbaru:
wget https://wordpress.org/latest.tar.gz
-----------------------------------------------------------
Perintah unzip file WP terbaru:
tar -xzf latest.tar.gz
-----------------------------------------------------------
@sweetnight
sweetnight / nginxwp.txt
Last active January 4, 2026 21:04
Setting Nginx untuk Website WordPress + phpMyAdmin
server {
listen 18080;
server_name example.com;
root /var/www/example.com;
index index.php index.html;
client_max_body_size 256M;
# include /etc/nginx/snippets/security-rules.conf;