Ce document détaille, étape par étape, ce qu’il faut faire quand un MacBook arrive avec un trackpad qui ne fonctionne plus (ou mal).
Objectif : déterminer si le problème vient du logiciel, du matériel, ou d’une batterie qui gonfle, puis décider quoi faire.
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 bash | |
| # cpxs.sh — tar -> xz parallèle, safe by default | |
| # Usage: ./cxps.sh -s /chemin/du/repertoire [-o sortie.tar.xz] [-t threads] [-l level] [-e exclude] [-p] [-v] [-F] [-h] | |
| # Voir exemples en bas. | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| prog=$(basename "$0") | |
| usage() { |
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 | |
| # BM 20251011 | |
| import os | |
| import tempfile | |
| import subprocess | |
| import shutil | |
| import argparse | |
| import zipfile | |
| # Répertoires susceptibles d'être exclus par défaut |
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 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| pdf_to_cbx.py — Convertir un PDF en CBZ (ou CBR si 'rar' est disponible) | |
| ======================================================================= | |
| Dépendances Python : PyMuPDF (pymupdf), Pillow | |
| Installation rapide : | |
| pip install --upgrade pymupdf pillow |
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 bash | |
| set -euo pipefail | |
| cleanup() { [[ -n "${SUDO_LOOP_PID:-}" ]] && kill "$SUDO_LOOP_PID"; } | |
| trap cleanup EXIT | |
| command -v sudo >/dev/null || { echo "❌ sudo manquant"; exit 1; } | |
| sudo -v | |
| ( while true; do sudo -n true; sleep 60; done ) & SUDO_LOOP_PID=$! |
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/python3 | |
| # Paquets requis : nvidia-utils, python3, python3-pip, lm-sensors, nvme-cli, smartmontools, docker.io | |
| # Libs python : | |
| # pip3 install psutil textual rich | |
| # 'r' pour recharger, 'q' pour quitter | |
| from textual.app import App, ComposeResult | |
| from textual.containers import Horizontal, Vertical | |
| from textual.widgets import Static | |
| from textual.reactive import reactive |
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 bash | |
| set -euo pipefail | |
| # ---------- Fonctions ---------- | |
| cleanup() { [[ -n "${SUDO_LOOP_PID:-}" ]] && kill "$SUDO_LOOP_PID"; } | |
| trap cleanup EXIT | |
| need_cmd() { command -v "$1" &>/dev/null || { echo -e "\e[31m❌ $1 introuvable\e[0m"; exit 1; }; } | |
| need_cmd sudo |
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 bash | |
| set -e | |
| echo "==== Configuration clavier Apple AZERTY pour Ubuntu Server 22.04 avec Xubuntu ====" | |
| ############################################ | |
| # 1. Configuration LightDM pour session Xubuntu + clavier AZERTY Apple | |
| ############################################ | |
| LIGHTDM_DIR="/etc/lightdm/lightdm.conf.d" | |
| LIGHTDM_CONF="${LIGHTDM_DIR}/00-azerty-apple.conf" |
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 bash | |
| # Install de l'interface xubuntu sur Ubuntu Server 22.04 | |
| # Install des drivers Nvidia + CUDA | |
| # Install de tools | |
| set -e | |
| # === VARIABLES DE VERSION === | |
| NVIDIA_DRIVER_VERSION="550" | |
| CUDA_VERSION="12-4" |
NewerOlder