Skip to content

Instantly share code, notes, and snippets.

View DanTup's full-sized avatar

Danny Tuppeny DanTup

  • Coded Consultants Ltd
  • England, UK
  • 06:24 (UTC +01:00)
  • X @DanTup
View GitHub Profile
@DanTup
DanTup / SyncKilnAndGitHub.ps1
Last active December 14, 2015 20:39
Scripts to sync a GitHub repo to Kiln to allw GitHub contributions without using Git (use Hg on your Kiln repos!).
<#
.SYNOPSIS
Script to sync a GitHub repo to Kiln to allw GitHub contributions without using Git (use Hg on your Kiln repos!).
.DESCRIPTION
Create a branch repo in Kiln specifically for for the GitHub sync and run this PS script periodically (PoSh v3
scheduled jobs make this easy).
Merge the GitHub branch repo (using Hg!) into your main repo periodically, then push back to the GitHub branch
once done. This will be sync'd back to GitHub when the script next runs.
@DanTup
DanTup / StructureMapRepoBug.cs
Created May 7, 2012 15:05
StructureMap SingleImplementationsOfInterface bug
namespace StructureMapBugRepro
{
using System;
using StructureMap;
using StructureMapBugRepo.NS1;
using StructureMapBugRepo.NS2;
public class Program
{
static void Main(string[] args)
@DanTup
DanTup / VS References Yuml.ps1
Last active October 4, 2015 10:47
Output Visual Studio project references for yuml.me
function Get-ProjectReferences
{
param(
[Parameter(Mandatory)]
[string]$rootFolder,
[string[]]$excludeProjectsContaining
)
dir $rootFolder -Filter *.csproj -Recurse |