Celta 2 – 3 Deportivo

April 15th, 2012

Once again Deportivo defeats Celta de Vigo in the Galician derby. Amazing match today. Deportivo scored first in the first half and then in the second half Lassad scored the second goal for Deportivo. Celta was able to equalize the match but Borja scored the winning goal on the 92 minute.

Some pictures below.

The winning goal.

Forza Depor!!! Xa queda menos para subir a Liga de merda.

Trumpeter PT-76 part 3

March 31st, 2012

So here are some pictures of the PT-76 from Trumpeter. Turret has been mounted and basically tracks are missing. As it can be clearly seen the model still hasn’t been painted.

Ill keep posting pictures of this scale model as it keeps improving.

Ten years later…

March 6th, 2012

Ten years later. We wont forget.

Forza Depor!!!

Happy Birthday mandriles!!!

Depor 2 – 1 Barsa B

February 18th, 2012

Some pictures from the Deportivo 2 – 1 Barsa B.

Goals scored by Bruno Gama and Riki in the second half. Forza Depor!!!

Notify-send command

February 18th, 2012

So the other day I was looking around and discovered the notify-send command. It basically sends notifications to the desktop. Pretty useful now adays.

[11:49:13] xavi@thinkpad: ~ $ sudo dpkg -S `which notify-send`
libnotify-bin: /usr/bin/notify-send
[11:49:15] xavi@thinkpad: ~ $

It is installed with libnotify-bin via aptitude.

[11:50:35] xavi@thinkpad: ~ $ sudo aptitude install libnotify-bin

So, once installed lets create a practical script. On my job I need to have a permanente VPN connection. Once in a while the VPN connection drops and we have to connect again. Lets create a simple script that notifies us when the connection drops.

#!/bin/bash

# Check tunnel interface
while "true"; do
        /sbin/ifconfig tun0 &> /dev/null
        while [ $? -ne 0 ]; do
                notify-send -t 5000 "VPN" "VPN is down"
        done
        sleep 300
done

We save and copy the script, give it execution permissions with chmod and send it to background.

[11:55:47] xavi@thinkpad: ~ $ chmod +x /tmp/check-vpn.sh; /tmp/check-vpn.sh &
[1] 15613
[12:00:43] xavi@thinkpad: ~ $

Here is a screenshot of it working.

vpn notify-send

Enjoy.


Switch to our mobile site