Skip to content

Instantly share code, notes, and snippets.

Luuk Sommers luuksommers

Block or report user

Report or block luuksommers

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luuksommers
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="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"
xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:search="http://www.sitecore.net/xmlconfig/search/">
<sitecore search:require="Solr">
<contentSearch>
<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>
</index>
@luuksommers
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
<#
.SYNOPSIS
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.
#>
[cmdletbinding()]
param(
[Parameter(
Mandatory=$true,
@luuksommers
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;
@luuksommers
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('http://checkip.dyndns.org/')
You can’t perform that action at this time.