Skip to content

Instantly share code, notes, and snippets.

@muhammadardie
muhammadardie / grafana compare.md
Last active June 16, 2025 09:36
Grafana paid version vs free/self-hosted version

🔓 1. Authentication & Access Control

Feature Free Paid
Basic auth (manual)
SSO (OAuth/SAML/LDAP/AD)
Fine-grained access control (per dashboard, per team)

Paid Benefit: Enterprise-grade access control, audit logs, and secure SSO for teams.

@muhammadardie
muhammadardie / Google Maps Cost.md
Last active June 4, 2025 09:12
Estimasi Biaya Firebase untuk Aplikasi Tracking Karyawan (250 Karyawan)

Detail Biaya Google Maps API untuk Aplikasi Tracking Karyawan

Overview Google Maps Platform Pricing

Google Maps Platform menggunakan sistem pay-as-you-use dengan berbagai API yang berbeda-beda harganya. Setiap bulan mendapat $200 USD free credits yang bisa digunakan untuk semua layanan Google Cloud Platform.

Breakdown API Berdasarkan Spesifikasi Actual

1. Maps JavaScript API (Admin Dashboard)

Kegunaan:

@muhammadardie
muhammadardie / tailscale-parsec-guide.md
Created May 13, 2025 09:18
Using Tailscale with Parsec for Secure Remote Desktop Access

🛡️ Using Tailscale with Parsec for Secure Remote Desktop Access

📌 Overview

This guide shows how to use Tailscale (a mesh VPN) together with Parsec (a high-performance remote desktop tool) to:

  • Securely access your machine from anywhere
  • Avoid port forwarding or exposing public IPs
  • Improve peer-to-peer connection reliability
@muhammadardie
muhammadardie / step.md
Created April 15, 2025 08:02
Example step to create GitHub Action for Automatic Code Deployment via SSH

CI/CD Structure Used

Branch develop → Deploy to staging server
Branch main → Deploy to production server
Environment & Secrets are used to securely store credentials

1. Add SSH Key to VPS

GitHub Actions requires SSH access to the VPS for deployment.
On both the development and production VPS, run the following:

@muhammadardie
muhammadardie / goaccess.ini
Created January 7, 2025 07:42
GoAccess configuration using supervisord and nginx (Rocky Linux 9)
[program:goaccess]
command=/usr/bin/goaccess /var/log/nginx/access.log -o /var/www/goaccess/index.html --log-format=COMBINED --real-time-html --tz=Asia/Jakarta --ws-url=wss://subdomain.example.com:443/wss --port 7890
directory=/var/www/goaccess
environment=HOME="/root",USER="root"
autostart=true
autorestart=true
startretries=3
user=root
redirect_stderr=true
stdout_logfile=/var/log/supervisor/goaccess.log
@muhammadardie
muhammadardie / backup restore vps.md
Created November 4, 2024 05:13
Backup and restore full backup VPS (migrate VPS)

Backup and restore full backup VPS (migrate VPS)

First step was backup your Linux VPS directly on the server and then download it into your machine. Here’s how to create a compressed backup and download it afterward.

Creating and Downloading a Compressed Backup

  1. Create a Compressed Archive on the VPS:
    • You can use tar to create a compressed archive of the entire root filesystem while excluding directories that don’t need to be backed up (such as /dev, /proc, /sys, etc.).
    • Run the following command on your VPS:
@muhammadardie
muhammadardie / docker-compose.yml
Last active September 23, 2024 05:37
GoAccess Docker Compose & Nginx configuration
services:
goaccess:
container_name: goaccess
image: allinurl/goaccess:latest
volumes:
- "/var/log/nginx:/var/log/nginx:ro"
- "/var/www/goaccess:/var/www/goaccess:rw"
ports:
- "7890:7890"
command: "/var/log/nginx/access.log --log-format=COMBINED -o /var/www/goaccess/index.html --real-time-html --tz=Asia/Jakarta --ws-url=wss://subdomain.example.com:443/wss --port=7890"