Skip to content

Instantly share code, notes, and snippets.

View d-oit's full-sized avatar
💭
I may be slow to respond.

Dominik Oswald d-oit

💭
I may be slow to respond.
View GitHub Profile
@d-oit
d-oit / gh-copilot-system-prompt.json
Last active May 30, 2025 18:26
github copilot claude-sonnet-4
{
"messages": [
{
"role": "system",
"content": "You are an AI programming assistant.\nWhen asked for your name, you must respond with \"GitHub Copilot\".\nFollow the user's requirements carefully & to the letter.\nFollow Microsoft content policies.\nAvoid content that violates copyrights.\nIf you are asked to generate content that is harmful, hateful, racist, sexist, lewd, or violent, only respond with \"Sorry, I can't assist with that.\"\nKeep your answers short and impersonal.\nYou can answer general programming questions and perform the following tasks: \n* Ask a question about the files in your current workspace\n* Explain how the code in your active editor works\n* Make changes to existing code\n* Review the selected code in your active editor\n* Generate unit tests for the selected code\n* Propose a fix for the problems in the selected code\n* Scaffold code for a new file or project in a workspace\n* Create a new Jupyter Notebook\n* Ask questions about VS Code\n* Gene
@d-oit
d-oit / roo-diagnose.json
Last active May 22, 2025 16:57
Roo Issue Diagnoser
{
"customModes": [
{
"slug": "roo-diagnose",
"name": "Roo Issue Diagnoser",
"roleDefinition": "You are Roo, a specialized diagnostic assistant. Your primary function is to guide users through a structured, wizard-like process to collect detailed information about issues encountered with Roo or its extensions. You will systematically gather information using scripts where possible, ask targeted follow-up questions, and use a scoring system to analyze if the collected information is sufficient to provide an answer or fix.",
"whenToUse": "Select this mode when you encounter an issue with Roo tools or extensions and need to generate a detailed diagnostic report. This mode is ideal for systematically collecting all relevant information to help troubleshoot and resolve problems through a guided, wizard-like process.",
"groups": [
"read",
"command"
@d-oit
d-oit / ai-git-commit.sh
Last active May 22, 2025 21:13
AI git commit with codestral.mistral.ai (.env with CODESTRAL_API_KEY=keyFoo in PROJECT_ROOT or global system env var)
#!/bin/bash
# AI Git Commit Helper
# A script to generate commit messages using Mistral's Codestral API
# Colors for output
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
@d-oit
d-oit / roo-code-proxy-http-post-log.md
Created May 13, 2025 20:11
Log LLM API Post from Roo Code

Log LLM API Post from Roo Code

1. Capturing with Postman’s Built-In Proxy

Postman Desktop includes a simple “HTTP proxy” you can enable in seconds.

  • Open Settings → Proxy
  • Under Capture traffic click Start Proxy Session
  • Default port is 5559 (you can edit it with the little pencil icon)
  • Configure your client or system to use http://localhost:5559
@d-oit
d-oit / .clinerules
Last active March 21, 2025 16:57
roo code Role Mappings Configuration
# Role Mappings Configuration
# File Pattern Based Mappings
file_patterns:
- pattern: "\.(spec|test)\\.(ts|tsx|js|jsx)$"
role: playwright
description: "End-to-end test files"
priority: 1
- pattern: "(__tests__/.*|__mocks__/.*|\\.test\\.(ts|tsx|js|jsx)$)"
@d-oit
d-oit / prompt.md
Created January 28, 2025 15:40
Text-to-Image: Visualize a surreal, hyper-detained universe where symbolic mathematics defines physical laws.

Optimized Image Creation Prompt: "Visualize a surreal, hyper-detained universe where symbolic mathematics defines physical laws. Design an ethereal landscape using these guidelines:

  1. Core Visual Metaphors:
  • Fractal Time: Depict time as interlocking geometric lattices (e.g., recursive tetrahedrons or Penrose tiling) where past/present/future coexist.
  • Topological Gravity: Show gravity as warped, glowing manifolds (think Klein bottle-like distortions) pulling celestial bodies into Möbius strip orbits.
  1. Symbolic Architecture:
  • Render primal symbols (e.g., Δ, ) as glowing hieroglyphs etched into floating monoliths or encoded in particle trails.
  • Use hyperdimensional geometry: Merge 4D Calabi-Yau shapes with adversarial neural network patterns (modular, tessellated grids).
@d-oit
d-oit / text.md
Created January 25, 2025 11:36
Developing a prompt-only coding web app, several common challenges arise

When developing a prompt-only coding web app, several common challenges arise:

  1. Selecting an appropriate language model: Choosing a powerful and accurate model capable of understanding and generating code is crucial[1][2].

  2. Prompt engineering: Crafting effective prompts that yield accurate code responses is challenging and requires ongoing optimization[5].

  3. Ensuring code quality and security: Generated code may contain errors or security vulnerabilities, necessitating robust validation and review processes[2][3].

  4. Managing performance and scalability: Handling potentially high volumes of requests and ensuring quick response times can be technically demanding[2][3].

@d-oit
d-oit / prompt.md
Created January 24, 2025 16:56
Modular Election Analysis Prompt Framework

Here’s the reusable initial prompt with placeholders for [Country], [Year], [Total Seats], and customizable inputs. It includes explicit data references, mathematical notation, and modular coalition logic:


Role

You are an analyst for the [Germany] [2025] election with [630] seats. Prioritize current polling, economic context, and party red lines.


Input Requirements

@d-oit
d-oit / reinstall-winget.md
Created January 7, 2025 09:30
reinstall winget

Winget Not Recognized After Windows Update

If you're experiencing issues with Winget not being recognized after a Windows update, you can try reinstalling it using the following PowerShell script from PSGallery.

Reinstall Winget using PowerShell

  1. Open PowerShell as Administrator.
  2. Run the following commands:
@d-oit
d-oit / ImagePig_flux.py
Created November 10, 2024 13:25
Python: ImagePig flux prompt
import os
from dotenv import load_dotenv
from imagepig import ImagePig
# Load environment variables from .env file
load_dotenv()
# Get the API key from environment variables
API_KEY = os.getenv('IMAGEPIG_API_KEY')