Creating Image On-The-Fly in WordPress

Creating Image On-The-Fly in WordPress

WordPress makes it easy to generate images in various sizes through the add_image_size  function. There are a couple of limitations however: Image have to be regenerated after creating or modifying an image size. There are plugins like Regenerate Thumbnails that make this easy, but for a large number if images it can take a long… Full Article »

Batch Creating cPanel Accounts

Batch Creating cPanel Accounts

Using WHM, it’s easy to quickly deploy new cPanel accounts, but if you need to do it in bulk it can be tedious and error prone. Fortuantely the WHM API makes it easy to setup accounts in batches. The following script is a stripped down example of how to batch multiple cPanel accounts using cURL… Full Article »

Automatic Build Numbers Using Git Hooks

Automatic Build Numbers Using Git Hooks

When using git, you can grab your current build number (number of commits) by using the command: git rev-list HEAD --count. If you need to incorporate that build number into your project you can use a hook to add the build number to one or more of your project’s files. A git hook is just a shell script… Full Article »