Skip to content

Instantly share code, notes, and snippets.

View agc93's full-sized avatar
:shipit:

Alistair Chapman agc93

:shipit:
View GitHub Profile
[2017-01-28 13:16:30,611] INFO - s.buildServer.agent.AgentMain2 - ===========================================================
[2017-01-28 13:16:30,640] INFO - s.buildServer.agent.AgentMain2 - TeamCity Build Agent 10.0.4 (build 42538), OS: Linux, User: root, Java: 1.8.0_91, Java HotSpot(TM) 64-Bit Server VM (25.91-b14, mixed mode), Java(TM) SE Runtime Environment (1.8.0_91-b14), Oracle Corporation, JVM parameters: -ea -Xmx384m -Dteamcity_logs=../logs/
[2017-01-28 13:16:30,640] INFO - s.buildServer.agent.AgentMain2 - Starting...
[2017-01-28 13:16:30,756] INFO - buildServer.agent.AgentMain2$2 - Refreshing jetbrains.buildServer.agent.AgentMain2$2@3dd4520b: startup date [Sat Jan 28 13:16:30 UTC 2017]; root of context hierarchy
[2017-01-28 13:16:32,366] INFO - jetbrains.buildServer.AGENT - Calculating CPU benchmark index...
[2017-01-28 13:16:42,561] INFO - jetbrains.buildServer.AGENT - CPU benchmark index is set to 304
[2017-01-28 13:16:42,862] INFO - dAgentConfigurationInitializer - Loading bui
@agc93
agc93 / myget.cake
Created December 16, 2016 17:19
A simple Cake script to upload packages to MyGet using the .NET HttpClient
#addin "System.Net.Http"
using System.Net.Http;
public class MyGetClient : HttpClient
{
public string ApiKey { get; set; }
public Uri FeedUri { get; set; }
private Action<string> Log { get; set; }
@agc93
agc93 / NuGetPackageDropHandler.cs
Created December 11, 2016 14:47
Nuget Link Drop Handler
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Editor.DragDrop;
#tool "OpenCover"
Task("Run-Unit-Tests")
.IsDependentOn("Build")
.Does(() =>
{
CreateDirectory(testResultsPath);
CreateDirectory(testResultsPath + "/coverage");
Action<ICakeContext> testAction = ctx => ctx.DotNetCoreTest("./src/Project.Tests", new DotNetCoreTestSettings {
NoBuild = true,
@agc93
agc93 / project.json
Last active November 17, 2016 03:28
xUnit Test Project for .NET Core
{
"version": "1.0.0-*",
"testRunner": "xunit",
"dependencies": {
"ProjectUnderTest": {
"target": "project"
},
"Cake.Testing": "0.16.2",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"xunit.assert": "2.2.0-beta2-build3300"

Keybase proof

I hereby claim:

  • I am agc93 on github.
  • I am agc93 (https://keybase.io/agc93) on keybase.
  • I have a public key ASBFWWYvPP7dUuGpZkefihZeZBTl0uoQJXsjiyVRE4TsWwo

To claim this, I am signing this object:

@agc93
agc93 / docfx.json
Created August 27, 2016 01:46
DocFX config file formats
{
"metadata": [
{
"src": [
{
"files": [
"src/**.sln"
],
"exclude": [
"**/obj/**",
@agc93
agc93 / commands.json
Created June 26, 2016 15:20
Task Runner config for multiple targets
{
"commands": {
"build": {
"fileName": "powershell.exe",
"workingDirectory": "..",
"arguments": "-ExecutionPolicy Bypass -NonInteractive -File ..\\build.ps1 -Script ..\\build.cake"
},
"build-only": {
"fileName": "powershell.exe",
"workingDirectory": "..",
@agc93
agc93 / OpsArchThemeHome
Last active August 29, 2015 14:19
OpsArchThemeHome
~/Content/cyborg
~/Content/cosmo