Skip to content

Instantly share code, notes, and snippets.

View chrisstraw's full-sized avatar

Chris Straw chrisstraw

  • OuterLimits Technologies, Inc.
  • Plainfield, IN
  • 13:48 (UTC -04:00)
View GitHub Profile
@chrisstraw
chrisstraw / Dockerfile_mssql
Created January 5, 2024 21:58 — forked from pbthorste/Dockerfile_mssql
Docker image with msssql 2022 with full text search enabled
# Docker image with msssql 2022 with full text search enabled
# based on work in: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS
FROM --platform=linux/amd64 ubuntu:focal
# Install prerequistes since it is needed to get repo config for SQL server
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -yq curl apt-transport-https gnupg && \
@chrisstraw
chrisstraw / Age.cs
Created February 15, 2014 15:00 — forked from faisalman/Age.cs
/**
* Calculate Age in C#
* https://gist.github.com/faisalman
*
* Copyright 2012-2013, Faisalman <fyzlman@gmail.com>
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
*/
using System;
public class UnhandledExceptionFilter : ExceptionFilterAttribute {
public override void OnException(HttpActionExecutedContext context) {
Elmah.ErrorLog.GetDefault(HttpContext.Current).Log(new Elmah.Error(context.Exception));
}
}