Rescan disk

echo "- - -" > /sys/class/scsi_host/host[0-9]/scan

for i in `ls /sys/class/scsi_host/`; do sudo echo "- - -" > /sys/class/scsi_host/$i/scan ; done

Generate encrypted passwords Python

>>> import crypt
>>> prefix = '$6$'
>>> salt = 'saltsalt'
>>> password = 'password'
>>> crypt.crypt(password, prefix + salt)
'$6$saltsalt$qFmFH.bQmmtXzyBY0s9v7Oicd2z4XSIecDzlB5KiA2/jctKu9YterLp8wwnSq.qc.eoxqOmSuNp2xS0ktL3nh/'
python -c 'import crypt; print crypt.crypt("password", "$6$saltsalt$")'
$6$saltsalt$qFmFH.bQmmtXzyBY0s9v7Oicd2z4XSIecDzlB5KiA2/jctKu9YterLp8wwnSq.qc.eoxqOmSuNp2xS0ktL3nh/
mkpasswd -m sha-512 -S saltsalt password
$6$saltsalt$qFmFH.bQmmtXzyBY0s9v7Oicd2z4XSIecDzlB5KiA2/jctKu9YterLp8wwnSq.qc.eoxqOmSuNp2xS0ktL3nh/

Concatenar varios PDFs en uno.

Debido a que tenia varios PDFs ordenados por nombre tal como se muestra en la imagen, y con la dificultad de la lectura o búsqueda de información, he decidido concatenar-los con gs (Ghostscript).

Para ello desde la consola:

gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=concatenados.pdf mypdf\(01\).pdf mypdf\(02\).pdf mypdf\(03\).pdf mypdf\(04\).pdf mypdf\(05\).pdf mypdf\(06\).pdf mypdf\(07\).pdf mypdf\(08\).pdf mypdf\(09\).pdf mypdf\(10\).pdf mypdf\(11\).pdf mypdf\(12\).pdf mypdf\(13\).pdf mypdf\(14\).pdf mypdf\(15\).pdf mypdf\(16\).pdf mypdf\(17\).pdf mypdf\(18\).pdf mypdf\(19\).pdf mypdf\(20\).pdf mypdf\(21\).pdf mypdf\(22\).pdf mypdf\(23\).pdf mypdf\(24\).pdf mypdf\(25\).pdf mypdf\(26\).pdf mypdf\(27\).pdf mypdf\(28\).pdf mypdf\(29\).pdf mypdf\(30\).pdf mypdf\(31\).pdf mypdf\(32\).pdf mypdf\(33\).pdf mypdf\(34\).pdf mypdf\(35\).pdf mypdf\(36\).pdf mypdf\(37\).pdf mypdf\(38\).pdf mypdf\(39\).pdf mypdf\(40\).pdf mypdf\(41\).pdf mypdf\(42\).pdf mypdf\(43\).pdf mypdf\(44\).pdf mypdf\(45\).pdf mypdf\(46\).pdf mypdf\(47\).pdf mypdf\(48\).pdf mypdf\(49\).pdf mypdf\(50\).pdf mypdf\(51\).pdf mypdf\(52\).pdf mypdf\(53\).pdf mypdf\(54\).pdf mypdf\(55\).pdf mypdf\(56\).pdf mypdf\(57\).pdf mypdf\(58\).pdf mypdf\(59\).pdf mypdf\(60\).pdf mypdf\(61\).pdf mypdf\(62\).pdf mypdf\(63\).pdf mypdf\(65\).pdf mypdf\(66\).pdf mypdf\(67\).pdf mypdf\(68\).pdf mypdf\(69\).pdf mypdf\(70\).pdf mypdf\(71\).pdf mypdf\(72\).pdf mypdf\(73\).pdf mypdf\(74\).pdf mypdf\(75\).pdf mypdf\(76\).pdf mypdf\(77\).pdf mypdf\(78\).pdf mypdf\(79\).pdf mypdf\(80\).pdf mypdf\(81\).pdf mypdf\(82\).pdf mypdf\(83\).pdf mypdf\(84\).pdf mypdf\(85\).pdf mypdf\(86\).pdf mypdf\(87\).pdf mypdf\(88\).pdf mypdf\(89\).pdf

Ahora tengo un solo documento ordenado por titulo y sus marcadores. El espacio ocupado por los PDFs era de unos 21M, sin embargo el tamaño del PDF es ahora de unos 7,6 M.

Saludos!

 

Por un Sistema Libre !!!