Global shortcuts to switch display refresh rate (KDE Plasma 6, Wayland, via kscreen-doctor).
| Shortcut | Rate |
|---|---|
| Ctrl+Meta+2 | 25 Hz |
| Ctrl+Meta+3 | 30 Hz |
| Ctrl+Meta+4 | 24 Hz |
| Ctrl+Meta+5 | 50 Hz |
| <?php | |
| function ppn(string $expression, mixed ...$param) { | |
| $operators = "+-*/%"; | |
| $delimiter = " "; | |
| $expression_tokens = explode($delimiter, $expression); | |
| $stack = []; | |
| // Process tokens from right to left (using array_pop) |
| #!/usr/bin/env bash | |
| # | |
| # npm-step-proxy.sh | |
| # 1. Issues a certificate from step-ca (`step ca certificate`) | |
| # 2. Uploads it to Nginx Proxy Manager as a custom certificate (API) | |
| # 3. Creates a proxy host that uses that certificate | |
| # | |
| # Every parameter can be given as env var, as flag, or is asked interactively | |
| # (with a default in brackets). Use -y to accept all defaults non-interactively. | |
| # |
| #!/bin/bash | |
| # Script: decode_throttled.sh | |
| # Description: Decodes the output of 'vcgencmd get_throttled' on a Raspberry Pi | |
| # Usage: ./decode_throttled.sh | |
| # Run vcgencmd and capture the output | |
| THROTTLED_HEX=$(vcgencmd get_throttled | cut -d'=' -f2) | |
| # Remove '0x' prefix if present |
| #!/usr/bin/env python3 | |
| """ | |
| Docker Container and Volume Explorer | |
| Interactive script to list containers and their associated volumes | |
| """ | |
| import subprocess | |
| import json | |
| import sys | |
| from typing import List, Dict, Any |
| # Basic usage | |
| ./create_signed_security_txt.sh -d example.com -c "mailto:security@example.com" -k ABC12345 | |
| # Full example with all options | |
| ./create_signed_security_txt.sh \ | |
| -d example.com \ | |
| -c "mailto:security@example.com" \ | |
| -k ABC12345 \ | |
| -e "https://example.com/pgp-key.asc" \ | |
| -a "https://example.com/thanks" \ |
| #!/usr/bin/bash | |
| # Function to get file size in human-readable format | |
| get_size() { | |
| du -h "$1" | cut -f1 | |
| } | |
| # Function to get file size in bytes for calculation | |
| get_size_bytes() { | |
| stat -c %s "$1" 2>/dev/null || stat -f %z "$1" 2>/dev/null |
| #!/usr/bin/env python3 | |
| """ | |
| Interactive System Journal Vacuum Tool | |
| This script allows you to safely clean systemd journal logs interactively. | |
| """ | |
| import subprocess | |
| import sys | |
| import os | |
| from datetime import datetime, timedelta |
| <!DOCTYPE html> | |
| <html lang="de"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Prompt Creator</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/dist/tabler-icons.min.css"> | |
| <style> | |
| *{box-sizing:border-box;margin:0;padding:0} | |
| :root{ |
| #!/usr/bin/env python3 | |
| """ | |
| Docker Container Log Size Calculator | |
| Lists all Docker containers with their log sizes and total log usage. | |
| """ | |
| import subprocess | |
| import json | |
| import sys | |
| from typing import Dict, List, Tuple |