Skip to content

Instantly share code, notes, and snippets.

View GetEventStoreSubscriptionDispatcher.cs
public class GetEventStoreSubscriptionDispatcher
{
private const string EventClrTypeHeader = "EventClrTypeName";
private readonly IBus bus;
private readonly IEventStoreConnection eventStoreConnection;
private readonly MongoDatabase mongoDatabase;
private static readonly JsonSerializerSettings SerializerSettings;
static GetEventStoreSubscriptionDispatcher()
{
@dnauck
dnauck / StringExtensions.cs
Created Jun 19, 2015
Creates and returns a deterministic GUID from the input string
View StringExtensions.cs
using System;
using System.Text;
namespace Test
{
public static class StringExtensions
{
/// <summary>
/// Creates and returns a deterministic <see cref="Guid"/> from the input string.
/// This extension method could be used to build a <see cref="Guid"/> from a natural
@dnauck
dnauck / gist:ac9b1e7a991a0868a92d
Last active Oct 16, 2015
Neo4j Graph Gist example
View gist:ac9b1e7a991a0868a92d
== Neo4j Graph Gist Example
Some application to server relation test from http://stackoverflow.com/q/28805075/1522061
=== Setup
//setup
[source,cypher]
----
CREATE
@dnauck
dnauck / pfsense.grok
Created Dec 1, 2016 — forked from bzed/pfsense.grok
Logstash pfsense pattern
View pfsense.grok
# GROK match pattern for logstash.conf filter: %{PFSENSE_LOG_DATA}%{PFSENSE_IP_SPECIFIC_DATA}%{PFSENSE_IP_DATA}%{PFSENSE_PROTOCOL_DATA}
# GROK Custom Patterns (add to patterns directory and reference in GROK filter for pfSense events):
# GROK Patterns for pfSense 2.2 Logging Format
#
# Created 27 Jan 2015 by J. Pisano (Handles TCP, UDP, and ICMP log entries)
# Edited 14 Feb 2015 by E. Paul
# Edited 10 Mar 2015 by Bernd Zeimetz <bernd@bzed.de>
# taken from https://gist.github.com/elijahpaul/f5f32d4e914dcb7fedd2
View gist:ebe10acd6703f2cd79d5c815866c69b4
{
"extractors": [
{
"condition_type": "regex",
"condition_value": "^filterlog:.*,(in|out),4,.*",
"converters": [],
"cursor_strategy": "copy",
"extractor_config": {
"index": 17,
"split_by": ","
View gist:40af5dfc12f2c5ac0cc0dd0ff4d10ab9
Error:
FS3031: FSC(0,0): The type provider 'C:\Dev\Fii\packages\FSharp.Configuration\lib\net46\FSharp.Configuration.dll' reported an error: Assembly attribute 'TypeProviderAssemblyAttribute' refers to a designer assembly 'FSharp.Configuration' which cannot be loaded or doesn't exist. Could not load file or assembly 'FSharp.Core, Version=4.4.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
.NET 4.6.2 F# project, handled by Paket, FSharp.Core 4.1.17, redirects forced, FSharp.Configuration 1.2
NuGet Package "FSharp.Configuration" 1.2 is missing a dependency on FSHarp.Core?!
View Traefik-Helm.yml
acme.challengeType=http-01
acme.email=hostmaster@domain.tld
acme.enabled=true
acme.staging=false
acme.logging=true
acme.persistence.enabled=true
acme.persistence.size=1Gi
acme.persistence.storageClass=longhorn
dashboard.domain=traefik.clusterXY.domain.tld
dashboard.enabled=true