Deny access to .htaccess files in lighttpd
Sun, 06/27/2010 - 21:36 — sandipIn 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 = ("")
}
- sandip's blog
- Login or register to post comments
Troubleshooting Memory Usage
Wed, 06/23/2010 - 10:56 — sandipIf 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
Tue, 06/22/2010 - 02:10 — david23Squid 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
Mon, 06/21/2010 - 11:19 — sandipThe 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
Thu, 06/17/2010 - 22:51 — sandipWhen 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
Thu, 06/17/2010 - 10:10 — david23RabbitVCS 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
Wed, 06/09/2010 - 16:25 — sandipBelow 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.
- sandip's blog
- Login or register to post comments
Plesk email users and passwords
Wed, 06/09/2010 - 14:42 — sandipBelow 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;
- sandip's blog
- Login or register to post comments
Seven habits of effective text editing
Tue, 06/08/2010 - 12:01 — sandipIf 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
Thu, 06/03/2010 - 11:57 — david23GNOME 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.