stash: fixup DOS line termination

Wednesday, 26. 10. 2005  –  Category: all, stash

Inevitable evil: developer drops off a load of content with DOS line endings, flutzing up editor screens with ^M. $ find /some/path -type f -exec perl -pi -e'y/\015//d;' \{\} \; It’d be nicer to used xargs(1) instead of find(1)’s own -exec flag – way more efficient. However, chances are that if there’s borked line endings […]

air mass

Wednesday, 26. 10. 2005  –  Category: all, vague

The turbo on my VW Golf 1.9Tdi had become disappointingly non-functional. I could hear the exciting whizzing from the device as it spun up, but there was no boost. For a heavy car like a mark 4 Golf, this makes driving a pain, both around town and on long motorway inclines. Getting the garage (who […]

mysql wildcard permissions

Monday, 24. 10. 2005  –  Category: all, vague

I just can’t get wildcard permissions to work with MySQL – I want user ti to be able to do anything he likes to any database matching /^ti_/. The test databases are configure out of box like this, but I can’t seem to do this with GRANT: mysql> grant all on "ti_%".* to ; […]