Skip to content

Instantly share code, notes, and snippets.

View sergeyt's full-sized avatar
:electron:
There is a time for everything, a time to search and, a time to give up...

Sergey Todyshev sergeyt

:electron:
There is a time for everything, a time to search and, a time to give up...
View GitHub Profile
@sergeyt
sergeyt / cors.global.asax
Created October 16, 2013 15:19
global.asax to enable CORS on IIS server
<%@ Application Language="C#" %>
<script runat="server">
void Application_BeginRequest(object sender, EventArgs e)
{
var context = HttpContext.Current;
var response = context.Response;
// enable CORS
response.AddHeader("Access-Control-Allow-Origin", "*");
@sergeyt
sergeyt / get-nuget.cmd
Created October 14, 2013 15:01
cmd script to download nuget.exe
powershell -Command "(new-object System.Net.WebClient).DownloadFile('http://az320820.vo.msecnd.net/downloads/nuget.exe', '.nuget\NuGet.exe')"