Author Archives: Kris Law

Kris is a technomadic Cloud / DevOps / Systems consultant. Do you need help with a project? Go to http://krislaw.us and check out his services.

Simple command to show or hide hidden files on Mac OS X

If you have ever come across a need to have Mac OS X show the files starting with a dot (.) in your GUI, you may have found the command to do it, only to forget it later. Instead of remembering the command, why not just create a logical shortcut that does the job for you? In my case, I have created two new commands Read More →

Getting Docker to Work with Mac OS X Yosemite

I use Docker for some personal and work related projects. Docker has always worked great for me until I upgraded my Mac operating system from Mavericks to Yosemite. Once I upgraded to Yosemite, despite having Docker configured to work properly, the Docker command line couldn’t connect to the boot2docker vm that is required in order to run Docker on OS X. I could use `boot2docker Read More →

OS X Mavericks: Pause a Quicktime Screen Recording

If you are a user of OS X Mavericks and use Quicktime to record screencasts and whatnot, you may have noticed that Quicktime appears to no longer have the option to pause your recording. The truth is that the functionality is still there, but it is just very well hidden. During your recording, if you would like to pause the recording, follow these steps: 1) Read More →

One Liner: Check Cron Jobs for All Users on a *nix Server

If you are ever in a situation where you are asked to find out whether or not a server is being used for anything important, some of the first things you would want to check is whether or not there are active websites, databases and automated tasks. Automated tasks often times are run by the Cron daemon on behalf of a user on the server. Read More →

Full MySQL Search & Replace in All Databases and Tables

If you get into half of the database stuff that I regularly get into, you probably have a need to replace a specific string, such as a URL, very often – especially if you are cloning databases for use with WordPress. Sure, there are a lot of plugins or programs out there which do the same thing, but most of them avoid three-dimensional arrays and Read More →

How to Exclude Specific Databases from an –all-databases MySQL Dump

There may come a time where you need to make a complete database dump on your MySQL server, yet for whatever reason, you need to exclude databases. In my case, I needed to exclude a certain database so that when I combined multiple databases into one, another database’s tables didn’t get overwritten during the conversion. If you’re familiar with the grep command and piping, you Read More →

Convert WordPress Multi-DB back to Single DB

If you have used the WPMU Multi-DB plugin to fragment your databases from a single instance to 16 or more databases, there may come a time where you need to merge all of those databases back into one. In my case, I want to be able to use Backup Buddy to backup and migrate WordPress blogs. Here are the steps on how to accomplish this Read More →

How to Move or Clone a Single Site or Multi Site WordPress Installation

If you ever have the need to move a WordPress site or a network of WordPress sites to a new server, it can be an outright frustrating task due to all of the settings and data that get accumulated over time. This article is written to be a quick reference for this seemingly daunting task. Eventually I may turn this article into a script to Read More →

Install Homebrew & Ruby on Mac OSX Lion

The purpose of this article is to help you configure Mac OSX so that it has a package manager (similar to apt-get, YUM, Pacman or Portage on Linux distributions), and to update you to the latest version of Ruby (1.9.3 at the time of this writing). Currently, Mac OSX Lion 10.7.4 has Ruby version 1.8.7 which is slightly out of date. Installing Homebrew Homebrew is Read More →

Importing Images Into WordPress from SquareSpace

This article is a continuation of a previous article that I wrote titled Migrating Blog Content and Assets from SquareSpace to WordPress. That article showed you how to actually get the content of the blogs from SquareSpace into WordPress. This article show you how to get the files and images. Install Firefox and the DownThemAll Extension There is an extension for the Firefox Browser called Read More →

Post Navigation