Fail2ban country statistics…

I was lucky enough to seize a “Raspberry Pi Colocation“-slot for my Raspberry Pi.

To secure it further I just recently installed fail2ban.
The software basically detects login attempts and blocks the IP for some limited time in the future. This prevents a depletive password guessing for server logins.

I was interested in the password-guessers` country of origin. Now I can confirm, at least for my Raspberry Pi, that most attacks come from China.
110 CN
2 UA
2 RU
2 DE
1 VN
1 PE
1 KR
1 CZ
1 BD

the quick and dirty command for this looks like this: (you need to have ‘whois’ installed)

for i in `sudo cat /var/log/fail2ban.log | sed 's/.*[Bb]an \(.*\)/\1/' | sort | uniq | cut -d ' ' -f 1 | grep "\."`; do
echo $i; whois $i | grep country\: |head -n 1 >> fail2ban_ctry.log ;
done
cat fail2ban_ctry.log fail2bancry2.log | sed 's/country: //g' |sort | uniq -c |sort -nr

Flattr this!

Open Street Map RL Wallpaper…

The final result
The final result

We wanted to paint one wall in our vestibule to add a little more color to the room. As we could not settle on a specific color, I thought of wallpaper. And is there any better theme than OpenStreetMap Data¹?

 
The theme was settled. It had to be a map, but which tiles? I thought of the beautiful pencil drawn MapBox tiles I saw some time ago:

OpenStreetMap Pencil Tiles by MapBox
OpenStreetMap Pencil Tiles by MapBox

We wanted some redish color so I had to convert the image with ImageMagick:

$ ./colorize.sh 25 file_in.png file_out.png
$ cat colorize.sh

#!/bin/bash
# I found this script in the imagemagick formus:
# http://www.imagemagick.org/discourse-server/viewtopic.php?t=17460#p91820
# It does about the same as gimp with the colorize option.
test -z $1 && exit -1

hue=$1
sat=50
light=0
hue=`convert xc: -format "%[fx:100*$hue/360]" info:`
sat=`convert xc: -format "%[fx:2*$sat]" info:`
test=`convert xc: -format "%[fx:$light<0?0:1]" info:`
light=`convert xc: -format "%[fx:abs($light)]" info:`
if [ $test -eq 0 ]; then
fillcolor="black"
else
fillcolor="white"
fi

convert \
$2 -set colorspace RGB -colorspace gray -set colorspace sRGB \
-fill "hsl($hue%,100%,50%)" -tint 40% \
-modulate 100,$sat,100 \
-fill $fillcolor -colorize $light% $3

the result is something like this:
Continue reading “Open Street Map RL Wallpaper…”

Flattr this!

Big Bang Theory Relationship Diagram Update…

Two years ago I did a relationship diagram based on data collected from The Big Bang Theory TV-Series. Meisterluk updated his data for the seasons 5 and 6.
Obviously I had to update my diagram, which I finally had time to do. Here it is:

Big Bang Theory Relationship Diagram

It is only based on the data regarding dating and sex. The little mistakes I found in Meisterluk’s data i corrected again and am mirroring the corrected data here.

What did I change for the new version 1.4, since the last version 1.3 from 2011? I moved the names into the circles to keep it more compact. I changed the position of the timeline and moved some characters around for readability.
The basic concept is the same as in v 1.3. Characters that share the same length and color line on the radial timeline in the same radial distance have a relationship (date/sex). That’s it.
One can clearly see that Leonard and Penny have an on-and-off relationship. Which they finally pick up again in season 5. Sheldon and Amy, and Howard and Bernadette have the two stable relationships in the group. Their relationships go on for almost 3 seasons now.
Raj seems almost asexual if one compares his timeline. He has only one sexual encounter per season. I did not count the ‘dating’ Raj did with Siri as it is a computer voice. At the end of season 6 Raj finally picks up a relationship with Lucy. Let’s see where this ends in season 7.

Flattr this!

Big Bang Theory Relationship Diagram…

not 10 days ago meisterluk posted a graph of relationship data he collected watching The Big Bang Theory .

i was not quite happy with his visualization. so i redid it, here it is:

Big Bang Theory Relationship Diagram
Big Bang Theory Relationship Diagram

i hope it is self explanatory. in case it is not, Continue reading “Big Bang Theory Relationship Diagram…”

Flattr this!

Bday Pie Chart…

having had my birthday recently i was curious about the channels via which people would wish me a happy birthday. so i counted.
and here is the resulting pie chart – what’s better than a pie chart for a birthday wish statistic?

Birthday wishes pie chart
Birthday wishes pie chart

it is not surprising that facebook has the biggest piece of the pie. people seem to like facebook, i certainly have a bigger contact list than on skype plus facebook knows my birthday and people get reminded. that sums up to a high count.
suprising for me was the second place: the telephone. it beat skype by 1.4% to the second place. it has no auto reminder and it’s the only medium that is synchronous.
third place goes to skype (just text messages) with 11.9%. fourth to SMS.
the last place is shared by twitter and e-mail. twitter is not that much of a surprise to me. on the other hand e-mail suprised me. a few years ago this statistic would have looked totally different without facebook, and e-mail would not be in the last place.

what’s your birthday wishes statistic like?

Flattr this!