SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-04-23 15:56:29

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,265
Website

Daily Dilbert

This is another one from commandlinefu, but it's been quite funny of late so I thought I'd share it with you...

First, you need to install imagemagick and curl from the repositories if you haven't already got them, then put this in your autostart.sh:

(sleep 8; display -title 'Dilbert' http://dilbert.com$(curl -s dilbert.com|grep -Po '"\K/dyn/str_strip(/0+){4}/.*strip.[^\.]*\.gif') ) &

You'll get the cartoon on your desktop. Change the sleep number to taste, or start it some other way - a launcher, or a cron job...

Here's a variant I hacked together for Doonesbury:

( sleep 8; display -resize 700x -title 'Doonesbury' $(curl -s http://www.doonesbury.com/strip/dailydose/index.html | grep -Eow -m 1 'http://images.ucomics.com/comics/db/[0-9]{4}/db[0-9]{6}\.gif') ) &

It was a bit small for me, so the "resize" blows it up a bit.

Both of these are ongoing stories, so it takes a couple of days to catch up. smile

Edit (2011/11/14): See below for code that works now.

Last edited by johnraff (2011-11-14 12:07:14)


John     Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

Help fund CrunchBang, donate to the project!

#2 2010-04-23 17:50:45

mcarni
#! CrunchBanger
Registered: 2009-02-10
Posts: 131

Re: Daily Dilbert

very very nice

thanks

M

Offline

#3 2011-11-14 12:04:10

johnraff
nullglob
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 3,265
Website

Re: Daily Dilbert

Site code changes, new versions:

display -geometry 700x500 -title 'Dilbert' http://dilbert.com$(curl -s dilbert.com/strips|grep -o -m 1 '/dyn/str_strip.*strip\.print\.gif') &
display -geometry 800x800 -title 'Doonesbury' $(curl -s http://www.doonesbury.com | grep -Eow -m 1 'http://cdn.svcs.c2.uclick.com/c2/[[:alnum:]]{32}') &

John     Please help us keep your forums manageable.
--------------------
( a boring Japan blog , idle twitterings  and GitStuff )
#! forum moderator

Offline

#4 2011-11-14 17:57:19

cbdxs
#! Die Hard
From: Capital Wasteland
Registered: 2011-08-03
Posts: 1,898

Re: Daily Dilbert

I just have the Opera web browser installed which has Dilbert comics in the home page.


叫我差不多先生。

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo