coywolf is currently certified at Journeyer level.

Name: Qi Yong
Member since: 2004-04-06 07:32:29
Last Login: 2009-09-29 09:27:01

FOAF RDF Share This

Homepage: http://users.sosdg.org/~qiyong/

Notes:

A Linux kernel developer, Solaris driver developer and Linux/FreeBSD system administrator.

Recent blog entries by coywolf

Syndication: RSS 2.0
6 May 2009 (updated 6 May 2009 at 08:31 UTC) »

After some Solaris kernel projects, I lost interests in Linux. :(

6 May 2009 (updated 4 Jun 2009 at 08:04 UTC) »

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/
6 May 2009 (updated 6 May 2009 at 08:13 UTC) »

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";
5 Jun 2008 (updated 5 Jun 2008 at 07:34 UTC) »

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'.

26 May 2008 (updated 27 May 2008 at 08:59 UTC) »

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

13 older entries...

 

coywolf certified others as follows:

  • coywolf certified amnesia as Journeyer

Others have certified coywolf as follows:

  • zwane certified coywolf as Apprentice
  • riel certified coywolf as Apprentice
  • amnesia certified coywolf as Apprentice
  • bruns certified coywolf as Apprentice
  • salmoni certified coywolf as Journeyer
  • triona certified coywolf as Journeyer
  • 8088 certified coywolf as Journeyer

[ Certification disabled because you're not logged in. ]

New Advogato Features

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!

X
Share this page