Linux, WebDev and other…

October, 2014

Convert single mysql insert statements to one statement with multiple VALUES lists

I needed to convert multiple mysql insert statements to statements with multiple VALUE lists to insert several rows at a time. I have not found any tool for that, so I wrote this script in Python. Thankfully I found a non-validating SQL parser module for Python, so this task became very easy. You must install […]


Simple daemon wrapper script in bash

I needed to run quick  PHP script every 15 seconds. Cron job cannot be used to run tasks more frequently than one minute. This simple script based on this will do the trick. Can be used on servers with shell access without root permissions. Changelog: 2014-10-29 Added pid check

, ,