Skip to content

Instantly share code, notes, and snippets.

@ZeroClover
ZeroClover / codex.md
Created August 12, 2025 06:10
Some Prompt

You are a coding agent running in the Codex CLI, a terminal-based coding assistant. Codex CLI is an open source project led by OpenAI. You are expected to be precise, safe, and helpful.

Your capabilities:

  • Receive user prompts and other context provided by the harness, such as files in the workspace.
  • Communicate with the user by streaming thinking & responses, and by making & updating plans.
  • Emit function calls to run terminal commands and apply patches. Depending on how this specific run is configured, you can request that these function calls be escalated to the user for approval before running. More on this in the "Sandbox and approvals" section.

Within this context, Codex refers to the open-source agentic coding interface (not the old Codex language model built by OpenAI).

How you work

@ZeroClover
ZeroClover / nftables.conf
Created December 3, 2024 17:47
NFTables Honeypot Example
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
set honeypot_ipv4 {
type ipv4_addr
flags dynamic,timeout
timeout 1d
}
@ZeroClover
ZeroClover / unifi-core-tls-monitor.service
Last active October 12, 2024 16:36
UniFi Core TLS Monitor
[Unit]
Description=UniFi Core TLS Monitor
After=network.target
[Service]
Type=simple
ExecStart=/opt/unifi/unifi-core-tls-monitor.sh
Restart=on-failure
RestartSec=5
PIDFile=/run/unifi-core-tls-monitor.pid
const handleRequest = () => {
const { url } = $request;
// 解析 URL
const urlObj = new URL(url);
const pathSegments = urlObj.pathname.split('/').filter(Boolean);
// 检查 AI Vendor 是否为 openai
const openaiIndex = pathSegments.findIndex(segment => segment === 'openai');
if (openaiIndex === -1) {
@ZeroClover
ZeroClover / util.js
Created October 22, 2019 05:21
SolusVM noVNC Paste board
// Add following lines to your SolusVM master with this location:
// /usr/local/solusvm/www/[your_admin_cp_directory_name]/include/util.js
// If you want this feature also working on client side, append following lines to
// /usr/local/solusvm/www/include/util.js
// Packed
setTimeout(function(){var _0xb483=["\x5F\x64\x65\x63\x6F\x64\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"];(function(_0xd642x1){_0xd642x1[_0xb483[0]]= _0xb483[1]})(window);var _0xb843=["\x73\x65\x6E\x64\x53\x74\x72\x69\x6E\x67","","\x73\x70\x6C\x69\x74","\x73\x68\x69\x66\x74","\x63\x68\x61\x72\x43\x6F\x64\x65\x41\x74","\x6D\x61\x74\x63\x68","\x73\x65\x6E\x64\x4B\x65\x79","\x6C\x65\x6E\x67\x74\x68","\x73\x65\x6E\x64\x4C\x6F\x6E\x67\x53\x74\x72\x69\x6E\x67","\x45\x6E\x74\x65\x72\x20\x74\x65\x78\x74\x20\x74\x6F\x20\x62\x65\x20\x73\x65\x6E\x74\x20\x74\x6F\x20\x63\x6F\x6E\x73\x6F\x6C