Skip to content

Instantly share code, notes, and snippets.


Luuk Sommers luuksommers

View GitHub Profile
luuksommers / Sxa.Patch.Core.config
Created Oct 25, 2018
Patch default core name of sxa in solr
View Sxa.Patch.Core.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="" xmlns:set=""
xmlns:role="" xmlns:search="">
<sitecore search:require="Solr">
<configuration type="Sitecore.ContentSearch.ContentSearchConfiguration, Sitecore.ContentSearch">
<indexes hint="list:AddIndex">
<index id="sitecore_sxa_master_index">
<param desc="core">{othername}_sxa_master_index</param>
luuksommers / transform-xml.ps1
Created May 25, 2018 — forked from sayedihashimi/transform-xml.ps1
Script which can be used to transform an XML file using XDT. All you need to do is download the script and call it. The script will download the files it needs to run.
View transform-xml.ps1
You can use this script to easly transform any XML file using XDT.
To use this script you can just save it locally and execute it. The script
will download it's dependencies automatically.
luuksommers / gist:7181864
Created Oct 27, 2013
Monitor IP changes with Python and Pushover
View gist:7181864
import re
import os
import uuid
import json
import socket
import urllib, urllib2
import time
def get_current_ip():
req = urllib2.Request('')
luuksommers / MemoryMapAccessor.cs
Created Mar 6, 2015
Custom MemoryMapAccessor
View MemoryMapAccessor.cs
public unsafe class MemoryMapAccessor : IDisposable
const long ChunkSize = 1 << 20; // 1MByte
const long ChunkSizeModMask = ChunkSize - 1; // mask for taking modulo
private FileInfo fi;
private long _size; // the file size in bytes
private long _chunkCount; // number of anticipated chunks
private bool[] _chunkLoaded = null;
You can’t perform that action at this time.