Skip to content

Instantly share code, notes, and snippets.

View tonidy's full-sized avatar

toni dy tonidy

View GitHub Profile
{
"basics": {
"name": "Toni DY",
"label": "Software Engineer",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "",
"url": "https://tonidy.github.io",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Codapi Playground</title>
<link rel="stylesheet" href="https://unpkg.com/@antonz/[email protected]/dist/snippet.css" />
<style>
pre {
white-space: pre-wrap;
"actions": [
"4.148.0.0/16",
"4.149.0.0/18",
"4.149.64.0/19",
"4.149.96.0/19",
"4.149.128.0/17",
"4.150.0.0/18",
"4.150.64.0/18",
"4.150.128.0/18",
"4.150.192.0/19",
@tonidy
tonidy / nginx-configmap.yml
Created September 13, 2025 07:12
NGINX + index.html custom + Service + HTTPRoute
# 1) Buat NGINX + index.html custom + Service + HTTPRoute
cat <<'EOF' | kubectl apply -f -
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-index
namespace: default
data:
index.html: |
<!doctype html>
@tonidy
tonidy / scan-vuln.sh
Last active September 9, 2025 09:20
Script to Check Vulnerable Packages
#!/usr/bin/env bash
set -euo pipefail
# Story: https://jdstaerk.substack.com/p/we-just-found-malicious-code-in-the
# Enhanced from:
# https://github.com/AndrewMohawk/RandomScripts/blob/main/scan_for_deps_qix-2025-08-09.sh
# ===== Vulnerable package list =====
VULNS="[email protected]
[email protected]
This is a sandbox environment. Using personal credentials
is HIGHLY! discouraged. Any consequences of doing so, are
completely the user's responsibilites.
You can bootstrap a cluster as follows:
1. Initializes cluster master node:
kubeadm init --apiserver-advertise-address $(hostname -i) --pod-network-cidr 10.5.0.0/16
@tonidy
tonidy / trim-services.sh
Created August 9, 2025 23:45
Trim Ubuntu 24 Services
#!/usr/bin/env bash
set -euo pipefail
# ===================== O P S I =====================
PURGE_SNAPD=${PURGE_SNAPD:-true} # purge snapd agar legah
DISABLE_RSYSLOG=${DISABLE_RSYSLOG:-true} # true: matikan & purge rsyslog → pakai journald saja
DISABLE_POLKIT=${DISABLE_POLKIT:-true} # true: matikan polkit (jarang perlu di server CLI)
DISABLE_SERIAL_GETTY=${DISABLE_SERIAL_GETTY:-false} # true: matikan serial-getty@ttyS0 (opsional)
DISABLE_MULTIPATH=${DISABLE_MULTIPATH:-true} # true: matikan multipathd (umumnya tak perlu di VM sederhana)
@tonidy
tonidy / trim-services.sh
Created August 9, 2025 23:45
Trim Ubuntu 24 Services
#!/usr/bin/env bash
set -euo pipefail
# ===================== O P S I =====================
PURGE_SNAPD=${PURGE_SNAPD:-true} # purge snapd agar legah
DISABLE_RSYSLOG=${DISABLE_RSYSLOG:-true} # true: matikan & purge rsyslog → pakai journald saja
DISABLE_POLKIT=${DISABLE_POLKIT:-true} # true: matikan polkit (jarang perlu di server CLI)
DISABLE_SERIAL_GETTY=${DISABLE_SERIAL_GETTY:-false} # true: matikan serial-getty@ttyS0 (opsional)
DISABLE_MULTIPATH=${DISABLE_MULTIPATH:-true} # true: matikan multipathd (umumnya tak perlu di VM sederhana)
@tonidy
tonidy / history.md
Created July 9, 2025 01:26
History PA - Simple Password Manager

Berawal dari ngulik MCP dan ketemu JSON ini:

{
  "mcpServers": {
    "mcp-web": {
      "command": "node",
      "args": [
        "/Users/asep/dist/mcp/index.js"
 ],