Using apache authentication with gitweb, gitosis – repository access control

gitosis is a tool for simple hosting of git repositories and managing access to them. gitweb has capabilities to control which repositories are listed on the project list page – $strict_export, $export_auth_hook and some other friends. in my case, everyone accessing web resources are authenticating through apache, which in turn connects to an LDAP server.

Here is a guide for setting up gitosis.

Q: how to provide gitweb access only to those repositories to which the apache user has been granted access in gitosis.conf?

A: use $export_auth_hook in /etc/gitweb.conf.
(more…)

less is also tail, who knew?

Can’t believe I hadn’t come across this one before anywhere. You know the scenario when you’re debugging some wack crash or non-functionality in your Linux box and doing this over and over again:

less /var/log/messages

for reviewing what happened, then CTRL+C and:

tail -f /var/log/messages

to monitor what happens when you changed something.

Well how about just staying in less and pressing F. Discovered from less’ very own help page.

F Forward forever; like "tail -f"

Firefox 3 (+possibly other apps) random crashing on OS X due to font cache corruption

One day Firefox 3.0.8 started randomly crashing on me, and some other folks as well. It is not possible to remember anymore whether there was a system crash / kernel panic / unclean shutdown beforehand. PanicReporter does show one for Mar 10, 2009, which actually sets the timeline for this problem up quite well.
(more…)