Skip to content

Instantly share code, notes, and snippets.

View natemcmaster's full-sized avatar

Nate McMaster natemcmaster

View GitHub Profile
@natemcmaster
natemcmaster / NuGet.Config
Last active March 7, 2016 20:35
no httponly cookies :(
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
This file has been truncated, but you can view the full file.
[?1h=info: Exec
info: program: dotnet
info: commandline: restore
info: workingdir: /home/travis/build/aspnet/EntityFramework
log : Restoring packages for /home/travis/build/aspnet/EntityFramework/test/Microsoft.EntityFrameworkCore.Sqlite.FunctionalTests/project.json...
log : Restoring packages for /home/travis/build/aspnet/EntityFramework/test/Microsoft.EntityFrameworkCore.Commands.FunctionalTests/project.json...
info : GET https://www.myget.org/F/aspnetcidev/api/v3/flatcontainer/ix-async/index.json
info : GET https://www.myget.org/F/aspnetcidev/api/v3/flatcontainer/microsoft.extensions.platformabstractions/index.json
info : GET https://www.myget.org/F/aspnetcidev/api/v3/flatcontainer/ix-async/index.json
info : GET https://www.myget.org/F/aspnetcidev/api/v3/flatcontainer/microsoft.extensions.caching.memory/index.json
$xunit = "$PSScriptRoot\.build\KoreBuild-dotnet\build\xunit.runner.console\tools\xunit.console.exe"
$dotnet = "$env:LOCALAPPDATA\Microsoft\dotnet\cli\bin\dotnet.exe"
$cwd=Get-Location
$projectName=Split-Path $cwd -Leaf
$publishDir="$cwd\obj\test"
$targetBinary="$publishDir\$projectName.dll"
& $dotnet publish -f net451 -o $publishDir $cwd
& $xunit $targetBinary @args
#!/usr/bin/env bash
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
using System;
using Xunit;
using Xunit.Sdk;
namespace XunitTest
{
[AttributeUsage(AttributeTargets.Method)]
[XunitTestCaseDiscoverer("XunitTest.Discoverer", "XunitTest")]
public class CustomFactAttribute : FactAttribute
{
using System;
using System.Data.SqlClient;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Http;
namespace ConsoleApplication
{
public class Startup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NGMCAw
IDAAEAGAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVj
dF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FITltiaWttcn2GjpGa
<!--This file was automatically generated and may be overwritten. Do not edit this file manually.-->
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
<Library>
<TypeInstantiation Name="System.Collections.Generic.IEnumerable" Arguments="EFGetStarted.UWP.Blog" Dynamic="Required All" />
<TypeInstantiation Name="System.Collections.Generic.IAsyncEnumerable" Arguments="EFGetStarted.UWP.Blog" Dynamic="Required All" />
<TypeInstantiation Name="System.Linq.IOrderedEnumerable" Arguments="EFGetStarted.UWP.Blog" Dynamic="Required All" />
<Type Name="Microsoft.Data.Entity.Storage.IDatabase" Dynamic="Required All">
<MethodInstantiation Name="CompileQuery" Arguments="EFGetStarted.UWP.Blog" Dynamic="Required" />
<MethodInstantiation Name="CompileQuery" Arguments="System.Collections.Generic.IEnumerable{EFGetStarted.UWP.Blog}" Dynamic="Required" />
<MethodInstantiation Name="CompileQuery" Arguments="System.Linq.IOrderedEnumerable{EFGetStarted.UWP.Blog}" Dynamic="Requi
using System;
using System.Text;
using System.Runtime.InteropServices;
namespace Sqlite3Test
{
public class Program
{
public static void Main()
{
@natemcmaster
natemcmaster / Dockerfile
Last active November 11, 2015 18:48
ASP.NET Development Image
FROM ubuntu:trusty
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN echo 'deb http://download.mono-project.com/repo/debian wheezy main' >> /etc/apt/sources.list.d/mono-xamarin.list \
&& echo 'deb http://download.mono-project.com/repo/debian alpha main' >> /etc/apt/sources.list.d/mono-xamarin.list \
&& apt-get update -qq \
&& apt-get install -y mono-devel mono-vbnc ca-certificates-mono nuget referenceassemblies-pcl \
&& rm -rf /var/lib/apt/lists/*