ARD (Video)-Podcast Downloader

#!/usr/bin/perl -w
#
# ARD tagesschau podcast url
$url = "http://www.tagesschau.de/export/video-podcast/webl/tagesschau/";
#
# wget parameter
$wgetopts = "--quiet";
$targetpath = "/tmp";
#
# Enable verbose output
$verbose = 0;
#
#############################

use XML::Simple;
use LWP::Simple;

sub output{
        my $msg = shift;
        if ($verbose) { printf STDERR "$msg\n"; }
}

$xmlcontent = get($url);

my $xml = XMLin($xmlcontent);

$title = $xml->{channel}->{item}->[0]->{title};
$url = $xml->{channel}->{item}->[0]->{enclosure}->{url};
$filename = $url;
$filename =~ s/.*\///;

$path = "$targetpath/$filename";

output("Titel:\t$title");
output("URL:\t$url");
output("File:\t$path\n");

if (-e "$path") {
        output("$path exists !");
        exit 1;
} else {
        output("Downloading...");
        system("wget", "-O", $path, $wgetopts, $url);
}

Its not perfect…feel free to send me feedback/patches/changes.

Lenny Linux rockz…

Watch it !

http://www.youtube.com/watch?v=6gbNZK60Xe4

YouTube – “This video is no longer available due to a copyright claim by Alley Music Corp..” – ๐Ÿ™

http://www.google.com/search?q=Java4Ever&hl=en&tbs=vid:1,srcf:H4sIAAAAAAAAAB3IQQ4AEAwF0dvYSNyppREpfoIu3J5092bihR1jSRkjKJbYdv6t5irU-h04DdMbvJPWQKUSsyx_1D2e3mPVGAAAA&prmd=v&source=lnt&sa=X&ei=SkBETOndKs384Aa93PGiDg&ved=0CCIQp

How to delete a command from the bash history / Hide an command from the bash history

Hide an command from the bash history:
Start a terminal and try

wget user:passwd@ftp.example.com/secret.tar.gz; kill -9 $$;

Now you can check your history ๐Ÿ˜‰

How to delete a command from the bash history:
If you have already such an entry, you can use history to delete it.

history
# [...]
# 849 uname -a
# 850 wget user:passwd@ftp.example.com/secret.tar.gz
# 851 ping blog.devnu11.net
# [...]

Now you can delete your history with history -d 850 this line.

history -d 850

And see…

history
# [...]
# 849 uname -a
# 850 history
# 851 ping blog.devnu11.net
# [...]

Or simply add a blank before the command ๐Ÿ˜‰

$  wget user:passwd@ftp.example.com/secret.tar.gz

ZTE MF637 unter Ubuntu

Um den ZTE MF637 oder auch T-Mobile W’n’W Stick Fusion unter Ubuntu zum laufen zubekommen, braucht man den Stick (leider) nur einmal auf einem Windows installieren – sprich die Treiber, und sich dann via Hyperterminal auf den Diagnose Port zuverbinden und folgendes Kommando ausfรผhren:

AT+ZCDRUN=8

Damit wird der Autostart vom Stick, also das virtuelle CD-ROM am Anfang, deaktiviert !

Geht mit 9.08, 9.10 usw.

DD-WRT PPPoE Passthrough (on WRT54G)

For a PPPoE Passthrough on DD-WRT, enable jffs and do the following steps on a *nix-based system

cd /tmp;
wget http://kamikaze.openwrt.org/8.09.1/brcm-2.4/packages/rp-pppoe-relay_3.10-1_mipsel.ipk;
tar zxf rp-pppoe-relay_3.10-1_mipsel.ipk;
tar zxf data.tar.gz;
scp usr/sbin/pppoe-relay root@:/tmp/

Start the relay agent on the router

/tmp/pppoe-relay -S vlan1 -C br0

Now you can start your pppoe client on your notebook.

Tested with a WRT54G and DD-WRT v23 !