Skip to content

Instantly share code, notes, and snippets.

View stephdl's full-sized avatar
🏠
Happy to work in Aveyron

Stephane de Labrusse stephdl

🏠
Happy to work in Aveyron
View GitHub Profile
@stephdl
stephdl / securize_a_network.md
Created December 23, 2025 07:35
Sécurisation d'un réseau informatique
@stephdl
stephdl / securize_a_linux.md
Created December 23, 2025 07:10
Sécurisation d'un système Linux
@stephdl
stephdl / grep_usage.md
Last active December 23, 2025 13:19
grep - Rechercher une chaîne de caractères

grep - Rechercher une chaîne de caractères

Syntaxe

grep -srni '<string>' <chemin>

Paramètres

@stephdl
stephdl / find_usage.md
Created December 22, 2025 07:08
find - Rechercher des fichiers ou des dossiers avec wildcards

find - Rechercher des fichiers ou des dossiers avec wildcards

Syntaxe de base

find <chemin> -iname <pattern>

Paramètres

@stephdl
stephdl / selfsigned_certificate.md
Last active December 23, 2025 13:20
Certificat autosigné avec apache

Certificat Autosigné et Configuration VirtualHost HTTPS

1. Générer le Certificat Autosigné

Générez la clé privée et le certificat (valide 365 jours) :

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
  -keyout /etc/ssl/private/glpi.key \
  -out /etc/ssl/certs/glpi.crt
@stephdl
stephdl / crowdec_on_debian.md
Last active December 23, 2025 13:20
Installer crowdsec sur debian avec son bouncer
@stephdl
stephdl / sshd_keys_generation.md
Created December 21, 2025 17:03
Générer des clés ssh et les utiliser

Guide SSH : Création de clés et authentification par clé

Documentation basée sur les man pages de ssh-keygen, ssh-copy-id et sshd_config.

1. Créer une clé SSH

Génération avec passphrase (recommandé)

ssh-keygen -t ed25519 -C "utilisateur@exemple.com"
@stephdl
stephdl / deboge_reseau.md
Last active December 23, 2025 13:21
débogae réseau: ai je internet

Déboggage Réseau

Pourquoi je n'ai pas internet, pourquoi ma connectivité reseau n'est pas fonctionnelle

Windows

1. Vérifier la configuration IP

ipconfig /all
@stephdl
stephdl / garage.md
Last active December 17, 2025 08:37
install garage with garage-ui with docker-compose for tests

create the docker-compose

╰─➤  cat garage.yml 
version: '3.8'

services:
  # Service Garage S3 compatible
  garage:
    image: dxflrs/garage:v2.1.0
    # network_mode: "host"
@stephdl
stephdl / gist:62e015a762b91c95b6c4a394d8b9fd42
Created December 15, 2025 14:30
scrip to start rustfs with podman in a pod
╰─➤ cat rustfs.sh
#!/bin/bash
set -e
# Configuration
POD_NAME="rustfs-pod"
RUSTFS_CONTAINER="rustfs-server"
VOLUME_FIXER_CONTAINER="volume-permission-helper"
RUSTFS_VOLUME="rustfs_data"