Skip to content

Instantly share code, notes, and snippets.

View joshrobb's full-sized avatar

Josh Robb joshrobb

  • Auckland, New Zealand
View GitHub Profile
using System;
using ExtensionMethods;
namespace Events
{
public static class DomainEvents
{
private static IEventHandlerResolver _handlerResolver;
public static bool IsInitialised()
using System;
using System.Web.Mvc;
using V2.Domain.Services;
using V2.Domain.Services.Messages;
using MvcContrib.Attributes;
using System.Linq;
namespace V2.Web.Controllers
{
public class RegistrationController : ControllerBase
using System;
using ExtensionMethods;
namespace Events
{
public static class DomainEvents
{
private static IEventHandlerResolver _handlerResolver;
public static bool IsInitialised()
using NUnit.Framework;
using System;
namespace Castle.Windsor.Tests.SubContainers
{
[TestFixture]
public class ChildContainerSingleResolutionTestCase
{
private IWindsorContainer parentContainer;
private IWindsorContainer childContainer;
if [ `ssh $MY_HOST ps aux | awk '{sum+=$6}; END {print sum}'` -gt $RAM_LIMIT ]; then growlnotify -m "Some message"; fi ;
@joshrobb
joshrobb / platformstats.linqpad
Last active August 29, 2015 14:16
Team Stats
var github = new GitHubClient(new ProductHeaderValue("PushpayTech"));
var tokenAuth = new Credentials("XXX");
github.Credentials = tokenAuth;
var releases = await github.Release.GetAll("pushpay","pushpay");
var prfilter = new PullRequestRequest {
State = ItemState.All
};
public class LongRunningNHOperation : IDisposable
{
SessionScope session;
int newsessioncount = 250;
Stopwatch stopwatch = Stopwatch.StartNew();
private LongRunningNHOperation() { }
@joshrobb
joshrobb / librato-deploy.ps1
Created November 2, 2014 02:27
Octopus Deploy Annotate Librato
$encoded = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("user@example:apikey" ))
$headers = @{Authorization = "Basic "+$encoded}
if ($OctopusEnvironmentName -eq 'Production') {
$envname = "prod"
} else {
$envname = "qa"
}
#OH yeah - that doesn't work @#$@#$@#$@#$@#$@#$ in PS2
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac;
using Autofac.Features.Indexed;
namespace AutofacStrategyPattern

Keybase proof

I hereby claim:

  • I am joshrobb on github.
  • I am josh_robb (https://keybase.io/josh_robb) on keybase.
  • I have a public key whose fingerprint is DE5E B120 E661 1512 A8AC 4247 1229 F31C 1776 4041

To claim this, I am signing this object: