Skip to content

Instantly share code, notes, and snippets.

Avatar

Håkan Canberger HCanber

  • Stockholm, Sweden
View GitHub Profile
@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
You can’t perform that action at this time.