Two simple scripts to backup and restore CosmosDB

At my current company, we use Azure to manage our cloud infrastructure and they provide a lot of great resources and cloud solutions. However, creating a backup from a MongoDB based CosmosDB instance isn't very straight forward (if it is I missed it and please tell me where to look :). If you have a SQL instance easy peasy just go the export tab within in the DB, set a destination, provide login credentials and boom done. NoSql not so much. This is a quick and simple post on the two commands you can run to grab the data from your remote CosmosDB instance (running mongo) and then restore it to another/new CosmosDB instance The problem We needed to quickly…

Exposing Home Assistant to the world

This is the second post in a series of posts about Home Assistant and Alexa. In my previous post - Home Automation with Home Assistant and Alexa I discussed how to wire up your Raspberry Pi with the open source IOT platform Home Assistant to work with Alexa. This post will cover: Upgrading Hass.io to take advantage of the new ADD-ON STORE Adding DNS and port forwarding to make Home Assistant publicly accessible Upgrade Hass.io Visit the Hassio Installation site to download the current Hass.io image. Once you flash the image onto your micro sd (from your computer) and boot up your Pi, it can take up to 20 minutes to get rocking. After a successful boot,…

Deploying a Ghost Blog on AWS with Cloudfront

Want to host your own blog on AWS? Don't want to use Wordpress? The Ghost platform is easy to use and comes with a lot right out of the box. This post will walk you through how to spin up a Ghost blog using: An AWS EC2 instance A Ghost Bitnami AMI CloudFront (for caching) Route 53 This post assumes that you already have an AWS account Launching the Ghost AMI Find the image on the AWS marketplace, I used the Bitnami image, follow the onscreen instructions to first subscribe to the image and then launch the EC2 right from the same screens. Or you can go to the AMI tab within EC2 and launch from there. When launching your…

Home Automation with Home Assistant and Alexa

Do you have an Alexa and all you do is ask her to set a timer? It's time to put her skills to good use. Yep, that's right let's set up your house so you can say things like "Alexa, turn on the bedroom lights". This blog post will walk you through how to bring Alexa to life and take command of your home. There are plenty of gadgets and gizmos you can buy to set up your home with ease, but what would be the fun in that. This post outlines all the necessary things you need to get Alexa to turn on your lights. Throughout this tutorial, I also include links to helpful articles because without these I…

My attitude as described by a javascript function

function happy(today){ const coding="me"+"computer"+"coffee"+"creatingBetterExperiences"; if(today === coding){ alert("It's great day!"); } } happy(today);…