Skip to content

Instantly share code, notes, and snippets.

View ScottGuymer's full-sized avatar

Scott Guymer ScottGuymer

View GitHub Profile
@ScottGuymer
ScottGuymer / RunAllTests.proj
Created February 17, 2014 16:24
MsBuild file to run multiple test projects through mstest and put results into a single file
<Project ToolsVersion="4.0" DefaultTarget="RunTests" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<results_file>./TestResults/results.trx</results_file>
</PropertyGroup>
<PropertyGroup>
<MsTestExePath Condition="'$(MsTestExePath)'==''">C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\MSTest.exe</MsTestExePath>
</PropertyGroup>
@ScottGuymer
ScottGuymer / BundleConfig.vb
Last active August 29, 2015 13:56
IBundleTransform and file reader to allow on the fly compilation of less in .net
Public Module BundleConfig
''' <summary>
''' Registers the bundles.
''' </summary>
''' <param name="bundles">The bundles.</param>
''' <remarks></remarks>
Public Sub RegisterBundles(ByVal bundles As BundleCollection)
@ScottGuymer
ScottGuymer / EFStoredProc.cs
Created May 28, 2013 14:56
Accessing a SQL Stored procedure with multiple result sets using Entity Framework
using (var db = new BloggingContext())
{
// Create a SQL command to execute the sproc
var cmd = db.Database.Connection.CreateCommand();
cmd.CommandText = "[dbo].[uspCustomerAndCompanySearch] @Query";
// Add Parameters to cmd here
cmd.Parameters.Add(new SqlParameter("query", response.Query));
try
@ScottGuymer
ScottGuymer / gist:5583937
Created May 15, 2013 13:18
Set maximum IIS connection on windows XP to 40
cd \inetpub\adminscripts
cscript adsutil.vbs set w3svc/MaxConnections 40
iisreset