Skip to content

Instantly share code, notes, and snippets.

Avatar

Håkan Canberger HCanber

  • Stockholm, Sweden
View GitHub Profile
@HCanber
HCanber / README.md
Last active Nov 23, 2021
How to run Watchtower on Home Assistant
View README.md

Background

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
HCanber / Sinopia.md
Last active Apr 21, 2018
Host Sinopia in IIS on Windows
View Sinopia.md

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
HCanber / MoodActor.cs
Created Sep 15, 2014
Better FSM spec for Akka.NET
View MoodActor.cs
using System;
using Akka.Event;
namespace AkkaTestDemo
{
public enum MoodStates
{
Neutral,
Happy,
Angry
@HCanber
HCanber / ConsoleApp.cs
Last active Dec 11, 2015
Nancy running on the Owin pipeline using HttpListener
View ConsoleApp.cs
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
HCanber / program.cs
Created Aug 31, 2011
Console app running an OWIN Hello World application on Kayak
View program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using Gate;
using Gate.Kayak;
using Kayak;
namespace OwinHelloWorld