Skip to content

Instantly share code, notes, and snippets.

View jameshirka's full-sized avatar

James Hirka jameshirka

  • Sydney, Australia
View GitHub Profile
jameshirka / sessionabandon.aspx
Created March 31, 2017 01:46
A quick way to drop your session in sitecore to write to xDB
<%@ Page Language="C#" AutoEventWireup="true" %>
<script runat="server">
// TODO: to enable the page, set enableUnlockButton = true;
private bool enableUnlockButton = true;
protected void Page_Load(object sender, EventArgs e)
jameshirka / gupfile-CI.js
Created September 30, 2016 05:49
A gulp file I used to do CI with a habitat based website.
var gulp = require("gulp");
var gutil = require("gulp-util");
var foreach = require("gulp-foreach");
var rimrafDir = require("rimraf");
var rimraf = require("gulp-rimraf");
var runSequence = require("run-sequence");
var fs = require("fs");
var path = require("path");
var xmlpoke = require("xmlpoke");
var config = require("./gulpfile.js").config;