Initially I titled this «My laptop was hacked» but because the way they got in was by guessing a password, so it’s difficult to consider this a hack. Furthermore, what they did was pretty standard stuff, so although they technically … Sigue leyendo
Archivo de la categoría: English
Este script sirve para buscar en los logs de Postfix 2.9.6 la historia de entrega de los correos que cumplan con el from= y el to= que se indiquen en el primer y segundo argumento del script, respectivamente. #!/bin/bash # Configuration variables REQUIREMENTS=»gawk grep» … Sigue leyendo
Este script permite poner en un archivo las últimas N líneas de una salida. Por ejemplo, ping […] | alwayslast.bash FILE 10 permitiría que FILE tuviera las últimas 10 líneas de la salida de ping. This script allows for a file to … Sigue leyendo
cointoss() { # Probability is $1/$2, for example, cointoss 3 5 # will hit 60% of the time. Defaults to 1/2 if no # arguments are supplied. [ $((RANDOM % ${2-2})) -lt ${1-1} ]; } … Sigue leyendo
I have just released Caddeus 0.4. Caddeus is a prepared GNUmakefile oriented to the strict quality of C programs. It features an optimal test runner, strict C flags by default, automatic Cppcheck, Clang static analyzer and Valgrind usage if installed on … Sigue leyendo