<disk type="file" device="disk">
<driver name="qemu" type="qcow2" cache="unsafe" discard="unmap"/>
<source file="/var/lib/libvirt/images/win11.qcow2" index="3"/>
<backingStore/>
<target dev="vda" bus="virtio"/>
<alias name="virtio-disk0"/>
<address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
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
| # 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" \ |
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
| #!/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 |
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
| #!/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 |
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
| <!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{ |
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
| #!/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 |
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
| <?php | |
| /** | |
| * Elementor Global Style Test Page | |
| * | |
| * Drop this file into your WordPress root (or theme folder). | |
| * It bootstraps WordPress just enough to get the stylesheet URL | |
| * and all Elementor global CSS variables — no manual copy-paste needed. | |
| * | |
| * Usage: | |
| * - Place in WP root: https://yoursite.com/elementor-style-test.php |
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 | |
| cp /etc/hosts.base ~/hosts | |
| curl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts >> ~/hosts | |
| sudo mv ~/hosts /etc/hosts | |
| sudo systemctl reload dnsmasq |
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 | |
| reverse_proxy_version=$(docker container exec nginx-proxy nginx -v 2>&1 | head -n 1) | |
| echo " | |
| Some or all of the below information will be requested if it isn't supplied; for fastest response please provide as much as you can. :heart: | |
| * Nextcloud Server version: | |
| - \`$(docker container exec nextcloud php /var/www/html/occ --version)\` |
NewerOlder