Gutenberg Editor Test

Testing out the new gutenberg editor on WordPress it seems to be working well! It's cool that you can re-arrange content blocks.

The above video is something that My Wife and I put together with the Kids.

WordPress alert when you are on the staging site.

Recently I accidentaly overwrote my Production site when I thought i was on the staging site so after a bit of googling i came up with this solution. If you are on WordPress you can just paste this at the end of your functions.php for your theme. This could also probably be turned into a very simple plugin.

/*Alert on Staging Site*/
$host = $_SERVER['HTTP_HOST'];
if ($host === '') {
    function staging_admin_error_notice() {
        $class = "error";
        $message = "You are on the staging site.";
            echo"<div class=\"$class\"> <p>$message</p></div>";
    add_action( 'admin_notices', 'staging_admin_error_notice' );
/*End Alert on Staging Site*/

Apps and settings I install on a new Ubuntu WSL Install [Updated November 2017]

Much cleaner than my old script! See instructions below.

The Full Process:

  1. Click View Raw
  2. cd /home
  3. cd (your home folder)
  4. wget the raw file url
  5. chmod +x
  6. ./
  7. Unlikely but:
    1. If you receive an error you may have to enable the universe repository.
      1. First, open software center.
      2. Click on ‘edit
      3. Then ‘software sources’
      4. Check the box that says, “Community-maintained free and open-source software (universe).”
      5. If it asks you to reload you can say yes if you want but you will just reload again with the script so i usually just say close.

How to install LinSSID on Ubuntu 12.04

I needed to do a network survey the other day to see if wifi was working as expected and I decided to use my Ubuntu laptop for the purpose, I ran into this handy tool called LinSSID that allows you to do a wireless survey. The reason I am using Ubuntu 12.04 is that I feel that the LTS releases are the most stable and have the broadest install base so that is what I tend to use on my computers.

  1. Install LinSSID from it’s download page.
  2. After it is installed I found that I got an error stating that it could not see any wireless devices so I installed IW by typing the following command into the terminal
    sudo apt-get install iw
  3. I was then able to run LinSSID by typing
    sudo linssid

    in the terminal.

  4. (optional) If you would like to try combining steps 2.1 &3 try
     sudo apt-get install iw && sudo linssid

Let me know in the comments if it works!