Skip to content

Instantly share code, notes, and snippets.

@chriseyre2000
chriseyre2000 / _.md
Created February 25, 2014 20:44
Minimal Transform
@chriseyre2000
chriseyre2000 / _.md
Created February 26, 2014 21:35
Line
using AutoMoq;
using Moq;
using NUnit.Framework;
namespace TestLib
{
public interface IFoo
{
string Execute();
}
@chriseyre2000
chriseyre2000 / Support Rota
Created February 28, 2014 13:59
Support Rota Calculator
$day = [DateTime]::Today.AddDays(1)
1..50 | % { $day.AddDays(7 * $_)}
@chriseyre2000
chriseyre2000 / _.md
Created March 4, 2014 22:15
Tributary inlet
<html>
<head>
<meta charset="utf-8" />
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<body>
</body>
</html>
@chriseyre2000
chriseyre2000 / loghelpher.ps1
Created March 5, 2014 21:46
Query WADLogs Helper
$pk = "0" + [DateTime]::UtcNow.AddHours(-1).Ticks
"PartitionKey gt '$pk' and Level lt 4" #This is the last hours warnings and errors
@chriseyre2000
chriseyre2000 / profiler
Created May 13, 2014 21:09
Stackoverflow profiler demo : Install-Package MiniProfiler
using StackExchange.Profiling;
using System;
using System.Threading;
namespace ProfilerTest
{
public class Class1
{
static void Main()
{
@chriseyre2000
chriseyre2000 / a
Created May 20, 2014 19:42
regex parser
Select-String 'shard number (?<num>\d{1,3})' outputlog.txt | %{$_.matches[0].Groups['num'].value} | sort -Unique | measure