Category: Cloud

  • Google Compute Engine Snapshot automation

    Google Compute Engine comes with an incremental snapshot capability. The product doesn’t have a specific automated method to take snapshots and to tidy them up either, but scripting using the gcloud command line is fairly straight forward, once you understand the power of the command line. I have seen many attempts at automating this using…

  • Submit A Post via Front End using Gravity Forms

    The following is a Gravity Form Form, that allows you to submit a post via the front end. It can submit as ‘draft’, ‘pending review’ or even ‘published’. Feel free to try it, and if you include a valid WordPress tip or other news I may even publish it.  

  • jQuery to remove a link and just replace it with anchor text

    Occasionally a WordPress plugin is not templated, so difficult to customise the output, so in these circumstances one solution is to use jQuery to modify the output. Now this is not pure and a bit hacky, as ideally you would change the code that is producing the output.  However the situation is just sometimes that isn’t…

  • 5 minute guide to setup process monitoring with MONIT on Linux

    If you are running a VPS, for a production server, it is very useful to have a process that monitors, and restarts if failed, and notifies you of key processes, like apache, mysql, postfix & ssh. Monit is a free open source tool that does the job. Took me a little while to get my…

  • Adding Swap to Google Compute Engine

    By default Google Compute Engine (Debian) doesn’t come with any swap space.  If you have periodic programs that eat a bit more memory (like my backups do) then instead on just adding more physical memory you can add a swap file. Swaps files are much slower than physical memory, so should be avoided except when…

  • Backing up to gcloud storage from Linux/Virtualmin

    Using Google Cloud Storage as backup for your linux server is inexpensive if you use the nearline storage option. This is cheaper that Amazon Web Services (at the time of writing) The process I use is as follows. Backup locally Create storage bucket / folders, set lifecycle Script to move backups find way to execute…