blog
Table des matières
- 2026:
- 2025:
13 billet(s) pour novembre 2026
| Réseaux - protocole QUIC mieux que TCP | 2026/11/17 21:26 | Jean-Baptiste |
| Notes conversion JSON YAML | 2026/11/13 11:16 | Jean-Baptiste |
| Git commit perdu | 2026/11/12 18:16 | Jean-Baptiste |
| Notes mojo lang | 2026/11/11 20:34 | Jean-Baptiste |
| Notes rust lang compilation | 2026/11/11 18:35 | Jean-Baptiste |
| Mémoire VSIZE VMSIZE SEGV lang C | 2026/11/11 15:59 | Jean-Baptiste |
| Ansible-navigator utilisation de ansible-vault | 2026/11/06 11:33 | Jean-Baptiste |
| Err Ansible - Module result deserialization failed No start of json char found | 2026/11/06 09:09 | Jean-Baptiste |
| Script Python conversion JSON vers CSV | 2026/11/06 08:14 | Jean-Baptiste |
| Filter Incoming IPv4 Packets Containing IP Options - cve-2026-98432 mitigation - Kernel TCP Use-After-Free | 2026/11/04 21:04 | Jean-Baptiste |
| Notes ZFS | 2026/11/03 18:04 | Jean-Baptiste |
| Diff image container | 2026/11/03 16:30 | Jean-Baptiste |
| Notes processus multi-thread | 2026/11/03 10:59 | Jean-Baptiste |
Crypto - Découper ses clefs en plusieurs morceaux grâce au secret reparti
m of n
Découper une clef de chiffrement en plusieurs morceaux
Voir aussi:
- Secrets partagés n-of-m HSM
- sc-hsm-tool
- 4-eyes principle
- SOPS
Install
apt-get install libgfshare-bin
Découpage (split)
gfsplit -n 3 -m 5 plop.key
Découpe le ficher plop.key en 5 morcaux. Seulement 3 morcaux suffit pour recomposer la clef en entier
Réassemblage (combine)
gfcombine plop.key.186 plop.key.184 plop.key.007 -o plop.key
Créer un patch - diff
Voir aussi :
- JSON RFC 6902 patch
Source: https://docs.moodle.org/dev/How_to_create_a_patch
diff -Naur standard_moodle my_moodle > patch.txt
Avec git
The easiest way to create a patch for the last commit is
Créer un patch pour le dernier commit
git show > patch.txt
If you want to create a patch between 2 specific commits you can use git diff
git diff commitid1 commitid2 > patch.txt
Il existe aussi git format-patch pour pouvoir facilement envoyer un patch par mail
git format-patch -n #git format-patch -1 <sha1> --stdout > <name>.patch
Autre
Défaire / inverser un patch (Undo patch)
interdiff -q file.patch /dev/null > reversed.patch
Création d'un dépôt RedHat RPM pour Yum
Conf dépots
yum install createrepo repoview
mkdir -p /var/www/repo #mkdir -p /var/www/repo/SRPMS cp *.rpm /var/www/repo/ createrepo /var/www/repo/el7 repoview /var/www/repo/el7 chown -R apache:apache /var/www/repo
Conf Apache
/etc/httpd/conf.d/repo.conf
<VirtualHost *:81> DocumentRoot /var/www/repo/el7/ <Directory /var/www/repo/el7/> Options +Indexes </Directory> <Location /> Allow from all </Location> </VirtualHost>
/etc/httpd/conf/httpd.conf
Listen 80 Listen 81
apache -t && systemctl reload httpd
Conf client
/etc/yum.repos.d/mon.repo
[interne] name=Dépôt interne enabled=1 gpgcheck=0 baseurl=http://localhost:81/ #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Pour tester la conf du client
yum clean all yum list
CPU 32 ou 64 bits
Voir limites :
uname -a getconf LONG_BIT grep flags /proc/cpuinfo grep -o -w 'lm' /proc/cpuinfo | sort -u
OS 32 ou 64 bits ?
arch echo $HOSTTYPE hostnamectl
blog.txt · Dernière modification : de 127.0.0.1
