Deny access to .htaccess files in lighttpd

In lighttpd you can use mod_access to deny files starting with a certain expression, such as hidden dot files. (example: .htaccess or .svn)

# Deny access to hidden files
$HTTP["url"] =~ "/\." {
    url.access-deny = ("")
}

Troubleshooting Memory Usage

(via rimuhosting.com)

If you are using VPS with very limited memory resources, the link provides excellent reference material on troubleshooting memory issues with some of the know applications that can possibly consume high memory.

Setting up ubuntu 10.04 (Lucid) server with squid 3 as a Transparent Proxy

(via www.ubuntugeek.com)

Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator.

The best tips & tricks for bash, explained

(via www.linuxtutorialblog.com)

The bash shell is just amazing. There are so many tasks that can be simplified using its handy features. This tutorial tells about some of those features, explains what exactly they do and learns you how to use them.

Small getopts tutorial

(via wiki.bash-hackers.org)

When you want to parse commandline arguments in a professional way, getopts is the tool of choice. Unlike its older brother getopt (note the missing s!), it's a shell builtin command. The advantage is

* you don't need to hand your positional parameters through to an external program
* getopts can easily set shell variables you can use for parsing (impossible for an external process!)
* you don't have to argue with several getopt implementations which had buggy concepts in the past (whitespaces, ...)
* getopts is defined in POSIX®

RabbitVCS - Easy version control for Linux

(via www.ubuntugeek.com)

RabbitVCS is a set of graphical tools written to provide simple and straightforward access to the version control systems you use. Currently, it is integrated into the Nautilus file manager and only supports Subversion, but our goal is to incorporate other version control systems as well as other file managers.

Find files that have not been accessed for a while

Below one liner uses the find command to list files sorted by access time beyond the provided "number of days".

find </path/to/folder> -type f -atime +<number of days> -exec ls -ultr {} \;

This becomes handy if you want to do archive and cleanup of your web folders that have grown to a huge size.

Plesk email users and passwords

Below is sql, if you ever need to test out your users email accounts on plesk server:

mysql> use psa
mysql> select concat(mail_name,"@",name) as email_address, accounts.password from mail left join domains on domains.id=mail.dom_id left join accounts on accounts.id=mail.account_id;

Seven habits of effective text editing

(via www.moolenaar.net)

If you spend a lot of time typing plain text, writing programs or HTML, you can save much of that time by using a good editor and using it effectively. This paper will present guidelines and hints for doing your work more quickly and with fewer mistakes...

GNOME Commander - Nice and fast file manager for the GNOME desktop

(via www.ubuntugeek.com)

GNOME Commander is a free two pane file manager in the tradition of Norton and Midnight Commander, it is built on the GTK-toolkit and GnomeVFS. GNOME Commander aims to fulfill the demands of more advanced users who like to focus on file management, their work through special applications and running smart commands. This program is not aimed at users wanting the weather forecast in a sidebar in their file manager.

Comment