Fun!

It’s funny though. One noon at Cafe Neo in Sabo, Yaba, I was waiting on my friend Magnus while he met his friend. Sipping my coffee and using my laptop, with the bad network there, I couldn’t browse with my GLO SIM; I then decided to play around. I exported my MySQL Database as JSON…

Read More PHP-JSONDB: A PHP Class that Reads JSON File as Database

Stumbled upon a very monstrous PHP project, very old of course, the client complained that the web host refused to downgrade the server for them and this project doesn’t work anymore because it was written with bunch of mysql_* depreciated function. Now it was my job to start editing these files one after the other,…

Read More MySQL2MySQLi: A Small Program to Help Migrate from PHP mysql_* to mysqli_*

As a system admin, was stuck one day looking for a way to delete old files and it brought me to this code. This short code will delete files recursively if directory provided as the argument, if it’s a file, it just deletes the file if it matches the given time frame So with the…

Read More Recursively Delete Files Based on Time Old Using Python

In an app development I needed to use my system resolvers which is different from my ISP default resolver, and Python keeps taking my ISP resolver. I decided to put up this simple function to get resolvers for me in /etc/resolv.conf, here is it: https://github.com/donjajo/py-world/blob/master/resolvconfReader.py I hope this helps

Read More Parsing and Fetching DNS Resolvers in /etc/resolv.conf Using Python

Recently a friend of mine complained about this – not seeing States and LGA online for developers’ use. I took it upon myself to make this available to us and make work easier for us. It took me 3hrs to arrange it, which my source was from this site, thanks to them 🙂 How to…

Read More NGStatesLGA: Nigerian 36 States & Local Government Areas PHP Class