View gist:59542c79b649c0cb66fb92287794d04c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Build started 1/17/2022 1:01:55 PM. | |
0>Process = "/usr/share/dotnet/dotnet" | |
MSBuild executable path = "/usr/share/dotnet/sdk/6.0.101/MSBuild.dll" | |
Command line arguments = "/usr/share/dotnet/sdk/6.0.101/dotnet.dll test -v detailed" | |
Current directory = "/home/jwow/dev/dnt_env" | |
MSBuild version = "17.0.0+c9eb9dd64" | |
1>Project "/home/jwow/dev/dnt_env/dnt_env.sln" on node 1 (Restore target(s)). | |
1>Target "ValidateSolutionConfiguration" in file "/home/jwow/dev/dnt_env/dnt_env.sln.metaproj" from project "/home/jwow/dev/dnt_env/dnt_env.sln" (entry point): | |
1>Task "Error" skipped, due to false condition; (('$(CurrentSolutionConfigurationContents)' == '') and ('$(SkipInvalidConfigurations)' != 'true')) was evaluated as (('<SolutionConfiguration> | |
<ProjectConfiguration Project="{8042C2A9-D22A-4F96-8B12-50D7BA70B8D8}" AbsolutePath="/home/jwow/dev/dnt_env/dnt.Tests/dnt.Tests.csproj" BuildProjectInSolution="True">Debug|AnyCPU</ProjectConfiguration> |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM pulumi/pulumi as build | |
RUN curl -L https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz | tar xvz \ | |
&& mv linux-amd64/helm /usr/bin/helm \ | |
&& chmod +x /usr/bin/helm \ | |
&& rm -rf linux-amd64 | |
ARG UID=1000 | |
ARG GID=1000 | |
RUN groupadd -g $GID -o user \ |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:1.15.0-alpine | |
COPY ./nginx.conf /etc/nginx/nginx.conf | |
EXPOSE 80 | |
ENTRYPOINT ["nginx", "-g", "daemon off;"] |
View RavenDatabaseManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Threading.Tasks; | |
using Docker.DotNet; | |
using Docker.DotNet.Models; | |
using Raven.Client.Documents; | |
using Raven.Client.Documents.Session; | |
using Raven.Client.Exceptions; |
View messages.csx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! "netcoreapp1.1" | |
#r "nuget:NetStandard.Library,1.6.1" | |
#r "nuget:Dotnet.Script.Core,0.13.0-beta" | |
#r "nuget:SharpYaml,1.6.1" | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; |
View CustomerBootstrapper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class CustomerBootstrapper | |
: DefaultBootstrapper | |
{ | |
private readonly ICustomerRepository _customers; | |
public CustomerBootstrapper(ICustomerRepository customers) | |
{ | |
if (customers == null) | |
{ | |
throw new ArgumentNullException(nameof(customers)); |
View aws-api-gateway-form-to-json.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## convert HTML POST data or HTTP GET query string to JSON | |
## get the raw post data from the AWS built-in variable and give it a nicer name | |
#if ($context.httpMethod == "POST") | |
#set($rawAPIData = $input.path("$")) | |
#elseif ($context.httpMethod == "GET") | |
#set($rawAPIData = $input.params().querystring) | |
#set($rawAPIData = $rawAPIData.toString()) | |
#set($rawAPIDataLength = $rawAPIData.length() - 1) | |
#set($rawAPIData = $rawAPIData.substring(1, $rawAPIDataLength)) |
View build.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################################################################## | |
# This is the Cake bootstrapper script for PowerShell. | |
# This file was downloaded from https://github.com/cake-build/resources | |
# Feel free to change this file to fit your needs. | |
########################################################################## | |
<# | |
.SYNOPSIS | |
This is a Powershell script to bootstrap a Cake build. |
View EnterpriseServiceBus.babel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bus { | |
constructor() { | |
this.handlers = {}; | |
} | |
subscribe(type, handler) { | |
this.handlers[type] = (this.handlers[type] || []) | |
.concat(handler); | |
} |
View gist:f528545f88fd1ec6a24a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IHttpMessageSerializer | |
{ | |
void Serialize(HttpResponseMessage response, Stream stream); | |
void Serialize(HttpRequestMessage request, Stream stream); | |
HttpResponseMessage DeserializeToResponse(Stream stream); | |
HttpRequestMessage DeserializeToRequest(Stream stream); | |
} | |
public class MessageContentHttpMessageSerializer : IHttpMessageSerializer |
NewerOlder