You're at Mabishu, a website about discovering quality on code, searching emerging technologies, and leading a simpler, more mindful coder life. This site was established in 2005 by Fran Diéguez, a blogger, software developer, and open source geek. Subscribe to the RSS feed for updates.

3 ways of get memcached status

rect3644 3 ways of get memcached statusIf you use memcached to cache contents among different servers and apps, and you want to get statistics for what is happening inside the memcached-sever you can use one of the available interfaces for programming languages but there are simpler ways to do that. The best way is use the command line because the simple protocol that memcached has.
Read the rest of this entry »

Improve Munin stats page with new layout and plugins

rect2844 Improve Munin stats page with new layout and pluginsWhen the  number of your servers is increasing more than you have expected, is a good practice to have a friend that  helps you track what’s happenning on those.

For this I use, among other apps, Munin. Munin is a “networked resource monitoring tool that can help analyze resource trends and [...] problems” according to its site.

But this post isn’t a howto-install guide but a how to personalize and extend munin to fit your requirements, just with a custom layout and new plugins. Read the rest of this entry »

Show nicer file listings with Apache autoindex module

Written on February 17th, 2010
.

capturadepantalla 300x183 Show nicer file listings with Apache autoindex moduleRecently I have working on “mabishu-apache-autoindex”, a set of html, css, icons and image files designed to work together with the mod_autoindex module to make the default Apache file listings look a little nicer.  Try this screenshot demo and If you like it, grab the source files at my Github repository, now I’ll explain how to set it up.

Installation

First, get a copy of the “include” folder – the easiest way is to change to the document root of the domain you want to style, and check it out from git:

$ cd /var/www/YOUR.VHOST.LOCAL
$ git clone http://github.com/frandieguez/mabishu-apache-autoindex.git

This should create an ‘include’ folder in the parent of your document root. Next, you need to configure Apache to use the “includes” files to style your directory listings.

Read the rest of this entry »

Automatic upgrades on Ubuntu with apt and cron

Written on January 22nd, 2010
.

If you want to get automatic upgrades of your personal repositories I haven’t find a way to get managed with unattended-upgrades so I have done the next wordarround.

This way is to use apt-get and crontab together, so open your crontab editor:

sudo crontab -e

And type the next line to execute our upgrade every night at 1AM:

0 1 * * * (/usr/bin/aptitude -y update && /usr/bin/aptitude -y safe-upgrade) 2>&1 >> /var/log/auto_update.log

Save and exit your editor, and you are all set! You could check the logfile: /var/log/auto_update.log every once in a while to see if everything is still running smoothly.

Note: If you have a solution to get to work unattended-upgrades package with custom repositories please fill a comment below.