Skip to content

Instantly share code, notes, and snippets.

@fpintos
fpintos / CustomRules.js
Created July 27, 2018 16:59
Fiddler Script to automatically decode OWA's x-owa-urlpostdata
import System;
import System.Windows.Forms;
import Fiddler;
// INTRODUCTION
//
// Well, hello there!
//
// Don't be scared! :-)
//
@fpintos
fpintos / EWS.PublicFolderCalendar.linq
Created August 31, 2018 20:48
LinqPad script that queries public folders and shows the calendar items on the 1st calendar public folder it finds.
<Query Kind="Statements">
<Reference>&lt;RuntimeDirectory&gt;\Microsoft.VisualBasic.dll</Reference>
<Reference>&lt;RuntimeDirectory&gt;\System.Windows.Forms.dll</Reference>
<NuGetReference>Microsoft.Exchange.WebServices</NuGetReference>
<NuGetReference>Microsoft.IdentityModel.Clients.ActiveDirectory</NuGetReference>
<Namespace>Microsoft.Exchange.WebServices.Auth.Validation</Namespace>
<Namespace>Microsoft.Exchange.WebServices.Autodiscover</Namespace>
<Namespace>Microsoft.Exchange.WebServices.Data</Namespace>
<Namespace>Microsoft.IdentityModel.Clients.ActiveDirectory</Namespace>
<Namespace>Microsoft.IdentityModel.Clients.ActiveDirectory.Internal</Namespace>
@fpintos
fpintos / LowercasePropertyJsonReaderFactory.cs
Created August 31, 2018 21:23
Microsoft.OData: A factory of JSON readers that report all properties with an initial lowercase.
using System.IO;
using System.Web.OData.Builder;
using Microsoft.OData.Json;
/// <summary>
/// A factory of JSON readers that report all properties with an initial lowercase.
/// This can be used by an ODATA service to accept payloads with mixed/incorrect case in property names.
/// Install it as the default IJsonReaderFactory in the service startup with this, given the IContainerBuilder builder,
/// ie, in the callback of MapODataServiceRoute:
/// var defaultServices = builder.BuildContainer();
@fpintos
fpintos / SetDependencyNameProcessor.cs
Created July 6, 2017 23:14
An Application Insights telemetry processor that updates the Name of a DependencyTelemetry with the value of a property found in its Properties. Useful for making it easy to distinguish calls to SOAP web services, such as EWS.
// ---------------------------------------------------------------------------
// <copyright file="SetDependencyNameProcessor.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------
namespace AppInsightsComponents
{
using System.Diagnostics;
@fpintos
fpintos / Luke.md
Created April 20, 2019 22:51
Luke PBE Questions

Luke

Chapter 1

  1. (4pts) According to Luke 1:1, fill in the blank:
    Inasmuch as many have taken in _______to set in _____ a ______ of those things which have been _______ among us,

    • hand, order, narrative, fulfilled
  2. (1pts) According to Luke 1:1, Whose hand was with Zacharias?

  • The hand of the Lord
@fpintos
fpintos / dateFormatsByLanguage.json
Created May 20, 2019 15:46
List of supported date & time formats by language in Windows
{
"Invariant Language (Invariant Country)": [
"MM/dd/yyyy",
"yyyy-MM-dd"
],
"Afar": [
"dd/MM/yyyy",
"dd/MM/yy",
"dd-MMM-yyyy"
],
@fpintos
fpintos / OwaFormatStrings.md
Last active September 29, 2021 17:47
OWA Format Strings

dateTimeFormats.json

These localized strings allows owa-datetime to handle languages that require special formatting when showing individual parts of a date.

DateFormat and TimeFormat Settings

The date and time formats in the user's settings provide several pieces of information about how dates should be formatted.