Short #python code to evaluate #ping #latency

I forked a little class to test network latency adding it some unit testing, travor building and couple of tweaks.

 

Library on github

Advertisements

I just love #python

def bits(n):
    res = ''
    """
    Generates the binary digits of n
    """
    while n:
        res+= str(n & 1)
        n >>= 1
    return res[::-1]

Such an annoying noise

Sep 24 11:55:57 mail postfix/smtps/smtpd[22346]: Anonymous TLS connection established from unknown[178.162.195.12]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Sep 24 11:56:02 mail postfix/smtps/smtpd[22346]: NOQUEUE: filter: RCPT from unknown[178.162.195.12]: <test@mail.lucafrancesca.me>: Sender address triggers FILTER smtp-amavis:[::1]:10026; from=<test@mail.lucafrancesca.me> to=<test@gmail.com> proto=SMTP helo=<win-f09mvh2gdn6.domain>
Sep 24 11:56:02 mail postfix/smtps/smtpd[22346]: NOQUEUE: filter: RCPT from unknown[178.162.195.12]: <test@mail.lucafrancesca.me>: Sender address triggers FILTER smtp-amavis:[::1]:10024; from=<test@mail.lucafrancesca.me> to=<test@gmail.com> proto=SMTP helo=<win-f09mvh2gdn6.domain>
Sep 24 11:56:02 mail postfix/smtps/smtpd[22346]: NOQUEUE: reject: RCPT from unknown[178.162.195.12]: 554 5.7.1 <test@gmail.com>: Recipient address rejected: Access denied; from=<test@mail.lucafrancesca.me> to=<test@gmail.com> proto=SMTP helo=<win-f09mvh2gdn6.domain>
Sep 24 11:56:04 mail postfix/smtps/smtpd[22346]: lost connection after RCPT from unknown[178.162.195.12]

And a huge amount of

Sep 24 14:17:41 mail postfix/smtps/smtpd[30237]: warning: unknown[178.162.195.12]: SASL LOGIN authentication failed: authentication failure x
Sep 24 14:17:41 mail postfix/smtps/smtpd[30237]: lost connection after AUTH from unknown[178.162.195.12] x
Sep 24 14:17:41 mail postfix/smtps/smtpd[30237]: disconnect from unknown[178.162.195.12] x
Sep 24 14:17:41 mail postfix/smtps/smtpd[30237]: connect from unknown[178.162.195.12] x
Sep 24 14:17:42 mail postfix/smtps/smtpd[30237]: Anonymous TLS connection established from unknown[178.162.195.12]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits) x
Sep 24 14:22:43 mail postfix/smtps/smtpd[30237]: timeout after EHLO from unknown[178.162.195.12]

But with the beauty which is iptables

iptables -A INPUT -s 178.162.195.12 -j DROP

A little better on the mail server and the peace is reached.

#LinkedIn #IPv6 and #rDNS for email

It seems that LinkedIn is refusing email from servers that don’t have a rDNS

This is the mail system at host mail.lucafrancesca.me.

I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<xxxx@reply.linkedin.com>: host
mail-c.linkedin.com[2620:109:c006:104::215] said: 554 5.7.1 The sending
mail server at 2a01:4f8:100:242f::2 does not have a reverse
(address-to-name) DNS entry cf
http://en.wikipedia.org/wiki/Reverse_DNS_lookup (in reply to RCPT TO
command)

Nice to see email being taken seriously.

How Spotify is ahead of the pack in using containers

Gigaom

In late December, CoreOS CEO and container guru Alex Polvi proclaimed in a tweet that he believes 2015 will be the year of the production-ready container, which would be a testament to how fast companies are adopting the technology that promises more portability and less overhead than virtual machines.

For music streaming service Spotify, however, containers are already a way of life. The streaming-music provider has been using containers in production on a large scale, according to Mats Linander, Spotify’s infrastructure team lead.

This is a big deal given that it seems only a few companies beyond cloud providers like Google or Joyent have gone public with how they are using container technology in production. Indeed, when Ben Golub, CEO of the container-management startup Docker, came on the Structure Show podcast in December and described…

View original post 1,534 more words