Erreur32 / rcconf_bash.sh
0 mi piace
0 forks
2 files
Ultima volta attivo 1 month ago
| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | [ "$EUID" -ne 0 ] && { echo "Exécuter en root"; exit 1; } |
| 5 | |
| 6 | export TERM="${TERM:-xterm-256color}" |
| 7 | export NCURSES_NO_UTF8_ACS=1 |
| 8 | |
| 9 | . /etc/os-release |
| 10 | OS_INFO="$NAME $VERSION_ID" |
Erreur32 / taille-dir.sh
0 mi piace
0 forks
1 files
Ultima volta attivo 1 month ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | # ===== Couleurs ===== |
| 4 | C_RESET="\e[0m" |
| 5 | C_DIR="\e[34m" # Dossiers |
| 6 | C_FILE="\e[32m" # Fichiers |
| 7 | C_ARCH="\e[35m" # Archives |
| 8 | C_SCRIPT="\e[33m" # Scripts .sh .py .pl |
| 9 | C_IMG="\e[36m" # Images |
| 10 | C_VIDEO="\e[31m" # Vidéos |
Erreur32 / check_temperature_all.sh
1 mi piace
0 forks
1 files
Ultima volta attivo 1 month ago
| 1 | #!/usr/bin/env bash |
| 2 | # ========================================================= |
| 3 | # Nom : check_temp_all.sh |
| 4 | # Objet : Afficher les températures système en console |
| 5 | # |
| 6 | # Description : |
| 7 | # - Affiche les températures système détectées via `sensors` (lm-sensors), |
| 8 | # NVMe et GPU (NVIDIA). |
| 9 | # - Classe les valeurs par catégorie : CPU, Carte mère, RAM, NVMe, GPU, Autres. |
| 10 | # - Colore les valeurs selon leur plage : |
Erreur32 / bash_color_script.sh
0 mi piace
0 forks
1 files
Ultima volta attivo 1 month ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | # This program is free software. It comes without any warranty, to |
| 4 | # the extent permitted by applicable law. You can redistribute it |
| 5 | # and/or modify it under the terms of the Do What The Fuck You Want |
| 6 | # To Public License, Version 2, as published by Sam Hocevar. See |
| 7 | # http://sam.zoy.org/wtfpl/COPYING for more details. |
| 8 | |
| 9 | for fgbg in 38 48 ; do #Foreground/Background |
| 10 | for color in {0..256} ; do #Colors |
Più nuovi
Più vecchi