-
May 26 2015
My Pantheon + Jenkins Process
Here is a rough outline of my Pantheon + Jenkins process. I like my code in BitBucket. I also like Pantheon (check them out). The Pantheon workflow is all about being the source of truth for your code. This is fine, and actually I dig it because it promotes good practices. However, I, and my company, have many projects in BitBucket already, and am using Jenkins more and more for some Continuous Integration functions. We want to keep using BitBucket as our source of truth and our existing workflows, but also want to use Pantheon.
-
May 21 2015
A WordPress ajax handler for custom themes
Something I have been noodling on is a better way to handle ajax requests in my custom themes. Seems to me that a relatively complex theme ends up with a lot of add_action calls for custom ajax handlers, and this could be simplified/reduced. Every time a new endpoint is required we have to add two new add_action calls to our theme. Maybe a better approach is to write a single ajax endpoint that will route requests to the proper classes/methods?
-
May 19 2015
My VagrantFile
This is the Vagrantfile I am using for my development box at home and work. It is determines how much ram is available and how I want to allocate, how many CPUs are available, and configures the VM for me. I use NFS for shared folders. Finally, starting to use "hostupdater" to keep my host machines hosts file current.
-
April 2 2015
Ohai Plugin for OpenVZ VMs to get public IP Address
Media Temple uses the OpenVZ virtualization system and I have quite a few Media Temple servers under Chef management. The one thing that has made management difficult is that by default during a Chef run ohai returns 127.0.0.1 as the default IP address which means I cannot run knife to execute commands from my workstation.
-
February 19 2015
What to do when your website is hacked/exploited
So your website has been "hacked"? You load your website in your browser, and are redirected to some spammers website, or maybe you google'd yourself (naughty), and found a few thousand indexed pages for knock off prada gear? Ok, so how do you fix this, and more importantly, how do you learn how they did it so you can defend against it later.
-
July 13 2014
Setup Development Environment with Vagrant & Chef
I use Chef to manage and provision new staging and production servers in our company. It takes a lot of the headache out of managing multiple servers and allows me to fire up new web & data servers for our projects with ease. I have several cookbooks that I use to configure servers and to setup/configure websites. In a nutshell, it's rad, and website deployments have never been easier.
-
July 12 2014
Trying to Troubleshoot extremely high MySQL CPU Usage
MySQL CPU usage was spiking upwards of 1000%. Load average was around 50-60. I could not SSH into the machine though, not immediately.
-
July 10 2014
Securing Git repository from accidental exposure using Chef
It was brought to my attention at the office that a few of our recently launched websites had publicly exposed .git repository information. Unscrupulous users could use the exposed data to pull down the entire commit history, giving them unfiltered access to what is basically the blueprint for the website.
- April 2024
- March 2024
- November 2023
- September 2023
- April 2023
- March 2023
- February 2023
- November 2022
- September 2022
- August 2022
- February 2022
- March 2021
- December 2020
- December 2019
- August 2019
- April 2018
- February 2018
- January 2018
- July 2017
- December 2016
- October 2016
- September 2016
- June 2016
- May 2016
- February 2016
- June 2015
- May 2015
- April 2015
- February 2015
- September 2014
- July 2014