The Daily Shaarli
Script de hook pre-commit pour vérifier la syntaxe des .pp en utilisant http://puppet-lint.com/
Pratique pour l'écriture de script en bash lorsqu'on a besoin d'un fichier temporaire :
#Creation
tmpfile=$(mktemp)
#Utilisation...
#Clean
if [ -e "$tmpfile" ]
then
rm -f $tmpfile
fi
Pour obtenir la diff des éléments entre deux listes :
To get the lines only in the old file:
comm -23 <(sort /tmp/oldList) <(sort /tmp/newList)
To get the lines only in the new file:
comm -13 <(sort /tmp/oldList) <(sort /tmp/newList)
comm -23 <(sort /tmp/1) <(sort /tmp/2)
comm -13 <(sort /tmp/1) <(sort /tmp/2)
Feed du rrd en php
Un todo en cli dans le meme genre que http://todotxt.com/
Des certifs qui peuvent être passées online : sécurité, réseau..
Un peu de réseau, ça fait longtemps : un petit challenge où il faut crafter un icmp reply correspond à l'icmp request posté ;)
Les solutions :
http://ismellpackets.com/2010/10/05/the-ping-me-packet-challenge-solution/
http://ismellpackets.com/2010/10/06/another-ping-me-packet-challenge-solution/
http://ismellpackets.com/2010/10/07/the-ping-me-packet-challenge-solution-using-hping/
http://ismellpackets.com/2011/01/06/ping-me-packet-challenge-follow-up/
PS : l'auteur du blog n'est plus actif mais les archives sont à explorer
