Posts Tagged ‘bash’

Download youtube videos

Sunday, February 17th, 2008

To download all videos from a youtube user, use this shell script:

Source Code.

HOWTO:

$> youtube_down_all.sh <youtube_username> <destination_directory>

To convert flv files to other format, you can use ffmpeg.

Send Get Images

Sunday, February 17th, 2008

If you want to send some images from a webpage you just need to use this shell script.

Source Code.

Rename it to: send_get_images.sh
chmod +x send_get_images.sh

It uses “mutt” or “mail”, but the last one doesn’t work very well :\

HOWTO:

$> send_get_images.sh <url> <match_keyword> <mail_to>

Ex:

$> send_get_images.sh http://www.example.com  angelina mail@example.com

Enjoy ;-)

Thumbnails generator

Sunday, February 17th, 2008

A shell script to generate thumbnails from all JPG images of a directory.

Source Code

Rename it to: gen_thumbnails.sh

chmod +x gen_thumbnails.sh

HOW TO:

$> gen_thumbnails.sh <max_dim> <optional_thumb_prefix>