Skip to content

Instantly share code, notes, and snippets.

View dginhoux's full-sized avatar

Dany GINHOUX dginhoux

View GitHub Profile
Utilisez les commandes OpenSSL suivantes pour convertir le certificat SSL en différents formats sur votre propre ordinateur :
OpenSSL Convertir PEM
Convertir PEM en DER
openssl x509 -outform der -in certificate.pem -out certificate.der
Convertir PEM en P7B
#!/usr/bin/env bash
set -euo pipefail
PG_HOST="git-user_pgsql"
PG_DBNAME="gitea"
PG_SCHEMA="gitea"
PG_USER="pgadmin"
PG_PORT="5432"
PG_PASSWORD="AAAABBBB"
#!/usr/bin/env bash
set -euo pipefail
LEGO_INSTANCE="lego-ginhoux-net"
LEGO_DOMAINS="*.ginhoux.net"
LEGO_EMAIL="[email protected]"
LEGO_DNS="infomaniak"
# LEGO_KEY_TYPE="rsa4096"
LEGO_KEY_TYPE="ec384"
@dginhoux
dginhoux / victoriametrics-backup-full-docker.sh
Created October 30, 2025 21:20
all run as swarm services
#!/usr/bin/env bash
set -euo pipefail
VM_INSTANCE_NAME="sma-vmetrics"
VM_DUMP_DATE=$( date "+%Y%m%d_%H%M" )
VM_SNAP_URL="http://vmetrics:8428/snapshot/create"
VM_INSTANCE_DATA_PATH="/mnt/gfs_lv_swarm_prod0/sma/vmetrics-data/"
VM_BACKUP_DATA_PATH="/mnt/db-backup/vmetrics-data"
VM_BACKUP_DST="fs:///backup/${VM_INSTANCE_NAME}/${VM_DUMP_DATE}"
@dginhoux
dginhoux / sudoers.d___dginhoux
Created October 30, 2025 21:13
full desktop computer sudoers.d with cmd alias
# keep env
Defaults:dginhoux env_keep += "PATH HOME USER LOGNAME LANG TERM"
Defaults:dginhoux env_keep += "SSH_AUTH_SOCK"
Defaults:dginhoux env_keep += "XDG_RUNTIME_DIR"
Defaults:dginhoux env_keep += "HTTP_PROXY HTTPS_PROXY NO_PROXY"
Defaults:dginhoux env_keep += "http_proxy https_proxy no_proxy"
# proxy
Cmnd_Alias PROFILE_PROXY = \
@dginhoux
dginhoux / com.mikrotik.winbox4.desktop
Last active October 30, 2025 21:08
gnome entry for bin not in path ; with icon support, pin and multiple instance
## location in ~/.local/share/applications/com.mikrotik.winbox4.desktop
## never use variables !!!
[Desktop Entry]
Name=WinBox4
Comment=MikroTik WinBox4 client
Exec=/home/dginhoux/_system/mikrotik/winbox/WinBox_Linux/WinBox
Icon=/home/dginhoux/_system/mikrotik/winbox/WinBox_Linux/assets/img/winbox.png
Terminal=false
Type=Application
## set old and new list name
# :global oldList "pub_cloud_mikrotik"
# :global newList "pub_cloud_mkt"
:global oldList "pub_cloud_mkt"
:global newList "pub_cloud_mikrotik"
###################
@dginhoux
dginhoux / Brocade_6520_6510_hard_reset.md
Last active June 20, 2025 11:27
brocade 6520 or 6510 hard reset

🔄 Full Reset of Brocade 6520 and 6510 (Fabric OS 8.2) Without License Loss

⚠️ Warning: This procedure erases all configuration (zoning, users, IP settings, passwords, etc.), but preserves licenses.

🔧 Prerequisites

  • Serial console or SSH access to the switch.
  • Backup configuration if needed (configUpload).
@dginhoux
dginhoux / DNSSEC-Signing.md
Created November 3, 2024 20:04 — forked from stokito/DNSSEC-Signing.md
DNSSEC Keys and Signing Process Simplified

cyber-security-2296269_1920

DNSSEC Keys and Signing Process Simplified

This article describes what happens when a zone is signed with DNSSEC. This document helps to understand the concept of zone signing and does not detail the actual steps for signing a zone.

@dginhoux
dginhoux / linux_targetd_mode_file.md
Created July 23, 2024 17:09
linux_targetd_mode_file

h1. installation d'une qla25xx dans tina-save-cat

h1. création des backstores/fileio


mkdir -p /var/ibm.quorum
chown -R root:root /var/ibm.quorum
dd if=/dev/zero of=/var/ibm.quorum/quorum1.disk count=1024 bs=1M