Skip to content

Instantly share code, notes, and snippets.

@pniaps
pniaps / agentsmd-authoring-prompt.md
Created May 24, 2026 13:48 — forked from PeterDaveHello/agentsmd-authoring-prompt.md
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,

@pniaps
pniaps / Build_seed_iso
Created March 20, 2023 18:07 — forked from asvignesh/Build_seed_iso
Samples to create a cloud-init configuration ISO.
$ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data
@pniaps
pniaps / backup.sh
Created February 20, 2023 01:29 — forked from aymencis/backup.sh
OVH NFS BACKUP
#!/bin/sh
# BACKUP SCRIPT
CONTACT="email@email.com"
MAIL="/tmp/mail"
if [ -e "/var/lock/backup.lock" ]
then
echo " BACKUP ALREADY STARTED !!" > $MAIL
@pniaps
pniaps / openwrt.md
Last active April 28, 2021 17:38
Apuntes OpenWRT

Cambiar rango de la red del router

uci set network.lan.ipaddr=192.168.2.1;
uci commit;
/etc/init.d/network restart

Permitir WebUI desde WAN

uci add firewall rule
uci set firewall.@rule[-1].name='Allow-WEB-wan'

@pniaps
pniaps / pc componentes
Last active October 20, 2020 17:41
Ordenar ofertas de pccomponentes por descuento
//https://stackoverflow.com/questions/282670/easiest-way-to-sort-dom-nodes
var list = document.querySelectorAll('.row.page-0');
var items = list[0].childNodes;
var itemsArr = [];
for (var i in items) {
if (items[i].nodeType == 1) { // get rid of the whitespace text nodes
itemsArr.push(items[i]);
}
cat << 'EOF' > /etc/uci-defaults/reset_wan
#!/bin/sh
(crontab -l ; echo "*/5 * * * * sh /usr/bin/reset_wan") | sort | uniq | crontab -
/etc/init.d/cron start
/etc/init.d/cron enable
exit 0
EOF
chmod +x /etc/uci-defaults/reset_wan
cat << 'EOF' > /usr/bin/reset_wan
@pniaps
pniaps / install_git.sh
Created March 12, 2018 02:34
Install GIT Centos 7
#install git with user
yum install git
adduser git
passwd git
su git
cd
#add public keys to folder and generate autorized keys
mkdir /home/git/.ssh
chmod 700 /home/git/.ssh
@pniaps
pniaps / setup_server.sh
Last active March 5, 2018 09:04
CentOS 7 httpd - php7 - MariaDB 10.2
yum -y install httpd mod_ssl
systemctl start httpd.service
systemctl enable httpd.service
yum -y install epel-release yum-utils
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php72
yum -y install php php-fpm php-mysql php-mbstring php-dom php-xml php-gd
cat << EOF > /etc/yum.repos.d/MariaDB.repo
@pniaps
pniaps / TwigRenderer.php
Created July 14, 2017 12:54 — forked from stof/TwigRenderer.php
Rendering twig blocks directly from outside a twig render call, for email purpose
<?php
namespace Incenteev\MailerBundle\Mailer;
class TwigRenderer implements RendererInterface
{
private $twig;
private $styleInliner;
/**