Uncompressing files via SSH

The different commands used to extract various file types via SSH. zip files unzip file.zip .tar files tar -xvf file.tar .gz files gzip -d file.gz .tar.gz files gzip -d file.tar.gz and then tar -xvf file.tar .tgz files tar -xvzf file.tgz

Continue Reading

Conditionally load plugin scripts and styles

You may find that you need to install a plugin to perform a certain function, but you only need it to work on a specific page or section of the website. If the plugin comes with scripts and styles, you’ll find that they are most likely being enqueued on all page, potentially affecting the load […]

Continue Reading

Website performance testing from the command line

There are various commands you can use in the terminal to quickly identify a website’s TTFB, page size, and other load times. Some require the installation of various command line libraries or package managers. Curl TTFB curl -s -w ‘Testing Website Response Time for :%https://google.com\n\nLookup Time:\t\t%{time_namelookup}\nConnect Time:\t\t%{time_connect}\nAppCon Time:\t\t%{time_appconnect}\nRedirect Time:\t\t%{time_redirect}\nPre-transfer Time:\t%{time_pretransfer}\nStart Time (TTFB):\t%{time_starttransfer}\n\nTotal Time:\t\t%{time_total}\n’ -o /dev/null […]

Continue Reading

Creating custom post types without a plugin

While I’m sure there are several plugins out there that will assist you in creating custom post types for your website, they don’t take too much code and can easily be made without a plugin. My system is fairly clean and modular – keep each post type within it’s own file, all post types within […]

Continue Reading

Automatic CSS columns

The following classes will automatically funnel the content of a div into two, three, or four columns.

Continue Reading