This is an old revision of the document!
Table of Contents
CECI EST UN BORDEL, NOTES PRISES A l'ARRACHE
si vous y trouvez votre bonheur, chapeau bas !
Convertir des .aax (format des audiobooks audible) en .mp3 (sur archlinux) :
1) installer aaxtomp3
https://github.com/KrumpetPirate/AAXtoMP3
- yay -Sy aaxtomp3 1.3-2
installer les dépendances :
- yay -Sy mp4v2-utils
- yay -Sy mediainfo 24.06-1
2) installer le package qui permet d'obtenir le code d'authentification audible pour pouvoir faire la conversion (merci à audible de nous compliquer la tâche)
https://github.com/mkb79/audible-cli?tab=readme-ov-file
- yay -Sy python-pipx 1.7.1-1
- pipx install audible-cli
pipx listpuis aller dans le repertoireapps are exposed on your $PATH at./audible-quickstart(pour une installtionen cli), sinon./audible. (cela va créer des fichier dans ici/home/ad/.audible(en ce qui me concerne)- Récupération du fameux code d'authentification audible :
./audible activation-bytes
Maintenant que l'on a de quoi convertir aaxtomp3 et notre activation-bytes, on dans le dossier où se trouve le .axx à covertir et on lance :
AAXtoMP3 -e:m4b -A activation-bytes -d audiobook.aax OU BIEN bash AAXtoMP3 -e:m4b -A activation-bytes -d audiobook.aax
Attention : mettre le code activation-bytes comme tel (sans guillemets).
fail2ban :
whitelist
sudo nano /etc/fail2ban/jail.conf- ex :
ignoreip = 192.168.1.150 10.10.10.0/24 75.76.77.78 - service fail2ban restart
check les ip bannies et debannir si besoin:
On check les jail name :
sudo fail2ban-client status
On regarde les ip bannies pour un jail name
sudo fail2ban-client status <jail-name>
Pour debannir :
sudo fail2ban-client set <jail-name> unbanip <IP address>
Commandes utiles VIM
- A pour aller en fin de ligne en mode édition et a pour aller en fin de mot en mode édition
- Pour commenter/décommenter :
Put your cursor on the first # character, press CtrlV (or CtrlQ for gVim), and go down until the last commented line and press x, that will delete all the # characters vertically.
For commenting a block of text is almost the same:
First, go to the first line you want to comment, press CtrlV. This will put the editor in the VISUAL BLOCK mode. Then using the arrow key and select until the last line Now press ShiftI, which will put the editor in INSERT mode and then press #. This will add a hash to the first line. Then press Esc (give it a second), and it will insert a # character on all other selected lines.
