Skip to content

Instantly share code, notes, and snippets.

Maarten Balliauw maartenba

Block or report user

Report or block maartenba

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
maartenba / BatchCatalogProcessor.cs
Created Jul 1, 2019
NuGet batched catalog processor
View BatchCatalogProcessor.cs
public class BatchCatalogProcessor
: ICatalogProcessor
private const string CatalogResourceType = "Catalog/3.0.0";
private const int BatchSize = 12; // TODO: make this configurable
private readonly ICatalogLeafProcessor _leafProcessor;
private readonly ICatalogClient _client;
private readonly ICursor _cursor;
private readonly ILogger<BatchCatalogProcessor> _logger;
private readonly CatalogProcessorSettings _settings;
maartenba / Generate CSharp.groovy
Created Dec 3, 2018
Rider generate C# from database
View Generate CSharp.groovy
import com.intellij.database.model.DasTable
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
* Available context bindings:
* SELECTION Iterable<DasObject>
* PROJECT project
* FILES files helper
maartenba / publish.pubxml
Created Jul 11, 2018
Rider - .pubxml for deployment to Azure Web Apps
View publish.pubxml
<?xml version="1.0" encoding="utf-8"?>
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit
<Project ToolsVersion="4.0" xmlns="">
maartenba / Transform-Xslt.ps1
Created Sep 22, 2017
ReSharper command line tools XSLT
View Transform-Xslt.ps1
param ($xml, $xsl, $output)
if (-not $xml -or -not $xsl -or -not $output)
Write-Host "& .\Transform-Xslt.ps1 [-xml] xml-input [-xsl] xsl-input [-output] transform-output"
trap [Exception]

Keybase proof

I hereby claim:

  • I am maartenba on github.
  • I am maartenba ( on keybase.
  • I have a public key ASAN0rTRGCC1fneJiGtoNylp9QheKdUJNd6-psu_Mw7X_go

To claim this, I am signing this object:

maartenba / Program.cs
Last active Jun 6, 2017
C# Regular Expression Match deconstruction
View Program.cs
class Program
static void Main(string[] args)
var regex = new Regex(@"(\w+) (\d+)");
var input = "John 9731879";
var (_, name, phone) = regex.Match(input);
maartenba / inspectcode.xslt
Last active Feb 25, 2019
R# InspectCode XSLT
View inspectcode.xslt
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:key name="ISSUETYPES" match="/Report/Issues/Project/Issue" use="@TypeId"/>
<xsl:output method="html" indent="yes"/>
<xsl:template match="/" name="TopLevelReport">
<title>Resharper InspectCode Report</title>
maartenba / KeyVaultConfigSystem.cs
Created May 31, 2016
Override .NET's source for AppSettings (hacky, don't use this at home)
View KeyVaultConfigSystem.cs
public sealed class KeyVaultConfigSystem
: IInternalConfigSystem
private const string AppSettingsKey = "appSettings";
private readonly IInternalConfigSystem _internalConfigSystem;
private object _appSettings;
private KeyVaultConfigSystem(IInternalConfigSystem internalConfigSystem)
maartenba / DomainTemplateRoute - GetVirtualPath
Last active Oct 30, 2019
ASP.NET MVC 6 / ASP.NET 5 Domain Routing + Tenant Middleware
View DomainTemplateRoute - GetVirtualPath
public string GetVirtualPath(VirtualPathContext context)
foreach (var matcherParameter in _matcher.Template.Parameters)
context.Values.Remove(matcherParameter.Name); // make sure none of the domain-placeholders are appended as query string parameters
return _innerRoute.GetVirtualPath(context);
maartenba / Tessel syntax description for WebStorm Command Line Tools
Created Jul 30, 2014
Tessel syntax description for WebStorm Command Line Tools. Copy to C:\Users\<your username>\.WebStorm8\config\commandlinetools\Custom_tessel.xml.
View Tessel syntax description for WebStorm Command Line Tools
<?xml version="1.0" encoding="UTF-8"?>
<framework xmlns:xsi="" xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.3.xsd"
name="Custom_tessel" invoke="C:\Users\Maarten\AppData\Roaming\npm\tessel.cmd" alias="tessel" enabled="true" version="2">
<help><![CDATA[tessel command line]]></help>
<h2>Display available commands</h2>
You can’t perform that action at this time.