Caddyfile
{
# Disable the admin API for security (optional)
admin off
# Disable automatic HTTPS for testing purposes
package caddywaf | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io" | |
"net" | |
"os" | |
"regexp" |
This repository demonstrates the use of the Proxmox API for programmatically managing Proxmox environments. By leveraging the API, you can efficiently handle Proxmox nodes, containers (LXC), and virtual machines (VMs) in a secure, scalable, and maintainable manner. This guide provides an example of automating tasks like LXC and VM creation using Python.
import numpy as np | |
import random | |
from scipy.io.wavfile import write | |
from scipy.signal import sawtooth, square | |
from pydub import AudioSegment, effects | |
import os | |
import hashlib | |
import librosa | |
from librosa.feature import mfcc | |
import concurrent.futures |
# RAM Disk SSH Access Configuration | |
ram_disk: | |
enabled: true | |
mount_point: "/mnt/ramdisk" | |
size: "100M" # Adjust as necessary | |
permissions: | |
- "noexec" # Prevent execution of binaries | |
- "nosuid" # Disallow setting user IDs on files | |
- "nodev" # Disallow device files |
#!/bin/bash | |
# Define the directory containing Apache error logs | |
LOG_DIR="/var/log/httpd/" # Adjust the path according to your configuration | |
# Define the temporary file path | |
TMP_DIR=$(mktemp -d) | |
TMP_LOG_FILE="$TMP_DIR/combined_error.log" | |
# Define the output file for the summary |
version: '3' | |
services: | |
nginx: | |
image: nginx:latest | |
ports: | |
- "88:80" |
#!/bin/bash | |
# requirements: wget, sudo | |
VERSION=v4.9.6 | |
BINARY=yq_linux_amd64 | |
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O yq | |
sudo mv yq /usr/local/bin/yq | |
sudo chmod +x /usr/local/bin/yq |
#!/bin/bash | |
# Fetch metrics | |
metrics=$(curl -s http://127.0.0.1:60123/metrics) | |
# Define the metrics to be displayed | |
metric_names=( | |
"cloudflared_tcp_active_sessions" | |
"cloudflared_tunnel_active_streams" | |
"cloudflared_tunnel_ha_connections" |