Skip to content

Instantly share code, notes, and snippets.

David Ebbo davidebbo

Block or report user

Report or block davidebbo

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
View ARMTemplateWithAuthenticator.json
"$schema": "",
"contentVersion": "",
"parameters": {
"siteName": {
"type": "string"
"hostingPlanName": {
"type": "string"
davidebbo / ManyToMany.ascx.cs
Created Aug 3, 2011
Dynamic Data many to many templates for EF code first
View ManyToMany.ascx.cs
using System;
using System.ComponentModel;
using System.Web.UI;
namespace WebApplication
public partial class ManyToManyField : System.Web.DynamicData.FieldTemplateUserControl
protected override void OnDataBinding(EventArgs e)
davidebbo / gist:1372111
Created Nov 17, 2011
SymbolSource error
View gist:1372111
System.InvalidOperationException: Not supported Content-Type in the response: 'text/html; charset=utf-8'
Response error message:
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""><html xmlns="" xml:lang="en" lang="en"><head><title>Error 500</title><style type="text/css">body {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size: .7em;color:black;background-color: white}
p {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:bold;color:black;margin-top: -5px}
h1 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana","DejaVu Sans",sans-serif;font-weight:normal;font-size:14pt;color:maroon }
View gist:1903977
function Blah(message)
for (var i=0; i<10; i++)
Blah('Hello, world ' + i + '\n');
View gist:2487658
private const string PackageJsonFile = "package.json";
private readonly string[] NodeDetectionFiles = new[] { "server.js", "app.js" };
private const string WebConfigFile = "web.config";
/// <summary>
/// Add a web.config file if we detect a Node site
/// </summary>
private void AddIISNodeConfig(DeploymentContext context)
// If there is a config file already, don't do anything
davidebbo / web.config
Last active Oct 4, 2015
iisnode web.config
View web.config
<?xml version="1.0" encoding="utf-8"?>
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
davidebbo / SaveBody.ashx
Created Oct 12, 2012
Save the body of a request to a temp file
View SaveBody.ashx
<%@ WebHandler Language="C#" Class="Handler" Debug="true" %>
using System;
using System.Web;
using System.IO;
public class Handler : IHttpHandler
public void ProcessRequest(HttpContext context)
View Broken push with Dumb protocol.txt
D:\Development\phillip-haydon\philliptest [master]> git push Azure master
* Couldn't find host in the _netrc file; using defaults
* About to connect() to port 443 (#0)
* Trying * 0x2000718 is at send pipe head!
* Connected to ( port 443 (#0)
* successfully set certificate verify locations:
* CAfile: C:\Users\Phillip\AppData\Local\GitHub\PortableGit_8810fd5c2c79c73adcc73fd0825f3b32fdb816e7/bin/curl-ca-bundle.crt
CApath: none
* Unknown SSL protocol error in connection to
* Expire cleared
View jabbr error
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]
System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0
System.Reflection.Assembly.GetTypes() +118
SimpleAuthentication.Core.ReflectionHelpers.<FindAllTypesOf>b__0(Assembly s) +20
System.Linq.<SelectManyIterator>d__1`2.MoveNext() +293
System.Linq.WhereEnumerableIterator`1.MoveNext() +51
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +452
System.Linq.Enumerable.ToList(IEnumerable`1 source) +70
SimpleAuthentication.Core.ReflectionHelpers.FindAllTypesOf() +291
SimpleAuthentication.Core.AuthenticationProviderFactory.<.cctor>b__d() +61
# ----------------------
# KUDU Deployment Script
# ----------------------
# Helpers
# -------
exitWithMessageOnError () {
You can’t perform that action at this time.