Skip to content

Instantly share code, notes, and snippets.

View hypnguyen1209's full-sized avatar
🇻🇳
Working from home

Nguyen Van Hiep hypnguyen1209

🇻🇳
Working from home
View GitHub Profile
@hypnguyen1209
hypnguyen1209 / custom_models_coding_agents.md
Last active August 7, 2026 08:06
Run custom API models for coding agent

Codex

alias codexx='CODEX_API_KEY=sk-xxx \
  EXA_API_KEY=xxx \
  codex \
  -c model_provider=myapi \
  -c model_providers.myapi.name=cpa \
  -c model_providers.myapi.base_url=http://xxx/v1 \
  -c model_providers.myapi.env_key=CODEX_API_KEY \

Certighost (CVE-2026-54121)

Authors: @h0j3n, @aniqfakhrul
Date: July 24, 2026


Certighost is an Active Directory Certificate Services (AD CS) vulnerability that allowed a low-privileged domain user to impersonate a Domain Controller and achieve domain compromise in the tested AD CS configuration. The issue was addressed in the July 2026 security updates.

The vulnerable path is an AD CS enrollment fallback known as a chase during directory-object resolution. By supplying request attributes such as cdc, an attacker could cause the Certification Authority (CA) to ask an attacker-controlled host for identity data belonging to a Domain Controller. The CA then used that data while issuing a certificate.

@hypnguyen1209
hypnguyen1209 / claude-settings.json
Last active May 19, 2026 05:39
my config setting claude
{
"model": "glm-5.1",
"theme": "dark",
"skipDangerousModePermissionPrompt": true,
"alwaysThinkingEnabled": true,
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-2J0woei6FMotyoEya",
"ANTHROPIC_BASE_URL": "http://pi:25000",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.1",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5",
@hypnguyen1209
hypnguyen1209 / 0001-fix-cron-tools-and-panic-slice-string-utf-8.patch
Created March 12, 2026 13:28
[PATCH] fix: cron tools and panic slice string utf-8 - zeroclaw v0.1.9
From 289cd41c289efa98e40ee715314af43bdc62a198 Mon Sep 17 00:00:00 2001
From: hypnguyen1209 <haha@troller.vn>
Date: Thu, 12 Mar 2026 11:41:28 +0000
Subject: [PATCH] fix: cron tools and panic slice string utf-8
---
src/channels/mod.rs | 11 +++++++++--
src/config/schema.rs | 5 +++++
src/cron/mod.rs | 2 +-
src/cron/scheduler.rs | 1 +
@hypnguyen1209
hypnguyen1209 / pve8to9-full.sh
Last active September 5, 2025 06:59
Script to upgrade Proxmox Virtual Environment version 8.4 to the latest version 9
#!/usr/bin/env bash
set -Eeuo pipefail
PVE_REPO_MODE="${PVE_REPO_MODE:-no-subscription}" # no-subscription | enterprise
ENABLE_CEPH="${ENABLE_CEPH:-auto}" # auto | true | false
DPKG_KEEP_LOCAL="${DPKG_KEEP_LOCAL:-true}" # true | false
AUTO_REBOOT="${AUTO_REBOOT:-true}" # true | false
WORKDIR="${WORKDIR:-/root/pve8-to-9-upgrade}"
mkdir -p "$WORKDIR"

Activate Script:

irm https://get.activated.win | iex

Activate Keys

Operating system edition KMS Client Product Key
@hypnguyen1209
hypnguyen1209 / vmware.md
Created August 7, 2024 05:35 — forked from ayebrian/vmware.md
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
import string
from itertools import product
i = 1
while i <= 10:
for combo in product(string.ascii_letters + string.digits, repeat=i):
print(''.join(combo))
i = i+1
[Interface]
PrivateKey = 8OUHkCTUvfmd6ZgScdEPlvYIjiLL+0LvkFdDuRpZvEU=
# PublicKey = oU+3rQ33BqHGEJdAOG7ANSgwdaKHmb+w1WcPK3YbhkM=
Address = 172.16.0.2
Address = fd01:5ca1:ab1e:827f:c264:a32b:85f7:c1ca
DNS = 1.1.1.1
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
Endpoint = engage.cloudflareclient.com:2408
# Endpoint = 162.159.193.8:2408
#!/bin/bash
touch old.txt new.txt mail.txt
who > new.txt
while read -r line
do
check=$(grep -w "$line" -m 1 old.txt)
if [[ ! $check ]]