Skip to content

Instantly share code, notes, and snippets.

View kevinobee's full-sized avatar

Kevin Obee kevinobee

  • Canterbury, UK
  • 09:24 (UTC +01:00)
View GitHub Profile
@kevinobee
kevinobee / Rebuilding-my-Developer-Platform.md
Last active August 2, 2016 00:27
Rebuilding my Developer OS for the Last Time!

Rebuilding my Developer Platform - For the Last Time!

I have finished enough of a ground-up rebuild of a developer machine to take stock.

The rebuild process went something like this:

Step 1 - Start long running installation

Step 2 - Wait for installation to complete

@kevinobee
kevinobee / Global.asax
Created November 12, 2013 09:46
Dependency Injection with Sitecore
<%@Application Language='C#' Inherits="Website.Global" CodeBehind="Global.asax.cs" %>
using System;
using Mvc.Infrastructure;
using Mvc.Infrastructure.Sitecore.Events;
namespace Mvc.Website.layouts.Event_Sublayouts
{
public partial class Sample_Event_Consumer : System.Web.UI.UserControl, ISubscriber<FooHappened>
{
// private EventHandler m_handler;
@kevinobee
kevinobee / choco-list-lo-i.md
Last active June 19, 2017 11:52
Chocolatey list local packages
C:\WINDOWS\system32>choco list -lo -i

Chocolatey v0.10.3
7zip 16.02.0.20160811
7zip.install 16.02.0.20160811
chocolatey 0.10.3
curl 7.28.1
DotNet4.5 4.5.20120822
DotNet4.5.2 4.5.2.20140902
@kevinobee
kevinobee / Get-FileEncoding.ps1
Created September 7, 2017 13:28
Get-FileEncoding
function Get-FileEncoding
{
[CmdletBinding()] Param (
[Parameter(Mandatory = $True, ValueFromPipelineByPropertyName = $True)] [string]$Path
)
[byte[]]$byte = get-content -Encoding byte -ReadCount 4 -TotalCount 4 -Path $Path
@kevinobee
kevinobee / README.md
Last active January 5, 2020 09:20 — forked from lmeyer/base
Boxstarter
@kevinobee
kevinobee / SimpleEventAggregator.cs
Created October 22, 2012 12:29
SimpleEventAggregator
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace Mvc.Infrastructure.Sitecore.Events
{
public class SimpleEventAggregator : IEventAggregator
{
private readonly Dictionary<Type, List<WeakReference>> _eventSubscriberLists =
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,