This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Wants=podman-user-wait-network-online.service | |
| After=podman-user-wait-network-online.service | |
| Description=PostgreSQL Container | |
| # Stellt sicher, dass der Service erst nach dem Netzwerk startet | |
| After=network-online.target | |
| Wants=network-online.target | |
| RequiresMountsFor=%t/containers | |
| RequiresMountsFor=/srv/postgres |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # mkthumbs.sh – generates thumbnails and large versions only when needed | |
| # Usage: ./mkthumbs.sh [subdirectory] | |
| set -euo pipefail | |
| SUBDIR="${1:-}" # optional first argument | |
| SRC_DIR="content/gallery/${SUBDIR}" | |
| DST_THUMB="static/gallery/thumbs/${SUBDIR}" | |
| DST_FULL="static/gallery/full/${SUBDIR}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias pps='printf "%-12s %-25s %-12s %-30s %s\n" "ID" "NAME" "STATUS" "IMAGE" "PORTS"; podman ps --format "{{printf \"%.12s %-25s %-12s %.30s %s\" .ID .Names .Status .Image .Ports}}"' | |
| # ... to be continued |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @pkey: | |
| # Create private key. | |
| # Most certification authorities only support RSA alogrithm. | |
| openssl genpkey -algorithm RSA -out device.key | |
| @pkeyec: | |
| # Create private key with elliptic curve algorithm. | |
| openssl ecparam -name prime256v1 -genkey -noout -out device.key | |
| @csr: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "datasource": { | |
| "uid": "bc2d6911-2640-41d7-a568-5cc56f6c2b37", | |
| "type": "prometheus" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "mappings": [] | |
| }, | |
| "overrides": [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image_name := "debian.qcow2" | |
| set shell := ["bash", "-cu"] | |
| ansible_password := `(openssl rand -base64 12)` | |
| download: | |
| @curl -Lo {{image_name}} https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2 | |
| prepare: | |
| @echo {{ansible_password}} > .password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! ## Dependencies | |
| //! [dependencies] | |
| //! tracing = "0.1" | |
| //! tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] } | |
| use tracing::{debug, error, info, instrument, warn}; | |
| use tracing_subscriber::{fmt, EnvFilter}; | |
| #[instrument(level = "trace")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use futures_util::stream::StreamExt; | |
| use lapin::{ | |
| options::{BasicAckOptions, BasicConsumeOptions, QueueDeclareOptions}, | |
| types::FieldTable, | |
| Connection, ConnectionProperties, | |
| }; | |
| use std::error::Error; | |
| use tracing::{info, instrument}; | |
| use tracing_subscriber; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exif --ifd=0 --tag=0x8298 --set-value='(c) 2010 Karsten Kroesch' campground.jpg | |
| exif --ifd=0 --tag=0x010e --set-value='Campground Mojave Desert' -o campground.jpg campground.jpg.modified.jpeg | |
| **Copyright Watermark:** | |
| convert desert.jpg -fill white -undercolor '#00000080' -gravity South -annotate +0+5 ' (c) 2010 Karsten Kroesch ' desert.jpg | |
| **Border:** |
NewerOlder