Blog Archive for July 4, 2010

Installing Mercurial from Backports on Debian Lenny

July 4, 2010

The default version of Mercurial in Debian Lenny is 1.0.1 - not exactly the bleeding edge. To load Mercurial from backports (1.3.1) following the instructions below.

Add the backports repository to your /etc/apt/sources.list:

# backports
deb <a href="http://www.backports.org/debian">http://www.backports.org/debian</a> lenny-backports main contrib non-free

Next, create the file /etc/apt/preferences, with …

Delete All Untracked Files in Mercurial

July 4, 2010

Is there a way to delete all untracked files in a mercurial working area? Yes, with the purge extension.

Installing Purge

This extension is shipped by default with mercurial but turned off. To enable it, modify your config file (.hgrc on Unix, Mercurial.ini on Windows) to add

[extensions] 
purge = …

Deleting RabbitMQ Queues

July 4, 2010

There's no support on RabbitMQ's command line (rabbitmqctl) for deleting queues. This can be achieved using amqp-utils, a ruby gem.

To install on Fedora 11:

# yum install ruby ruby-devel rubygems
# gem install amqp-utils

You can then list queues with

rabbitmqctl list_queues

and delete with:

amqp-deleteq queue_to_delete other_queue_to_delete