Skip to content

Instantly share code, notes, and snippets.


Darren Ferguson darrenferguson

View GitHub Profile
View gist:b18e62e9809846059be2
class Program
static void Main(string[] args)
string json =
View gist:c6c13c7be26057b01d1d
using System.Configuration;
using Umbraco.Core;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Reflection;
using System.Web.Configuration;
using Newtonsoft.Json;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.SqlSyntax;
View gist:837adee568fd268a92ac
catch (Exception ex)
// Dunno why Current equals null on import but this skips the error
View gist:1a94ed6b374a46e2df86
using RestSharp;
void ContentServicePublished(IPublishingStrategy sender, PublishEventArgs<IContent> e)
foreach (var entity in e.PublishedEntities)
var umbracoHelper = new UmbracoHelper(UmbracoContext.Current);
var url = umbracoHelper.Url(entity.Id, UrlProviderMode.Relative);
var urls = string.Format("{0} or{0}", url);
View gist:7559866bb8a2800e8f36
using System.Linq;
using Examine;
using Umbraco.Core.Persistence;
using Umbraco.Web;
using UmbracoExamine;
namespace Moriyama.PlasterCast.Examine.Indexer
public class FasterInternalIndexer : UmbracoContentIndexer
View VortoPropertyIndexer
using System.Collections.Generic;
using Moriyama.Library.Architecture;
using Newtonsoft.Json;
namespace Application.Search
public class VortoPropertyIndexer
// Somewhere in startup
//ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"].GatheringNodeData += MoriyamaApplicationEventHandlerGatheringNodeData;