Vikram's Web Archive

Icon

Since interestingness isn't a search option…

Slashdot | Hulu Again Removed From Boxee and Again Added Back

Slashdot | Hulu Again Removed From Boxee and Again Added Back

This code, executed on a dd-wrt router, will give all your clients 30 seconds of nothing during commercials when watching Hulu videos. It will block most other browser ads also but what the hell… Works really well with Slashdot.
Just add it to your startup section and enjoy a nearly ad-free internet.
—-
logger WAN UP Script Executing
sleep 5
test -s /tmp/dlhosts
if [ $? == 1 ] ; then
echo -e “#!/bin/shnwget -O – http://www.mvps.org/winhelp2002/hosts.txt [mvps.org] | grep 127.0.0.1 | tr -d ‘1532’ | sed -e ‘2,$s/127.0.0.1/0.0.0.0/g’ -e ‘s/[[:space:]]*#.*$//’ -e ‘2,$s/0.0.0.0 localhost$/127.0.0.1 localhost/g’ -e ‘2,$s/0.0.0.0 pagead.*.googlesyndication.com//g’ | grep 0.0 > /tmp/hostsnlogger DOWNLOADED http://www.mvps.org/winhelp2002/hosts.txt [mvps.org]nkillall -1 dnsmasq” > /tmp/dlhosts
chmod 777 /tmp/dlhosts /tmp/dlhosts
fi
ln -s /tmp/hosts /etc/hosts
echo “45 23 * * 5 root /tmp/dlhosts” >> /tmp/crontab
—–

[From: Slashdot | Hulu Again Removed From Boxee and Again Added Back]

Category: Tech Tips

Tagged:

Comments are closed.

Photo Stream

AngelsLandingHDIMG_1435IMG_1503IMG_1142c2IMG_1132IMG_1133

Translate

 

Library

Speaker for the Dead
To Kill a Mockingbird
Leviathan Wakes
Caliban's War
Hyperion
Revelation Space
Ender's Game
Dune
On Basilisk Station
Old Man's War
Shards of Honour
The Warrior's Apprentice
The Fall of Hyperion
The Rise of Endymion
Endymion

 

Now Reading

Planned books:

Current books:

  • The Wisdom of Crowds

    The Wisdom of Crowds by James Surowiecki

Recent books:

None

View full Library