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
| 0 |
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
| Tier 1: Fondamentale e Architetturale | |
| 1. Utilizzare Hardware Fisico Adeguato (NIC) (Lo strato fisico è il collo di bottiglia finale; non si possono inviare 100Gbps su una porta da 10GbE.) | |
| 2. Abilitare sendfile on; (Abilita il trasferimento "zero-copy" dei file, riducendo drasticamente il carico sulla CPU.) | |
| 3. Sfruttare Storage NVMe ad Alte Prestazioni (Lo storage deve leggere i dati più velocemente di quanto la rete possa inviarli.) | |
| 4. Massimizzare la RAM di Sistema per la Page Cache di Linux (Usa la RAM libera come cache super-veloce per i file richiesti di frequente.) | |
| 5. Usare un RAM Disk (tmpfs) per i Segmenti Video Live (Elimina l'I/O del disco per i file live temporanei, operando alla velocità della memoria.) | |
| 6. Aumentare i Buffer di Memoria di Rete del Kernel (net.core.mem) (Permette al kernel di gestire più dati per ogni connessione, saturando link ad alta banda.) | |
| 7. Aumentare i Descrittori di File (File Descriptors) di Sistema e per Processo (Evita errori "Too many open files" gestendo migliaia di co |
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
| import os | |
| import json | |
| import argparse | |
| import logging | |
| import sqlite3 | |
| from collections import defaultdict | |
| from datetime import datetime | |
| from tqdm import tqdm # Importa tqdm per la progress bar | |
| # --- CONFIGURAZIONE --- |
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
| import os | |
| import json | |
| import argparse | |
| import logging | |
| from collections import defaultdict | |
| from datetime import datetime | |
| # --- CONFIGURAZIONE --- | |
| # Percorso base da cui iniziare la scansione | |
| BASE_PATH = "/mnt/user" |
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 | |
| # Script to configure network interfaces for multiple gateways on Ubuntu 24.04+ | |
| # ens18 (default): DHCP, default route for general traffic | |
| # ens19 (secondary): Static IP, uses its own gateway ONLY for traffic originating from its IP. | |
| # Enhanced with validation, rollback, policy routing, and improved error handling. | |
| # Strict mode | |
| set -u # Exit on unset variables | |
| set -o pipefail # Exit on pipe failures |
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
| server { | |
| listen 443 ssl; | |
| server_name audiolibri.org; | |
| ssl_certificate /etc/nginx/certs/audiolibri.org.crt; | |
| ssl_certificate_key /etc/nginx/certs/audiolibri.org.key; | |
| ssl_protocols TLSv1.2 TLSv1.3; | |
| ssl_ciphers HIGH:!aNULL:!MD5; |
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 | |
| # --- Configuration --- | |
| # Add namespaces here that you want to exclude from the Application Overview | |
| EXCLUDE_NAMESPACES=("kube-system" "kube-public" "kube-node-lease" "local-path-storage" "kube-flannel" "calico-system" "tigera-operator") # Added common CNI/operator namespaces | |
| # --- Terminal Colors --- | |
| RESET='\033[0m'; BOLD='\033[1m'; DIM='\033[2m'; RED='\033[0;31m'; LRED='\033[1;31m'; | |
| GREEN='\033[0;32m'; LGREEN='\033[1;32m'; YELLOW='\033[0;33m'; BLUE='\033[0;34m'; | |
| MAGENTA='\033[0;35m'; CYAN='\033[0;36m'; LGRAY='\033[0;37m'; WHITE='\033[1;37m'; |
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 | |
| # --- Configuration --- | |
| HOST_DATA_BASE_DIR="/srv/k8s-apps-data" | |
| NODE_IP="" | |
| # --- Terminal Colors --- | |
| RESET='\033[0m'; BOLD='\033[1m'; RED='\033[0;31m'; GREEN='\033[0;32m'; | |
| YELLOW='\033[0;33m'; BLUE='\033[0;34m'; MAGENTA='\033[0;35m'; CYAN='\033[0;36m'; |
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 | |
| # --- Script Configuration --- | |
| K8S_VERSION="1.29.0" | |
| CALICO_VERSION="v3.27.2" | |
| DASHBOARD_VERSION="v2.7.0" | |
| INSTALL_DASHBOARD="true" | |
| INSTALL_CADDY="true" | |
| CADDY_NAMESPACE="example-caddy" | |
| DASHBOARD_SERVICE_TYPE="NodePort" # NodePort or ClusterIP |
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
| proxmox_config: | |
| username: "root" | |
| password: "{{ proxmox_password }}" | |
| network_gateway: "192.168.1.1" | |
| network_cidr: "192.168.1.0/24" | |
| os_template_debian: "local:vztmpl/debian-11-standard_11.6-1_amd64.tar.gz" | |
| os_template_ubuntu: "local:vztmpl/ubuntu-22.04-standard_22.04-1_amd64.tar.gz" | |
| api: | |
| enabled: true | |
| url: "https://{{ proxmox_hostname }}:8006/api2/json" |
NewerOlder