Skip to content

Instantly share code, notes, and snippets.

View nskerl's full-sized avatar

nathan.skerl nskerl

  • California, USA
View GitHub Profile
@nskerl
nskerl / Startup.cs
Last active August 29, 2015 14:20 — forked from NickCraver/Startup.cs
using System;
using System.Threading.Tasks;
using System.IO;
using System.Text.RegularExpressions;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.Framework.DependencyInjection;
namespace IFTTTEndpoint
{
# the service params (Octo can/should pass these in)
$serviceName = "MyCompany.MyService"
$serviceExe = "MyService.exe"
$fullPath = Join-Path -Path $OctopusPackageDirectoryPath -ChildPath $serviceExe
# resolve service context
$service = Get-Service MyCompany.MyService -ErrorAction SilentlyContinue
if (! $service)
@nskerl
nskerl / RingBuffer in t-sql
Last active December 14, 2015 19:38
RingBuffer in t-sql
/*
-- create utility Number table (just simplifies the initialize below)
if object_id('dbo.Number') is not null
drop table dbo.Number;
go
create table dbo.Number
(
N int not null primary key clustered
);
go