View more - Cleaning hacked PHP scripts
Posted by andphe on Fri Dec 03 14:31:08 UTC 2010. Language bash

grep -irl base64_encode * | xargs -I {} sed -i -e 's/^error_reporting.*base64_encode.*?>$/?>/' {}
        

View more - Crear una string "aleatoria" de 8 carácteres
Posted by mefistofeles87 on Tue Oct 19 22:02:35 UTC 2010. Language bash

</dev/urandom tr -dc A-Za-z0-9 | head -c8
        

View more - Eliminar el último commit del repositorio hecho por uno, después de haber hecho push
Posted by layonman98 on Tue Oct 05 21:17:51 UTC 2010. Language bash

git push -f origin HEAD^:master
        

View more - Eliminar el último commit del repositorio hecho por uno, después de haber hecho push
Posted by layonman98 on Tue Oct 05 21:17:51 UTC 2010. Language bash

git push -f origin HEAD^:master
        

View more - Lista de remitentes rechazados por falta de registro SPF en Qmail/Plesk
Posted by andphe on Tue Oct 05 15:37:45 UTC 2010. Language bash

!/bin/bash

for message in $(grep "SPF status: REJECT" /usr/local/psa/var/log/maillog | grep -oP "(\d+)(?=\])" )
do
    grep "\[$message\].*from=" /usr/local/psa/var/log/maillog
done