• Disk speed performance

    July 30, 2015
    Test your disk speed: fio –randrepeat=1 –ioengine=libaio –direct=1 –gtod_reduce=1 –name=test –filename=test –bs=4k –iodepth=64 –size=4G –readwrite=randrw –rwmixread=75 hdparm -tT /dev/root
  • SMTP, Send email with telnet

    July 29, 2015
    $> telnet localhost smtp Trying 127.0.0.1… Connected to localhost. Escape character is ‘^]’. 220 mailtest ESMTP Postfix (Debian/GNU) $> ehlo example.com 250-my-new-mailserver 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN $> mail from:<nico@example.com> 250 2.1.0 Ok $> rcpt to:<admin@example.com> 250 2.1.5 Ok $> data 354 End data with <CR><LF>.<CR><LF> $> Hi Admin, $> $> […]
  • Fail2ban secure your server

    July 29, 2015
    Few tips about fail2ban: How to delete or free a blocked ip: fail2ban-client get jail actionunban ipaddress
  • Ruby

    July 23, 2015
    Anoying things about ruby: i++ does not work! backward version compatibility Regexp not as powerfull than perl Handling types