Tuesday, July 29, 2008

Saturday, July 26, 2008

Thursday, July 24, 2008

helpful unix bash macros

d ()
{
let count=0;
for items in `dirs`;
do
echo $count $items;
let count=$((count+1));
done
}

p ()
{
if (( "$# > 0" )); then
pushd +$1 > /dev/null;
else
pushd > /dev/null;
fi;
d
}

Wednesday, July 23, 2008

Thursday, July 10, 2008

A frat boy has 3 dates, but has only 2 condoms. How can he score on all three dates in turn without risking exchange of fluids?