Un petit script pour check si les modules ont de nouvelles version dispo (il faut jq)
#!/bin/bash
modules=$(puppet module list|grep '\(v[0-9]\.[0-9]\.[0-9]\)')
IFS=$'\n'
for line in $modules; do
    name=$(echo $line|cut -d' ' -f2)
    version=$(echo $line|grep -o '\(v[0-9]\.[0-9]\.[0-9]\)'|sed 's/v//')
    current_version=$(curl -s https://forgeapi.puppetlabs.com/v3/modules/${name}|jq '.current_release.version'|sed 's/"//g')
    if [[ $version == $current_version ]]; then
        echo "OK $name $version $current_version"
    else
        echo "OUTDATED $name $version $current_version"
    fi  
done -
                
                https://links.infomee.fr/?6tdMVA
  
 -
                
                https://links.infomee.fr/?6tdMVADes modules qui ont l'air bien
 -
                
                https://forge.puppetlabs.com/garethr
  
 -
                
                https://forge.puppetlabs.com/garethrObjectif : tapper /obug <number> dans xchat m'ouvre un onglet dans ff vers l'url du bug
1) activer le module python dans les options
2) créer un fichier .py dans /home/arnaud/.xchat2/
3)
module_name = "openbuginredmine"
module_version = "1.0"
__module_description__ = "module to open bug in redmine" 
import os
import xchat
def obug(word, word_eol, userdata):
if len(word) < 2:
print "Second arg must be the bug number!"
else:
    os.system("firefox https://monurlredmine.com/issues/"+word[1])
return xchat.EAT_ALL xchat.hook_command("obug", obug, help="/obug <number> open bug in ff")
Et voilà, plus qu'à reboot le xchat, ou bien /load nomdufichier.py
ça peut etre appliqué à plein de trucs : pouvoir lancer ce qu'on veut depuis xchat
 -
                
                http://xchat.org/docs/xchatpython.html#head-cf24838660500eceef2367deb88df5963483c852
  
 -
                
                http://xchat.org/docs/xchatpython.html#head-cf24838660500eceef2367deb88df5963483c852Comment écrire un module très basique chargeable/déchargeable (insmod/rmmod) pour le noyau de linux
 -
                
                http://etudiant.univ-mlv.fr/~rweber/?p=48
  
 -
                
                http://etudiant.univ-mlv.fr/~rweber/?p=48