Skip to content

Instantly share code, notes, and snippets.

View EricRohlfs's full-sized avatar

Eric Rohlfs EricRohlfs

View GitHub Profile
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
listen 80;
server_name jira.example.com;
access_log off;
return 301 https://$server_name$request_uri;
}
# /etc/nginx/conf.d/jira.conf
server {
'use strict';
(function() {
var mod = angular.module("App.services", []);
//register other services here...
/* pubsub - based on https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js*/
mod.factory('pubsub', function() {
var cache = {};
@EricRohlfs
EricRohlfs / LastInWinsReplicationConflictResolver.cs
Created August 16, 2012 02:00 — forked from jtbennett/LastInWinsReplicationConflictResolver.cs
RavenDB LastInWinsReplicationConflictResolver
using System;
using System.Linq;
using NLog;
using Raven.Abstractions.Data;
using Raven.Bundles.Replication;
using Raven.Bundles.Replication.Plugins;
using Raven.Json.Linq;
namespace MyRavenReplicationBundle
{