Skip to content

Instantly share code, notes, and snippets.

View danielehrhardt's full-sized avatar

Daniel Ehrhardt danielehrhardt

View GitHub Profile
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
<title>Codext - Stencil Components</title>
<script src="https://unpkg.com/@codext/[email protected]/dist/gradient-button.js"></script>
</head>
<body>
@danielehrhardt
danielehrhardt / postfix_uninstaller.sh
Created January 7, 2020 08:21
Ubuntu 18.04 Postfix Remove Script
#!/bin/sh
echo
sudo apt-get remove postfix
sudo apt-get purge postfix
userdel postfix
rm -rf /etc/postfix/
rm -rf /usr/share/doc/postfix/
@danielehrhardt
danielehrhardt / gist:c1858637b6adfdd83d8fe988ac747d4f
Last active October 7, 2025 10:39
Ubuntu 24.04: Zabbix 7.4 + MySQL end-to-end installer
#!/usr/bin/env bash
# Ubuntu 24.04: Zabbix 7.4 + MySQL end-to-end installer with detailed logging
set -Eeuo pipefail
# ---------- Config ----------
REPO_DEB_URL="https://repo.zabbix.com/zabbix/7.4/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.4+ubuntu24.04_all.deb"
REPO_DEB_FILE="/tmp/zabbix-release_latest_7.4+ubuntu24.04_all.deb"
TZ="Europe/Berlin" # PHP timezone for Zabbix UI
SECRET_FILE="/root/zabbix-db-secret.txt" # Stores generated DB password and access URL
#!/usr/bin/env node
/* create-sora2-video.mjs
* Generate a Sora 2 video (with audio) via OpenAI v1/videos.
*
* Usage examples:
* node create-sora2-video.mjs --prompt "A golden retriever surfing a wave at sunset, cinematic, 24 fps" --orientation landscape --duration 6
* node create-sora2-video.mjs --prompt "Close-up of raindrops on a window with city lights bokeh" --orientation portrait --duration 8 --image ./guide.jpg
*
* Env:
* OPENAI_API_KEY=sk-...