Wednesday, April 21, 2010
Sunday, April 18, 2010
Image conversions / JPG to PDF and TIFF to PDF
With ImageMagick use command
$ convert img1.jpg img2.jpg img3.jpg all_images.pdf
With libtiff-tools create multipage tiff and than convert to pdf
$ tiffcp 1.tif 2.tif ... N.tif multi.tif
$ tiff2pdf -o out.pdf multi.tif
Posted by Dani 0 comments
Saturday, April 10, 2010
looping through files with spaces in the filenames in bash
I sometimes have to transfer files with spaces in the names, I like using a for loop, but the usual way doesn’t work. Usual way:
for file in `find . -type f|grep .ext$`
To get around this I use a while loop with a read instead. Using the read will read to the end of the line, enclosing within quotes escapes the spaces. Unusual way:
do
/do/something/to $file
done
find . -type f|grep .ext$ |while read file
do
/do/something/to "$file"
done
Posted by Dani 1 comments
Wednesday, April 07, 2010
Vulnerabilidad Sockstress del protocolo TCP
Muy interesante la vulnerabilidad, y también la historia de cómo se desarrollaron los acontecimientos.
http://www.kriptopolis.org/sockstress
En la pagina de Wikipedia que habla de la vulnerabilidad informa que puede ser mitigada utilizando iptables mediante connection tracking and rate limiting.
Posted by Dani 0 comments