Skip to content

Instantly share code, notes, and snippets.

View adinata-id's full-sized avatar

Adinata adinata-id

View GitHub Profile
@adinata-id
adinata-id / prompt untuk membuat Visual Ops Dashboard untuk Hermes Agent.txt
Created October 5, 2026 04:36
prompt untuk membuat Visual Ops Dashboard untuk Hermes Agent
# PROMPT: Bangun Visual Ops Dashboard untuk Hermes Agent
> Paste prompt ini ke agent Hermes mana pun. Agent akan membangun dashboard
> monitoring visual real-time untuk dirinya sendiri, menyesuaikan data &
> konteks yang ia kelola.
---
## PROMPT
@adinata-id
adinata-id / 5-favorite-skills.md
Created August 18, 2026 05:23 — forked from bholmesdev/5-favorite-skills.md
The 5 agent skills I use everyday
  • /grill-me for research and planning
  • /taste-review to let Codex make more tasteful design decisions by asking Claude (you'll need the claude CLI installed for this)
  • /vercel-react-best-practices for improving the quality of React component these agents generated
  • /simplify to improve code quality, reduce comment wordiness, and improve system architecture
  • /test-desktop-app to test Electron apps end-to-end. If you work on a different kind of app, write your own version!
@adinata-id
adinata-id / audit-your-codebase.md
Created August 15, 2026 00:49 — forked from aarondfrancis/audit-your-codebase.md
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.

@adinata-id
adinata-id / change color menu wp7 to old version
Last active May 23, 2026 03:49
change color menu wp7 to old version
// Force the fresh color scheme for all WP Admin users, on the runtime
add_filter( 'get_user_option_admin_color', function( $result ) {
return 'fresh';
} );
// Force the color scheme for all WP Admin users, when saving their profile
add_action( 'profile_update', function( $user_id ) {
update_user_meta( $user_id, 'admin_color', 'fresh' );
} );
@adinata-id
adinata-id / setting tailscale vpn di vps
Created March 9, 2026 06:12
setting tailscale vpn di vps
cek ip route network vps:
command: ip route
conotoh output:
104.250.118.0/24
# 1. Install Tailscale (Script resmi otomatis deteksi OS)
curl -fsSL https://tailscale.com/install.sh | sh
@adinata-id
adinata-id / setting firewall vps.txt
Last active March 6, 2026 03:30
setting firewall vps
---Keamanan----
# Install fail2ban
sudo apt update && sudo apt install fail2ban -y
# Setup UFW - whitelist SSH dulu sebelum enable
sudo ufw allow 22/tcp
sudo ufw allow 18789/tcp # openclaw gateway
@adinata-id
adinata-id / gist:ba42df24c1eda95a67cf8553bc3f2ef9
Created December 26, 2025 09:31
Batasi akses langsung ke file-file shell nginx
# Batasi akses langsung ke file-file shell
location ~ ^/(bench\.sh|rdp\.sh|rdpn\.sh|arm\.sh|armn\.sh|cpcleanup\.sh|cleanup_lsphp_sessions\.sh|speedtest\.sh|mmac\.sh|autocleanup\.sh|ioncube\.sh|yabs\.sh)$ {
set $deny_access 1;
if ($http_user_agent ~* "(wget|curl)") {
set $deny_access 0;
}
if ($deny_access = 1) {
return 403;
#!/bin/bash
DOMAIN="https://khodam.me/"
echo "=== Testing Cloudflare WAF Rules ==="
echo ""
echo "Test 1: PHP in uploads (should block)"
curl -s -o /dev/null -w "Status: %{http_code}\n" $DOMAIN/wp-content/uploads/test.php
@adinata-id
adinata-id / gist:1fed454ea0535d00dc1cf69d709b688e
Last active December 2, 2025 13:50
Mirror Server Linux Lokal
Link Mirror Server Linux Lokal:
https://mirror.gi.co.id
http://mirrors.linode.com/
contoh penggunaan utk ubuntu 22.04:
sudo tee /etc/apt/sources.list > /dev/null <<EOF
deb https://mirror.gi.co.id/ubuntu/ jammy main restricted universe multiverse
deb https://mirror.gi.co.id/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirror.gi.co.id/ubuntu/ jammy-backports main restricted universe multiverse
Unix Bench:
sudo apt update
for ubuntu 22.04
sudo apt install -y build-essential libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make git
for ubuntu 24.04:
sudo apt install -y \
build-essential \
libx11-dev \
libgl1-mesa-dev \