Skip to content

Instantly share code, notes, and snippets.

View ThatWilsonNerd's full-sized avatar

Will Wilson ThatWilsonNerd

View GitHub Profile
@ThatWilsonNerd
ThatWilsonNerd / DynamicsCRMLicenses.sql
Last active January 22, 2016 16:54
Query for Dynamics CRM License Keys
USE MSCRM_CONFIG
GO
-- Dynamics CRM 2015
SELECT NvarCharColumn AS CRM2015LicenseKey
FROM ConfigSettingsProperties
WHERE ColumnName = 'LicenseKeyV7RTM'
-- Dynamics CRM 2013
SELECT NvarCharColumn AS CRM2013LicenseKey
@ThatWilsonNerd
ThatWilsonNerd / EntityComparer.cs
Last active August 29, 2015 14:14
Quick IEqualityComparer class to help determine if an EntityCollection object contains an entity with the same id as the provided entity.
using System.Collections.Generic;
using Microsoft.Crm.Sdk;
using Microsoft.Crm.Sdk.Messages;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
namespace PluginUtils
{
class EntityComparer : IEqualityComparer<Entity>
@ThatWilsonNerd
ThatWilsonNerd / fdb_c_api.c
Created November 29, 2014 02:21
FoundationDB C API Example
#define FDB_API_VERSION 20
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include "foundationdb/fdb_c.h"
void checkError(fdb_error_t errorNum)
{