Skip to content

Instantly share code, notes, and snippets.

Martin lankymart

Block or report user

Report or block lankymart

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
lankymart / Log4NetLogger.cs
Last active Sep 24, 2019
Log4Net Implementation for the MailKit IProtocolLogger
View Log4NetLogger.cs
using log4net;
using log4net.Config;
using MailKit;
using System;
using System.Text;
public class Log4NetLogger : IProtocolLogger
static readonly string clientPrefix = "C:";
static readonly string serverPrefix = "S:";
lankymart / restsharp.deserializer.cs
Created Nov 9, 2017
RESTSharp Deserialize JSON properties with dots in the name
View restsharp.deserializer.cs
// Create a deserialiser based off JsonDeserializer
public class JsonComplexDeserializer : IDeserializer
public string RootElement { get; set; }
public string Namespace { get; set; }
public string DateFormat { get; set; }
public CultureInfo Culture { get; set; }
lankymart / IIS Website
Created Feb 22, 2017
Recommendations for Setting up Websites in IIS
View IIS Website

Recommendations for Setting up Websites in IIS

Things to consider while setting up IIS websites

  • Anonymous Access Account
  • Application Pool
  • NTFS Permissions

Setting up an Anonymous Account

View puny.asp
' *********************************************************************
' ** The author of this code makes no guarantees and is not **
' ** responsible for any damage resulting from its use. **
' ** You may modify the code for your own use in any way you like, **
' ** but it may only be distributed in its original form. **
' ** The VBScript punycode conversion functions in this code is **
' ** derived from the sample C code in RFC 3492. **
' ** Author: Jesper G. Høy - JH Software ApS - **
lankymart /
Last active Sep 24, 2019
FancyBox2 Confirm Dialog Box

FancyBox2 Confirm Dialog Box

Single callback approach to implementing a Confirmation Dialog Box using FancyBox2


fancyconfirm("Do you wish to continue?"
  , { modal: true }
  , function(resp) { 
You can’t perform that action at this time.