August 10, 2008 Archives

2008-08-10 23:29:42

Irssi - f@h.pl

Folding@home (F@H) is the most powerful distributed computing cluster in the world and one of the world's largest distributed computing projects. The goal of the project is "to understand protein folding, misfolding, and related diseases."
To keep everyone on IRC informed about my current work progress, I created this small script. :-)


Note: this script requires curl.

Posted by haui | Permanent Link | Categories: irssi

2008-08-10 23:06:49

Irssi - mocnp.pl

This is a nowplaying script for moc and irssi. It also enables you to control moc from irssi. I recommend applying my patch to moc, as it's the only way to determine whether you turned shuffle/repeat on or off.


Usage:
/mocnp         prints the currently played song in the active channel 
/play          starts playing, if moc's in state "pause"
/pause         pause the current song
/start         starts moc if it's not running or if it's in mode "stop"
/stop          stops moc
/next          next song
/prev          previous song
/shuffle       turns shuffle on/off (requires >=mocp 2.5)
/repeat        turns repeat on/off (requires >=mocp 2.5)
 

Posted by haui | Permanent Link | Categories: irssi

2008-08-10 22:32:56

Irssi - nicklist.pl

This script displays a nicklist on the top of your irssi-window. Since it uses the split function of irssi, it works without any external programs. Although it works fine for me, a newer, better version will come soon...


Posted by haui | Permanent Link | Categories: irssi

2008-08-10 22:19:28

shuffle/repeat patch for moc

A lot of moc's functions can be easily controlled via command-line switches.  Unfortunately, by default, there's no way to determine whether shuffle/repeat is turned on or off, without checking the ncurses-interface of moc. So, I created a small patch, that enables moc to display these two values along with the song information on the command-line.

Applying this patch is pretty easy:

patch interface.c patch


Example for the altered output:
State: PAUSE
File: /my/favorite/musicfile.mp3
Title: foobar
Artist: foo
SongTitle: foobar
Album: bar
TotalTime: 01:28
TimeLeft: 00:54
TotalSec: 88
CurrentTime: 00:34
CurrentSec: 34
Bitrate: 192Kbps
AvgBitrate: 199Kbps
Rate: 44KHz
Shuffle: on
Repeat: off

Posted by haui | Permanent Link | Categories: projects

2008-08-10 22:08:44

yaydl - yet another youtube downloader (No longer maintained!)

yaydl - more than a youtube downloader!

Currently supports:

  • youtube
  • metacafe.com
  • clipfish.de
  • myvideo.de
  • video.google.com
  • vimeo.com
  • dailymotion
  • sevenload
  • video.golem.de
  • downloading of multiple videos "simultaneously"
  • encoding from flv to xvid using mencoder or ffmpeg
  • extracting the soundtrack of a video using ffmpeg or mplayer+lame
  • md3-tagging of the extracted sound-files
  • auto-renaming
  • support for HD videos on youtube/dailymotion

Requirements:

  • Getopt::Long
  • LWP::UserAgent
  • MP3::Info
  • Term::ProgressBar

On debian-based systems, a apt-get install libwww-perl libgetopt-long-descriptive-perl libmp3-info-perl libterm-progressbar-perl will suffice.


Installation:

Just run the included install file. :-)


Changelog

Download the current version:


Posted by haui | Permanent Link | Categories: projects

2008-08-10 21:19:21

brute

Now that's something pretty useless...

A simple MD5 brute forcer, written in C.

It calculates all combinations of a given set of characters and compares the MD5 sum of each combination to a given hash. brute calculates about 3 million hashes per second on a Pentium 4 (2,6 GHz).

Usage:

brute length hash

length represents the maximal length of a string, i.e. if it's 6, brute won't try words longer than 6 characters.
hash is a md5-hash, for example 5cfa779519a9789fad5dfe0de784ee4c

Posted by haui | Permanent Link | Categories: projects

2008-08-10 21:11:15

Welcome to NanoBlogger 3.3!

The basic syntax is: nb [-b blog_dir] [options]

How to ...
  • create new weblog (directory) = nb -b [blog_dir] -a
  • create new entry = nb -a
  • create new category = nb -c new -a
  • create new entry with category = nb -c [cat_id] -a
  • list entries = nb -l [all|DATE|max]
  • list categories = nb -l cat
  • list entries by category = nb -c [cat_id] -l [all|DATE|max]
  • edit entry = nb -e [entry_id]
  • move entry to category = nb -c [cat_id] -m [entry_id]
  • delete entry = nb -d [entry_id]
  • delete category = nb -c [cat_id] -d cat
  • delete entry from category = nb -c [cat_id] -d [entry_id]
  • draft entry = nb -E [draft_file]
  • import draft as entry = nb -f [draft_file] -a
  • force update of weblog files = nb -u [all|DATE|main]

Thank you for trying NanoBlogger. Please direct comments and suggestions to the mailing list or submit a bug report to the project page on sourceforge.net.


Posted by n1xt3r | Permanent Link