Skip to content

Instantly share code, notes, and snippets.

View jmyrland's full-sized avatar

Jørn A. Myrland jmyrland

View GitHub Profile
@jmyrland
jmyrland / ZigZag-edges.markdown
Created March 13, 2014 12:15
A Pen by Jørn A. Myrland.
@jmyrland
jmyrland / Falling-squares.markdown
Created March 13, 2014 13:02
A Pen by Jørn A. Myrland.
@jmyrland
jmyrland / .readme.md
Created March 3, 2015 09:41
Simple exception logging for ASP.NET MVC

Simple exception logging for ASP.NET MVC

  1. Add the ExceptionUtility.cs and ErrorHandlerAttribute.cs
  2. Add the ErrorHandlerAttribute to your base controller to start logging errors. Like:
  [ErrorHandler]
  public class BaseController : Controller
  {
 // ...
@jmyrland
jmyrland / Dockerfile
Created May 15, 2015 13:46
Docker mounted volume removes node_modules
# Set the base image to stable version of node
FROM node:0.12.2
# Install nodemon
RUN npm install -g nodemon
# Provides cached layer for node_modules
COPY package.json /tmp/package.json
RUN cd /tmp && npm install --production
RUN mkdir -p /app && cp -a /tmp/node_modules /app/