python-clamav Could it get any simpler?
If only life was this simple apt-get install python-clamav: >>> import pyclamav >>> ret=pyclamav.scanfile('/tmp/virus') >>> print ret (1, 'Worm.Sober.G') >>> ret=pyclamav.scanthis("Buffer to test bla...
Thoughts on technology, infrastructure, and AI
If only life was this simple apt-get install python-clamav: >>> import pyclamav >>> ret=pyclamav.scanfile('/tmp/virus') >>> print ret (1, 'Worm.Sober.G') >>> ret=pyclamav.scanthis("Buffer to test bla...
Dan at work put me on to some new Linux Kernel functionality in the form of inotify - the userland tools and libraries allow you to hook into this pretty handy capability. It essentially allows you to...
I thought this one was worth blogging. To save the output of an SQL query in a file simply do this: SELECT * FROM table INTO OUTFILE "/tmp/filename.txt" Produces a tab delimited file with the outputs...
Brumbies 2007 Originally uploaded by gavin.jackson. Photos of the last home match of 2007. We say farewell to George Gregan, Stephen Larkam and Jeremy Paul - all foundation team members of the CA Bru...
I finally had a chance to sit down and learn the syntax of creating mysql users and assigning specific permissions. This allows me to have different users for different web services - eg. cron jobs, w...