Skip to content

Instantly share code, notes, and snippets.

View dhcgn's full-sized avatar

Daniel dhcgn

View GitHub Profile
@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.)
@dhcgn
dhcgn / convert.sh
Last active June 19, 2025 20:24
This script creates A4 (DIN A1) collage pages from any number of PNG images, automatically resizing and arranging them into printable pages using ImageMagick.
#!/bin/bash
# -----------------------------------------------------------------------------
# Script: convert.sh
#
# Description:
# This script processes all PNG images in the specified source folder by:
# 1. Squaring and resizing them to 1000x1000 pixels (centered, white background).
# 2. Arranging them into A4-sized (2480x3508 px, 300 DPI) collage pages,
# with 3 images per row and 4 rows per page (12 images per page).
@dhcgn
dhcgn / execute.md
Last active May 24, 2025 21:40
privatemode json mode
bash privatemode-ai/conversation-json-mode.sh "Best Books?" http://192.168.3.10:9876

Testing API endpoint... API endpoint validated - required model found Chat completion output: {"type": "function", "name": "get_best_books", "parameters": {}} Request-to-response time: 1 seconds

Expected

Darstellung eines Namens in verschiedenen Schriftsystemen

Wir werden den folgenden Namen in verschiedene Schriftsysteme übersetzen und erklären:

{{Name}}

Aufgabe