Skip to content

Instantly share code, notes, and snippets.

View danbarua's full-sized avatar

Dan Barua danbarua

  • GSK
  • United Kingdom
View GitHub Profile
anonymous
anonymous / dontfeedthebeast.md
Created January 14, 2018 12:34
Don’t Feed the Beast – the Great Recruitment Agency Infestation

Don’t Feed the Beast – the Great Recruitment Agency Infestation

“Don’t move to that London” warned my northern grandfather once. “It’s full of spivs”.

The Oxford Dictionary (somewhat chauvinistically) defines a spiv as:

A man, typically a flashy dresser, who makes a living by disreputable dealings

“But I work in IT” I told him. “engineers aren’t like that”.

public static class AzureConManagerSqlPersistenceWireupExtensions
{
public static SqlPersistenceWireup UseInAzureConfiguredSqlPersistence(this Wireup wireup, string connectionName)
{
var factory = new AzureConfigurationConnectionFactory(connectionName);
return new SqlPersistenceWireup(wireup, factory);
}
}
public class AzureConfigurationConnectionFactory : ConfigurationConnectionFactory
@seesharper
seesharper / Usage
Last active August 29, 2015 14:23
Migrate MsTest files top Xunit
scriptcs .\migrate.csx -- directoryContainingMsTestFiles
@damianh
damianh / LibLogMSOwinLogging.cs
Last active August 1, 2017 16:23
Using LibLog with Microsoft.Owin.Logging
namespace LigLogOwin
{
using System;
using System.Diagnostics;
using LibLogOwin.Logging;
using Microsoft.Owin.Logging;
using Owin;
public class Startup
{
@dealproc
dealproc / DateTimeOffsetConvention.cs
Last active March 1, 2016 14:05
Uses DateTimeOffset to Timestamp with Timezone in Postgres from Npgsql
namespace Your.Namespace.Here {
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.AcceptanceCriteria;
using FluentNHibernate.Conventions.Inspections;
using FluentNHibernate.Conventions.Instances;
using System;
class DateTimeOffsetConvention : IPropertyConvention, IPropertyConventionAcceptance {
public void Accept(IAcceptanceCriteria<IPropertyInspector> criteria) {
criteria.Expect(x => x.Type == typeof(DateTimeOffset));
@yetithefoot
yetithefoot / stuns
Last active April 2, 2024 10:49 — forked from zziuni/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@trbngr
trbngr / EventStoreService.cs
Last active July 4, 2017 21:29
EventStore as a windows service w/ TopShelf
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
namespace EventStoreService
{
public class EventStoreService
{
@mythz
mythz / Test_Throughput.cs
Created October 12, 2012 21:45
Test Redis Throughput
using System;
using System.Diagnostics;
using NUnit.Framework;
using ServiceStack.Common;
using ServiceStack.Text;
namespace ServiceStack.Redis.Tests
{
[Explicit("Diagnostic only Integration Test")]
[TestFixture]
@jxson
jxson / README.md
Created February 10, 2012 00:18
README.md template

Synopsis

At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)

Code Example

Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation