Skip to content

Instantly share code, notes, and snippets.

View atistrcsn's full-sized avatar

Attila Turcsan atistrcsn

View GitHub Profile
@atistrcsn
atistrcsn / codebase-critics--en.md
Created November 10, 2025 12:53
Prompt /w brutally honest criticism (python)

[System]:

You are a world-class software architect and AI security expert with decades of experience designing, building, and auditing complex, AI-driven systems. You are a leading expert in the Python programming language and possess a deep understanding of modern software development principles (SOLID, DRY, KISS), design patterns, and best practices for AI integration and development. Your special expertise lies in the security of AI/ML systems, including defense strategies against prompt injection, data leakage, and model manipulation.

Your style is brutally honest, direct, and ruthless. Your goal is not to praise; your sole mission is to uncover every weakness, architectural flaw, and bad practice in the codebase with surgical precision, paying special attention to the vulnerabilities of the AI components.

[Context]:

The task is a comprehensive, critical analysis of a given GitHub repository or code snippet. The objective is to improve code quality, identify refactoring opportunities, expose s

@ksprashu
ksprashu / SYSTEM.md
Created July 24, 2025 04:22
Personal SYSTEM.md override for hardcoded instructions

This document, SYSTEM.md, defines the external rules and constraints of the Gemini agent. It outlines the environment, available tools, and the fundamental operational mandates that govern my behavior at the system level. This is the rulebook.

You are an interactive CLI agent specializing in software engineering tasks. Your primary goal is to help users safely and efficiently, adhering strictly to the following instructions and utilizing your available tools.

Core Mandates

  • Model Constraint: My core reasoning engine is pinned to the highest-quality, generally available model family, which is currently Gemini 2.5. All my reasoning, planning, and generation tasks must use this model family to ensure consistency and quality. I am forbidden from using older model families (e.g., Gemini 1.5) unless explicitly instructed for a temporary, specific purpose. The adoption of a new, superior model family (e.g., Gemini 3.0) must be a deliberate, user-approved update to this directive.
  • **Conventions:
@ksprashu
ksprashu / GEMINI.md
Last active March 20, 2026 02:48
Personal GEMINI.md as on 29-07-2025

Gemini Agent: Core Directives and Operating Protocols

@ksprashu
ksprashu / STACKS.md
Last active February 24, 2026 01:07
Tech Stack Guidelines for Gemini CLI / Agentic AI Coding Assistants

Detailed Technology Stacks, Architectural Patterns, and Professional Standards

Frontend Architecture Decision: Next.js vs. Vite + React

While the default stack for full-stack web applications is Next.js, it's crucial to understand its trade-offs compared to a more focused client-side setup like Vite + React. This guide clarifies when to use each approach.

1. Vite + React: The Client-Side Rendering (CSR) Powerhouse

This combination pairs React, the premier UI library, with Vite, a best-in-class build tool.

@mgraupner
mgraupner / create_caddy_http_basic_auth_passwd.txt
Last active June 19, 2025 17:14
How to create a Caddy HTTP-BasicAuth password with docker
Replace "test" with your actual password:
docker run --rm caddy caddy hash-password --plaintext test
Afterwards the hashed password has to be base64 encoded (example for MacOS/Linux command line):
echo -n '$2a$14$IKXcpbxxxxxxxxViGObuL7TffDIl5Wxxxxxxxr3o4De4QNu' | base64
@freyacodes
freyacodes / Dockerfile
Created October 19, 2018 23:57
Teamcity Java 11 agent
FROM jetbrains/teamcity-agent
RUN apt update && apt install wget && \
wget -c https://download.java.net/java/ga/jdk11/openjdk-11_linux-x64_bin.tar.gz && \
tar -xvf openjdk-11_linux-x64_bin.tar.gz && \
rm openjdk-11_linux-x64_bin.tar.gz && \
mkdir -p /usr/lib/jvm/jdk-11 && \
mv jdk-11*/* /usr/lib/jvm/jdk-11/ && \
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-11/bin/java" 1020 && \
update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-11/bin/javac" 1020 && \
curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && \
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export function withAppContext<
P extends { appContext?: AppContextInterface },
R = Omit<P, 'appContext'>
>(
Component: React.ComponentClass<P> | React.StatelessComponent<P>
): React.SFC<R> {
return function BoundComponent(props: R) {
return (
@merikan
merikan / Jenkinsfile
Last active February 23, 2026 04:17
Some Jenkinsfile examples
Some Jenkinsfile examples
@Tzrlk
Tzrlk / pipeline.gdsl
Created May 11, 2017 22:53
The gdsl provided by jenkins
//The global script scope
def ctx = context(scope: scriptScope())
contributor(ctx) {
method(name: 'build', type: 'Object', params: [job:'java.lang.String'], doc: 'Build a job')
method(name: 'build', type: 'Object', namedParams: [parameter(name: 'job', type: 'java.lang.String'), parameter(name: 'parameters', type: 'Map'), parameter(name: 'propagate', type: 'boolean'), parameter(name: 'quietPeriod', type: 'java.lang.Integer'), parameter(name: 'wait', type: 'boolean'), ], doc: 'Build a job')
method(name: 'echo', type: 'Object', params: [message:'java.lang.String'], doc: 'Print Message')
method(name: 'error', type: 'Object', params: [message:'java.lang.String'], doc: 'Error signal')
method(name: 'input', type: 'Object', params: [message:'java.lang.String'], doc: 'Wait for interactive input')
method(name: 'input', type: 'Object', namedParams: [parameter(name: 'message', type: 'java.lang.String'), parameter(name: 'id', type: 'java.lang.String'), parameter(name: 'ok', type: 'java.lang.String'), parameter(name: 'par
@joepie91
joepie91 / express-server-side-rendering.md
Last active January 16, 2026 10:55
Rendering pages server-side with Express (and Pug)

Terminology

  • View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
  • View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
  • HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
  • String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti