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

@atistrcsn
atistrcsn / SYSTEM.md
Created November 3, 2025 11:54 — forked from ksprashu/SYSTEM.md
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:
@atistrcsn
atistrcsn / GEMINI.md
Last active November 11, 2025 14:01 — forked from ksprashu/GEMINI.md
Personal GEMINI.md as on 29-07-2025

Gemini Agent: Core Directives and Operating Protocols

@atistrcsn
atistrcsn / wait-for-user-click.ts
Last active February 9, 2025 14:02
Wait for Manual Click - Playwright Helper Function
import { Page } from "playwright"
/**
* Waits for a manual user click on a specified element in Playwright tests. Useful for scenarios
* requiring human verification or manual intervention during automated test execution. The function
* injects a click listener into the page context and waits for a genuine click event.
*
* Typical use cases:
* - Manual verification steps in automated flows
* - Interactive debugging of test scenarios
@atistrcsn
atistrcsn / nmap.sh
Created October 14, 2020 09:30
[nmap commands]
#find devices on network by opened port and list their IP address
nmap -p 26101 192.168.0.0/24 --open -Pn -oG - | grep "/open" | awk '{ print $2 }'
@atistrcsn
atistrcsn / install.sh
Last active May 23, 2019 02:17
[Useful unix applications] #unix
# Application launcher
# https://ulauncher.io/
# Oh MY ZSH
# https://ohmyz.sh/
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#Instal missing fonts with emojis
sudo apt-get install ttf-ancient-fonts
@atistrcsn
atistrcsn / install.sh
Created April 25, 2019 07:51
[Install PIP, Python3] #unix
#Installing pip with apt should not be the answer.
#You installed PIP right, but you have to add the executable path to you PATH variable,
export PATH=~/.local/bin:$PATH
#You can add this to the end of ~/.profile to make the change permanent. You may need to run source ~/.profile in a new shell, or you can log out and back in.
@atistrcsn
atistrcsn / setup.sh
Last active April 17, 2019 20:42
[macos High Sierra virtualbox] hardware settings
vboxmanage modifyvm "macos" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff
vboxmanage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
vboxmanage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
vboxmanage setextradata "macos" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
vboxmanage setextradata "macos" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
vboxmanage setextradata "macos" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1
vboxmanage setextradata "macos" "VBoxInternal2/EfiGraphicsResolution" 1920x1080
@atistrcsn
atistrcsn / 01.sh
Created January 30, 2019 16:54
[Set static IP - Ubuntu 18.04] #devops #ubuntu
$ sudo nano /etc/netplan/50-cloud-init.yaml
# edit and save...
$ sudo netplan apply
# to debug...
$ sudo netplan --debug apply
// imports a couple of java tasks
apply plugin: "java"
// List available tasks in the shell
> gradle tasks
// A Closure that configures the sourceSets Task
// Sets the main folder as Source folder (where the compiler is looking up the .java files)
sourceSets {
main.java.srcDir "src/main"