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,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ genisoimage -output seed.iso -volid cidata -joliet -rock user-data meta-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # BACKUP SCRIPT | |
| CONTACT="email@email.com" | |
| MAIL="/tmp/mail" | |
| if [ -e "/var/lock/backup.lock" ] | |
| then | |
| echo " BACKUP ALREADY STARTED !!" > $MAIL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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]); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Incenteev\MailerBundle\Mailer; | |
| class TwigRenderer implements RendererInterface | |
| { | |
| private $twig; | |
| private $styleInliner; | |
| /** |
NewerOlder