Adventures in Ansible and Vagrant with Trellis

Was getting some frequent nginx failures on local dev. Having to reload the vagrant box. Gets old. Already ran vagrant destroy and reimported all the WP data once tonight. We were using a dot dev domain, which I was recently told is soon to break modern browsers, and the the Roots discourse, someone suggested the … Continued

Brad Frost Blows me Away Again

Brad Frost is the first name in Atomic Design, where you design a website considering each atomic element, like Card or Footer, and it’s molecules like button, checkbox. Came across an article on group design by Brad Frost (in Pittsburgh.) The perusing his site, came across, one of which is Harry Roberts’ CSS Style … Continued

Analysis of Potentially Hacked WordPress Site

Looking for the most recently modified files: find . -type f -print0 | xargs -0 stat –format ‘%Y :%y %n’ | sort -nr | cut -d: -f2- | head 2018-01-26 11:27:28.977527587 -0700 ./google1c870a472b1e6d13.html 2018-01-26 02:44:49.793751734 -0700 ./wp-content/plugins/error_log 2018-01-18 16:36:11.218282982 -0700 ./wp-includes/error_log 2018-01-16 16:48:03.515070150 -0700 ./wp-includes/version.php 2018-01-16 16:48:03.514070139 -0700 ./wp-admin/about.php 2018-01-16 16:48:02.635059740 -0700 ./wp-admin/includes/update-core.php 2018-01-10 13:28:07.283660340 … Continued

Compassionate Coding

Made a new friend, perhaps, today in April Wensel who founded Compassionate Coding. Found her through a wonderful article on Medium called Compassionate Coding: Confessions of a Recovering Jerk Programmer. She is a very experience programmer/coder who now mostly facilitates healthy communication among colleagues in the coding and development field. And she gave me a … Continued

Installing Odoo 10 on Smallest Linode Instance without FQDN

Follow Linode docs for Installing Odoo 10 on Ubuntu, but am going to run it on Debian. Also Linode docs for Getting Started and securing the server, including Fail2Ban. Using gmail for SMTP with sendmail: NOTE: editing mail configs done as super user with sudo su, otherwise cd is not recognized when run with sudo … Continued

Programatically Remove Title Bar on Avada WP Theme for CPT

add_action( ‘template_redirect’, ‘avada_check_page’ ); function avada_check_page() { if ( is_singular( ‘product’ ) ) { add_action( ‘avada_override_current_page_title_bar’, ‘avada_remove_title_bar’ ); } } function avada_remove_title_bar() { } Replace ‘product’ with your post type

Enter passphrase for SSH Key

At some point this computer kept prompting me for password for SSH key, which required me opening Keychain Access. Annoying. Solution is following command: ssh-add -K ~/.ssh/private-key # not the pubic one Thanks, SO.

Troubleshooting Intermittently Failing Script/MySQL

Every once in a while, one of the orders placed through this ancient script I’m maintaining only makes is half-way through the Paypal process. It processes the payment, but doesn’t email the seller, or log the transaction locally in the servers MySQL database. The first thing I did was set up some logging: file_put_contents(‘a_sqltest.txt’, print_r($sql, … Continued

Migrating from Zen Cart to WooCommerce on New Server

I’m using Cart2Cart, which for like $100 will migrate all of our Zen Cart products with additional images as well as creating 301 redirects from the original site to the new one. Kind of cool. I’m using Docker and specifically Docker-compose for development. I’m using the WP plugin Error Log Monitor to check for php … Continued