Skip to content

Instantly share code, notes, and snippets.

View HCanber's full-sized avatar

Håkan Canberger HCanber

  • Stockholm, Sweden
View GitHub Profile
HCanber /
Last active July 11, 2022 18:48
How to run Watchtower on Home Assistant


In November/December 2020 Home Assistant went into a unhealthy state if Watchtower was found on the host.

It doesn't have to be a running container. It's enough to have a docker image on the host with a tag that starts with (or after the last slash, starts with) watchtower.

Supervisor searches for images that matches a few patterns, and if an image matches, the system is marked as unhealthy and you cannot perform any upgrades.

To fix an unhealthy Home Assistant

If the Supervisor logs (Frontend > Supervisor > System) reports that you have containers that are not supported, you need to remove the images from the host.

HCanber /
Last active April 21, 2018 21:39
Host Sinopia in IIS on Windows

These instructions were written for Windows Server 2012, IIS 8, Node.js 0.12.3, iisnode 0.2.16 and Sinopia 1.3.1

  1. Install IIS
  2. Install iisnode. Make sure you install prerequisites (Url Rewrite Module & node) as explained in the instructions for iisnode
  3. Create a new folder in Explorer where you want to host Sinopia. For example C:\Sinopia. Save package.json, start.js and web.config in this folder.
  4. Create a new site in Internet Information Services Manager. You can name it whatever you want. I'll call it Sinopia in these instructions. Specify the path to where you saved all files and a port number.
  5. Go back to Explorer and give the user that runs the application pool modify rights to the folder you just created. If you've named the new site Sinopia and did not change the app pool, it's running und
HCanber / MoodActor.cs
Created September 15, 2014 13:54
Better FSM spec for Akka.NET
using System;
using Akka.Event;
namespace AkkaTestDemo
public enum MoodStates
HCanber / ConsoleApp.cs
Last active December 11, 2015 23:28
Nancy running on the Owin pipeline using HttpListener
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Owin.Hosting;
using Nancy;
using Nancy.Bootstrapper;
using Nancy.Hosting.Owin;
using Owin;
namespace NancyOwin
HCanber / program.cs
Created August 31, 2011 18:56
Console app running an OWIN Hello World application on Kayak
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using Gate;
using Gate.Kayak;
using Kayak;
namespace OwinHelloWorld