Month: February 2018

  • Mac OS Terminal Shortcut for “ls -lGaf”

    Mac OS Terminal Shortcut for “ls -lGaf”

    On Ubuntu, I've always used "ll" to quickly get a list of folders/files from a directory.  This quick shortcut isn't built into iTerm for Mac.  Add the following to your ~/.bash_profile

    alias ll='ls -lGaf'

    What does this do?

    • List folders & files.
    • List hidden files.
    • Sorts the output and disregard case-sensitivity.
  • Link to Existing MySQL container from Docker Compose

    Link to Existing MySQL container from Docker Compose

    About

    I’ve been creating multiple docker-compose.yml file.  I’m starting to have a long list of containers for each WordPress project that I create.  Each time I create a new docker-compose.yml for each WordPress project, 2 containers are created (WordPress and a MySQL container).

    What I want to achieve is this:

    • A separate container for each WordPress environment.
    • Have a single MySQL container that will be the centralization for all WordPress environments.

    I’ve originally created a post about creating a docker-compose.yml for a WordPress dev environment.  But that creates a WordPress + MySQL paired network and container setup.

    Solution

    Here’s an example of the solution I’ve created.  Essentially, I’ve added an “external_links” section that references my dev DB called “db-mysql”

    In my “docker-compose.yml”, under the WordPress service, I’ve added:

    
    
    network_mode: bridge

    This will stop docker-compose from creating a new network. To learn more about it, click here to visit the official documentation from Docker.

    References

  • WordPress Assets Loaded from Production

    WordPress Assets Loaded from Production

    The following code snippets will let you load the production version of /wp-content/uploads to your local development computer.

    The order of placement matters so ensure this goes to the top (above the line that processes your PHP scripts).

     

  • Intra Oral Cameras using StarTech SVideo Walkthrough

    Intra Oral Cameras using StarTech SVideo Walkthrough

    I’ve ran into a BSOD (Blue Screen of Death) when attempting to utilize an Intra Oral camera using StarTech SVideo.

    I’ve detailed the steps on how to possibly fix this issue.

    Intra Oral Cameras using StarTech SVideo