After some Solaris kernel projects, I lost interests in Linux. :(
Name: Qi Yong
Member since: 2004-04-06 07:32:29
Last Login: 2009-09-29 09:27:01
Homepage: http://users.sosdg.org/~qiyong/
Notes:
A Linux kernel developer, Solaris driver developer and Linux/FreeBSD system administrator.
After some Solaris kernel projects, I lost interests in Linux. :(
Recommended configuration options which are useful and either not enabled or missed from distro.
vsftpd.conf options:
use_localtime=YES
hide_ids=YES
hide_file={lost+found,foo}
deny_file={lost+found,foo}
smb.conf options:
interfaces = eth0 bind interfaces only = yes hosts allow = 192.168.1. hide files = /lost+found/foo/
This perl script gets Week_Of_Year from string like"2009-05-06".
use POSIX;
my $date = "2009-05-06";
my @d = split "-", $date;
my $week_of_year = strftime("%W", localtime
mktime(0,0,0,$d[2],$d[1]-1,$d[0]-1900));
print $week_of_year, "\n";
With postfix 2.4.5, virtual_alias_domains seems not work.
In main.cf,
virtual_alias_domains = domain.tld virtual_alias_maps = mysql:/etc/postfix/mysql-alias-maps.cf
In mysql-alias-maps.cf, use either '%s' to do a full match or '%u' with a 'domain = domain.tld'.
How I put a website under SVN
/etc/apache2/sites-available/foo <VirtualHost *> RedirectMatch 404 .*/\.svn(/|$) </VirtualHost>
$ cd /var/ $ tar zcf /tmp/foo-src.tar.gz www-foo \ --exclude=www-foo/htdocs/photos --exclude=... $ cd /tmp $ newgrp www-data $ tar zxf foo-src.tar.gz $ exit $ svnadmin create /srv/scm/www-foo $ svn import www-foo file:///srv/scm/www-foo
$ cd $ svn co file:///srv/scm/www-foo $ cd www-foo $ find . -name .svn | xargs tar zcf /tmp/foo-svn.tar.gz $ cd /var/www-foo $ tar zxf /tmp/foo-svn.tar
$ rm -rf /tmp/www-foo $ rm /tmp/foo-src.tar.gz /tmp/foo-svn.tar.gz
$ newgrp www-data $ umask 27 ... $ exit
coywolf certified others as follows:
Others have certified coywolf as follows:
[ Certification disabled because you're not logged in. ]
New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!