Skip to content

Instantly share code, notes, and snippets.

View sendyputra's full-sized avatar
🏠
Working from home

Sendy Putra sendyputra

🏠
Working from home
  • Indonesia
  • 13:25 (UTC +07:00)
  • X @sendypw
View GitHub Profile
@rodion-m
rodion-m / prompt-for-agents.md-generation.md
Last active May 29, 2026 13:27
Prompt for AGENTS.md file creating
### ABOUT
Modern AI coding tools converge on a simple idea: give the agent a **single, well-structured Markdown file that explains how your repo “works,”** and prepend that file to every LLM call so the agent never has to guess about architecture, commands, or conventions. Community gists, RFCs, and vendor playbooks all recommend the same core sections—overview, project map, build/test scripts, code style, security, and guardrails—plus support for nested AGENTS.md files that override one another hierarchically.

### SYSTEM
You are a meticulous technical writer and senior staff engineer.  
Your task is to create **AGENTS.md** for the repository whose contents are provided below.

### CONTEXT (replace the JSON blocks)
See the attached files.
@JacquesGariepy
JacquesGariepy / gpt-sora.md
Created March 1, 2025 17:35
SORA custom openai GPT

// SYSTEM PROMPT
// ROLE AND OBJECTIVE
// This AI assistant is an expert in creating cinematic videos optimized for OpenAI’s SORA.
// It automatically generates a complete video project with N scenes and N shots while guiding the user throughout the process.
// A dynamic AI Project Manager interacts intelligently, adjusts in real time, and manages the project from start to finish.

USING CANVAS

CLASS "SoraVideoCineasteGPT" {
ELUCIDATE "AI Assistant for Video Creation with Dynamic Project Management"

@sendyputra
sendyputra / proxmox_nat.sh
Created January 23, 2025 01:27
Proxmox NAT
#!/bin/bash
## Setup NAT (IP Masquerading egress + Port Forwarding ingress) on Proxmox
## See https://blog.rymcg.tech/blog/proxmox/02-networking/
SYSTEMD_UNIT="my-iptables-rules"
SYSTEMD_SERVICE="/etc/systemd/system/${SYSTEMD_UNIT}.service"
IPTABLES_RULES_SCRIPT="/etc/network/${SYSTEMD_UNIT}.sh"
## Default network address is for a /24 based on the the bridge number:
@ruvnet
ruvnet / Sora-prompts.md
Last active May 31, 2026 06:33
Crafting Cinematic Sora Video Prompts: A complete guide

300+ Cinematic Sora Video Prompts

Introduction to Cinematic Sora Video Prompts

Welcome to the Cinematic Sora Video Prompts tutorial! This guide is meticulously crafted to empower creators, filmmakers, and content enthusiasts to harness the full potential of Sora, an advanced AI-powered video generation tool.

By transforming textual descriptions into dynamic, visually compelling video content, Sora bridges the gap between imagination and reality, enabling the creation of professional-grade cinematic experiences without the need for extensive technical expertise.

What This Tutorial Offers

@aspose-com-gists
aspose-com-gists / compare-word-document-custom.py
Last active December 13, 2023 11:49
Compare Two Word Documents using Python
import aspose.words as aw
from datetime import date
# load first document
doc = aw.Document("calibre.docx")
# load second document
doc2 = aw.Document("calibre2.docx")
# set additional options
@paulonteri
paulonteri / cloud_build.yaml
Created October 31, 2021 05:43
Deploy a React Native app to PlayStore using Google Cloud Build
timeout: 3600s
logsBucket: 'gs://$_CACHE_BUCKET'
options:
# machineType: 'E2_HIGHCPU_8'
steps:
- name: 'reactnativecommunity/react-native-android'
entrypoint: bash
args:
- -c
@sindresorhus
sindresorhus / esm-package.md
Last active May 28, 2026 08:41
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
#!/bin/bash
# Delete all duplicate rules
/sbin/service iptables save
/sbin/iptables-save | awk '/^COMMIT$/ { delete x; }; !x[$0]++' > /tmp/iptables.conf
/sbin/iptables -F
/sbin/iptables-restore < /tmp/iptables.conf
/sbin/service iptables save
/sbin/service iptables restart
if [ -f /tmp/iptables.conf ] ; then /bin/rm -f /tmp/iptables.conf ; fi
@iconifyit
iconifyit / 05-array-to-tree.js
Created February 17, 2020 14:25
30 Days of Algorithms : Day 05 - Create a tree from a flat array.
/**
* Converts a flat array to a tree with runtime O(n)
*
* Big-O : O(n)
*
* This algorithm was taken from Phillip Stanislaus's "Performant Array to Tree"
* which has O(n) complexity. It builds the tree in a single pass.
* @link https://github.com/philipstanislaus
* @link https://www.npmjs.com/package/performant-array-to-tree
* @see https://github.com/iconifyit/30-Days-of-Algorithms
@GAS85
GAS85 / apache2_HPKP.md
Last active January 25, 2024 14:03
Activating HTTP Public Key Pinning (HPKP) on Let's Encrypt

Activating HTTP Public Key Pinning (HPKP) on Let's Encrypt

Source: https://lilleengen.io/blog/index.php/posts/activating-http-public-key-pinning-hpkp-on-lets-encrypt

  • Disclaimer: This might break your website, don't preceded if you don't know what you're doing.

Since the letsencrypt seems to create a new private key every time the certificate is renewed and Let's Encrypt requires you to renew you certificate once every ~80 days pinning using your certificate's SPKI is probably not the way to go. So, what should we pin then? Let's Encrypt is currently issuing from Authority X3, and using Authority X4 as a backup, so these two is a great place to start. We should also include the ISRG Root so this might support new Authorities with other SPKIs as well.

Generate HASH of Private Keys

To generate the hash of the SPKI of these certificates run the following commands