2009
10.22

Lets start with Monday! Richard(my boss) came back from his 6-week hiatus in the UK/Cebu/Australia. He actually finishes his employment with 1and1 at the end of the month so that gives him a week to go. He’s a crazy chap and will be missed professionally and personally.

Monday evening our guests arrived for our IT-Workshop this week. This involved key colleagues from our whole international company to gather(several meeting for the first time). We gathered at Kildare’s, an Irish pub/restaurant, and spent the better part of the evening getting familiar with one another.

Tuesday began the all-day meeting regarding our infrastructure policies/standards and redundancy planning. Pretty interesting, the consultants were very good in their ability to get us all to flesh out the all the issues and communicate on strategies.

Yesterday was very interesting, we sought out solutions for issues and created proposal dates. Richard arranged cheesesteaks for lunch from Delassandros. Tickets and transportation to the Phillies game was arranged as well. As you’re probably aware, the Phillies won and are going to the World Series. This was quite a once-in-a-lifetime opportunity. Richard got so drunk he puked out my window while i was driving him home.

Today was just as hectic. Got thrown into a stop-gap solution to fill in for local IT-Services, along with Ryan. Hopefully this doesn’t hurt as bad as I think it will.

More to come!

2009
10.17

I’m a member of bakabt.com, a private torrent tracker, I frequently want to check my active statistics. I wrote this handy little bash script to do the job:

#!/bin/bash
#bakabt ratio tracker display
#written by thesb
#usage: ./ratio.sh <username>
#get password, keep text hidden
read -s -p "Password: " varpass
#login to bakabt, grab cookies, and store session
curl -b ~/.cookies.txt -c ~/.cookies.txt -d "username=$1&password=$varpass" http://www.bakabt.com/login.php
#get vars for ratio, up/down, active, bonus
ratio=$(curl --silent -b ~/.cookies.txt -c ~/.cookies.txt -d "username=$1&password=$varpass" http://www.bakabt.com/user/891248/$1.html | egrep -m 1 "Ratio"| cut -d "<" -f 3 | cut -d ">" -f 2)
upload=$(curl --silent -b ~/.cookies.txt -c ~/.cookies.txt -d "username=$1&password=$varpass" http://www.bakabt.com/user/891248/$1.html | egrep -m 1 "U:"| cut -d "<" -f 4 | cut -d ">" -f 2)
download=$(curl --silent -b ~/.cookies.txt -c ~/.cookies.txt -d "username=$1&password=$varpass" http://www.bakabt.com/user/891248/$1.html | egrep -m 1 "D:"| cut -d "<" -f 4 | cut -d ">" -f 2)
actup=$(curl --silent -b ~/.cookies.txt -c ~/.cookies.txt -d "username=$1&password=$varpass" http://www.bakabt.com/user/891248/$1.html | egrep -m 1 -A 1 "A:"| cut -d "<" -f 3 | cut -d ">" -f 2 )
actdown=$(curl --silent -b ~/.cookies.txt -c ~/.cookies.txt -d "username=$1&password=$varpass" http://www.bakabt.com/user/891248/$1.html | egrep -m 1 -A 1 "A:"| cut -d "<" -f 5 | cut -d ">" -f 2)
bonus=$(curl --silent -b ~/.cookies.txt -c ~/.cookies.txt -d "username=$1&password=$varpass" http://www.bakabt.com/user/891248/$1.html | egrep -m 1 "B:"| cut -d "<" -f 4 | cut -d ">" -f 2 | cut -d "[" -f 1)
#Print in fancy colors the stored vars
echo -e "\E[37;40m\033[1mRatio:\033[0m" '\E[32;40m\033[1m'$ratio "\E[37;40m\\033[1mUploaded\033[0m:"'\E[32;40m\033[1m'$upload "\E[37;40m\\033[1mDownloaded\033[0m:"'\E[32;40m\033[1m'$download
echo -e "\E[37;40m\\033[1mActive Torrents Up\033[0m:"'\E[32;40m\033[1m'$actup "\E[37;40m\\033[1mDown\033[0m:"'\E[32;40m\033[1m'$actdown "\E[37;40m\\033[1mBonus Points\033[0m:"'\E[32;40m\033[1m'$bonus'\033[0m'

Direct download: here.

2009
10.16

First Post

Yet again, another blog install.

Hopefully I’ll get around to actually throwing some information about the various things I think about or deal with.

-sb