My Profile Photo

Personal Webpage of David Duggins


Well, I was born on a normal day in July, 1981 and have been creating chaos ever since. Born in North Carolina, but raised in the aftermath of the Soviet Union, Kazakhstan, I have been messing around with computers nearly my entire life. I wrote my first program in assembly when I was 11. In my early teens I ran a BBS connected to Fidonet and started building a website for my band. In 1999 I was introduced to Linux, and it was love at first compile. I started my career in IT in the early 2000's doing IT for a Car Dealership in Charlotte NC. I wrote my first major web app in Cold Fusion (an ecom app) at that time. In 2006 I left Charlotte and moved down to Columbia where starting working as a developer, freelancer and consultant. Currently I am working as a freelance developer and DevOps consultant!!


Updating an Old Python Script

I wrote a script years ago that let me spin up a WordPress instance, complete with vhost file. I wrote it in python and it was , at least for me a pretty impressive feat! Recently, I’ve been going over some of my old code and giving them a bit of a dust off. I’ve made a few changs to the code that I feel makes marked improvements on it…albiet small!

Here is the code in it’s entirety:

To break it down a bit, the main change was in moving to f-strings. This makes the code cleaner and easier to read. Instead of %s in all the spots that needed dynamic data and then %(domain, domain, path, path, domain, domain), I can just include the variables directly with {var} instead!

© 2024 David Duggins. All rights reserved.
Open to Contracts