Skip to content

Instantly share code, notes, and snippets.

View davidebbo's full-sized avatar

David Ebbo davidebbo

View GitHub Profile
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string"
},
"hostingPlanName": {
"type": "string"
},
@davidebbo
davidebbo / gist:1372111
Created November 17, 2011 01:38
SymbolSource error
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" 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 }
@davidebbo
davidebbo / gist:1903977
Created February 24, 2012 21:47
Haiku test
function Blah(message)
{
res.write(message);
}
res.writeHead(200);
for (var i=0; i<10; i++)
{
Blah('Hello, world ' + i + '\n');
}
@davidebbo
davidebbo / gist:2487658
Created April 25, 2012 07:12
Node detection
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
davidebbo / SaveBody.ashx
Created October 12, 2012 06:53
Save the body of a request to a temp file
<%@ WebHandler Language="C#" Class="Handler" Debug="true" %>
using System;
using System.Web;
using System.IO;
public class Handler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
D:\Development\phillip-haydon\philliptest [master]> git push Azure master
* Couldn't find host philliptest.scm.azurewebsites.net in the _netrc file; using defaults
* About to connect() to philliptest.scm.azurewebsites.net port 443 (#0)
* Trying 168.62.20.37... * 0x2000718 is at send pipe head!
* Connected to philliptest.scm.azurewebsites.net (168.62.20.37) 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 philliptest.scm.azurewebsites.net:443
* Expire cleared
[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
#!/bin/bash
# ----------------------
# KUDU Deployment Script
# ----------------------
# Helpers
# -------
exitWithMessageOnError () {
@davidebbo
davidebbo / Mono.CSharp.nuspec
Created March 18, 2013 16:21
NuSpec file for the Mono.CSharp NuGet package. To build the package, copy Mono.CSharp.dll into Lib\net40 and run `nuget pack`
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Mono.CSharp</id>
<version>4.0</version>
<authors>Mono development team</authors>
<owners>Mono development team</owners>
<licenseUrl>https://github.com/mono/mono/blob/master/LICENSE</licenseUrl>
<projectUrl>http://www.mono-project.com/CSharp_Compiler</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@davidebbo
davidebbo / Clean deployment.txt
Created May 25, 2016 22:09
Azure Web App Core RC2 git deployment time
2016-05-25T21:37:15.5635616Z,Updating branch 'master'.,49dd01c5-14d2-44bc-a3ec-01d27f67a790,0
2016-05-25T21:37:17.6864000Z,Updating submodules.,40d1f401-978a-4627-8c41-9a1344a5b052,0
2016-05-25T21:37:17.7502393Z,Preparing deployment for commit id '2982dc5a9c'.,d1548d30-1ab3-4edd-be63-6ccb4fdf7381,0
2016-05-25T21:37:18.2678843Z,Generating deployment script.,536c5ae8-0e9c-49a8-bc9f-1ca3de365935,0
2016-05-25T21:37:18.3024806Z,Using the following command to generate deployment script: 'azure site deploymentscript -y --no-dot-deployment -r "D:\home\site\repository" -o "D:\home\site\deployments\tools" --aspNetCore "D:\home\site\repository\src\AspNetCoreRC2" --solutionFile D:\home\site\repository\AspNetCoreRC2.sln'.,,0
2016-05-25T21:37:18.9866566Z,Project file path: .\src\AspNetCoreRC2,,0
2016-05-25T21:37:18.9866566Z,Solution file path: .\AspNetCoreRC2.sln,,0
2016-05-25T21:37:19.0022823Z,Generating deployment script for ASP.NET Core Application,,0
2016-05-25T21:37:19.0179076Z,Generated deployment script files,,