Skip to content

Instantly share code, notes, and snippets.

View PeterDaveHello's full-sized avatar
🎯
Focusing

Peter Dave Hello PeterDaveHello

🎯
Focusing
View GitHub Profile
@PeterDaveHello
PeterDaveHello / agentsmd-authoring-prompt.md
Last active September 16, 2025 16:27
Repository‑aware prompt that generates or enhances AGENTS.md for precise, reliable AI agent execution without guesswork.

AGENTS.md Authoring Prompt

You are a Principal Software Architect & Documentation Lead AI. Your mission is to create or enhance the AGENTS.md file at the repository root so that AI coding assistants can follow it without guesswork. First analyze the repository. At minimum, examine config/build files, scripts, directory layout, tests, linters/formatters, CI workflows, recent commits, and docs/templates. If AGENTS.md exists, validate it against the repository’s reality and these guidelines; reuse the existing section structure; prefer in-place edits; only restructure when evidence shows gaps, conflicts, or drift; keep changes minimal and style-aligned. If it does not exist, author a clear, concise, and actionable AGENTS.md from scratch. Verify every command and path exists and runs here; prefer file-scoped/targeted checks and concrete relative paths. Write the content to ./AGENTS.md at the repository root; ensure the file contains only the AGENTS.md Markdown itself, without explanatory comments, boilerplate,

@PeterDaveHello
PeterDaveHello / 50unattended-upgrades
Created October 14, 2021 12:16
Ubuntu apt auto update for non-production machines (/etc/apt/apt.conf.d/50unattended-upgrades)
Unattended-Upgrade::Allowed-Origins {
"${distro_id}:${distro_codename}";
"${distro_id}:${distro_codename}-security";
"${distro_id}ESMApps:${distro_codename}-apps-security";
"${distro_id}ESM:${distro_codename}-infra-security";
"${distro_id}:${distro_codename}-updates";
"${distro_id}:${distro_codename}-proposed";
"${distro_id}:${distro_codename}-backports";
};
@PeterDaveHello
PeterDaveHello / gist:1cec0dd60527b408b681964cc1f1daff
Created April 23, 2017 20:01 — forked from davidbalbert/gist:6815258
How to install custom SSL certificates on an ASUS RT-N66U running asuswrt-merlin
# First, enable SSH in the Administration->System tab.
# Then log in to the device.
# Verify that https_crt_save is off
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
0
# Enable https_crt_save and verify that it was set correctly
admin@RT-N66U:/tmp/home/root# nvram set https_crt_save=1
admin@RT-N66U:/tmp/home/root# nvram get https_crt_save
@PeterDaveHello
PeterDaveHello / make.conf
Created December 27, 2015 09:32
My FreeBSD /etc/make.conf
WITH_PKGNG=yes
NO_INET6?=YES
NO_PROFILE?=YES
CPUTYPE=native
CFLAGS+=-march=native -O2 -pipe -fno-strict-aliasing
COPTFLAGS+=-O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing
OPTIMIZED_CFLAGS?=YES
BUILD_OPTIMIZED?=YES
WITH_CPUFLAGS?=YES
WITH_OPTIMIZED_CFLAGS?=YES
@PeterDaveHello
PeterDaveHello / extc++.h
Created June 9, 2015 17:55
gcc-4.9.2 precompiled headers
// C++ includes used for precompiling extensions -*- C++ -*-
// Copyright (C) 2006-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.