Perl script to manage virtual hosts

I did this script a while back, and I’ve been using it on gentoo, ubuntu and centos distros with a few changes, this can be extended to add new functionality, and it may contain bugs, but so far it has worked for me pretty well, I can add/remove virtual hosts very quickly. To use this…

Mysql to Postgres

Script to copy data from MySQL to postgreSQL

This is a perl script I’ve used to move data from mysql 5.1 to postgres 9, this script doesn’t create a schema, it only grabs the data from mysql and try to put it on the same table in postgres. The only requirement is DBI for mysql and postgres.   #!/usr/bin/perl # # this script…

Automated Capture of Webpages (Main Process)

This post is the continuation of  Xvfb and Firefox headless screenshot generator were I explained how Xvfb and Firefox can be used to get a screenshot of any web resource supported by firefox. The next challenge I had, involved the creation of an automated process that could be called from the web or from a cron…