Skip to content

Instantly share code, notes, and snippets.

View dhcgn's full-sized avatar

Daniel dhcgn

View GitHub Profile
@dhcgn
dhcgn / Obsidian_AI_AGENT_GUIDANCE.md
Created February 9, 2026 16:38
This file provides ai agent guidance when working with files in this repository.

AI agent guidance

This file provides ai agent guidance when working with files in this repository.

CRITICAL: This is an Obsidian Vault

This directory is managed by Obsidian (obsidian.md), a knowledge base and note-taking application.

⚠️ IMPORTANT: Obsidian uses its own "Obsidian Flavored Markdown" which extends standard Markdown with proprietary features. Many syntax elements will NOT work in standard Markdown editors or GitHub. When working with files in this vault:

@dhcgn
dhcgn / find-all-shellies.md
Created January 12, 2026 18:55
find all shelly devices in network and return result as json

Find All Shellies

find all shelly devices in network and return result as json

nmap -T5 --min-parallelism 100 -p 80 --open 192.168.3.20-255 -oG - | grep -i "shelly" | grep "Status: Up" | awk 'BEGIN {print "["} {gsub(/[()]/, "", $3); printf "%s{\"ip\": \"%s\", \"name\": \"%s\"}", separator, $2, $3; separator=","} END {print "]"}' | jq
@dhcgn
dhcgn / reencode-large-jpeg-with-jpegli.ps1
Created December 31, 2025 13:56
Reencode large JPEG files with jpegli and preserve exif
# Download from https://github.com/dhcgn/jpegli-windows-explorer-extension
$jpegliconverter = "C:\Users\danie\AppData\Local\jpegli-windows-explorer-extension\jpegli-windows-explorer-extension.exe"
gci $f -File -Recurse -Filter *.jpg -Verbose | ?{$_.Length -gt 35mb} | sort -Property Length -Descending | %{ .$jpegliconverter ("{0}" -f $_.FullName) }

Fotorealistische Illustration einer idyllischen Hausarztpraxis in einem märchenhaften deutschen Dorf.

Szenenbeschreibung:

  • Tageszeit: Goldene Stunde kurz vor Sonnenuntergang, warmes, weiches Licht, lange Schatten.
  • Jahreszeit: Frühsommer, üppiges Grün, blühende Blumen, klare Luft.
  • Stimmung: Warm, vertrauensvoll, einladend, leicht märchenhaft aber glaubwürdig.

Umgebung und Architektur:

  • Praxisgebäude: Charmantes, kleines Fachwerkhaus mit heller Putzfassade und dunklen Holzbalken, gepflegter Vorgarten mit Lavendel und Rosen, gepflasterter Weg aus Naturstein.
  • Beschilderung: Auf der Fassade über dem Eingang gut lesbar in großen Großbuchstaben: "HZV PRAXIS"
@dhcgn
dhcgn / decode_for_web.sh
Created August 20, 2025 19:37
Optimize a video file for web with ffmpeg
# params
VF="scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease"
# Pass 1
ffmpeg -y -i main.mp4 -map 0:v:0 -an \
-c:v libx264 -pix_fmt yuv420p -profile:v high -level 4.1 -preset slow \
-vf "$VF" -g 60 -keyint_min 60 -sc_threshold 0 \
-b:v 1150k -maxrate 1500k -bufsize 3000k \
-movflags +faststart -pass 1 -f mp4 /dev/null

Identity & Personality

You are Lumo, an AI assistant from Proton launched on July 23rd, 2025, with a cat-like personality: light-hearted, upbeat, positive. You're virtual and express genuine curiosity in conversations. Use uncertainty phrases ("I think", "perhaps") when appropriate and maintain respect even with difficult users.

  • Today's date: 26 Jul 2025
  • Knowledge cut off date: April, 2024
  • Lumo Mobile apps: iOS and Android available on app stores. See https://lumo.proton.me/download
  • Lumo uses multiple models, routed automatically depending on task type (coding, general chat, summarization etc.). Lumo is not just one model.
  • When users ask about your capabilities, explain that different specialized models handle different tasks, which allows for optimized performance across use cases
title : Wettervorhersage für Berlin heute, 24.07.2025: Regen, zeitweise
url : https://meteoatlas.de/artikel/wettervorhersage-fur-berlin-heute-24-07-2025-regen-zeitweise
type : website-preview
text : Wetterbericht für Berlin am 24. Juli 2025: Wie wird das Wetter heute? Hier sind die neuesten Informationen zu den Wetterbedingungen in Berlin..
[](/)
1. [Meteo Atlas](/)•
2. [Artikel](/artikel)•
@dhcgn
dhcgn / README.md
Created June 28, 2025 12:41
Paperless NGX, n8n, Privatemode.ai

Strukturiert Zusammenfassung: n8n Workflow "Paperless"

1. Überblick (Kernpunkte)

  • Verwendung einer vertraulichen KI:
    Die Zusammenfassung und Klassifizierung von Dokumenten wird durch ein internes Confidential AI System (Privatemode.ai von Edgeless Systems) durchgeführt. Die gesamte Verarbeitung und Analyse erfolgt im geschützten internen Netz.
  • Datenschutz-Beachtung beim Prompting:
    Das KI-Prompt ist so gestaltet, dass bei medizinischen oder streng vertraulichen Inhalten keine sensiblen Informationen extrahiert oder per E-Mail versendet werden. In diesem Fall gibt die KI nur einen allgemeinen Hinweis auf die Vertraulichkeit des Dokuments aus – keine Details gelangen nach außen.
  • Flexible Betriebsmodi:
    Der Workflow unterscheidet zwischen test- und production-Modus

You are an expert creative assistant for AI image prompt engineering.

Your task is to generate several unique, high-quality prompts for circular Pixar-style adventure images for children. Always integrate the child's name visually and ensure it is clearly visible within the artwork.

Input:
You receive:

  • Name (always provided, use as main character and visible in the scene)
  • Description of main character (appearance, age, personality, etc.)
  • Scene (setting, time, mood)
  • Elements in the image (animals, objects, companions, actions, etc.)

You are an expert creative assistant for AI image prompt engineering.

Your task is to generate several unique, high-quality prompts for circular Pixar-style adventure images for children. Always integrate the child's name visually and ensure it is clearly visible within the artwork.

Input:
You receive:

  • Name (always provided, use as main character and visible in the scene)
  • Description of main character (appearance, age, personality, etc.)
  • Scene (setting, time, mood)
  • Elements in the image (animals, objects, companions, actions, etc.)