Skip to content

Instantly share code, notes, and snippets.

View thefringeninja's full-sized avatar
🍿

João Bragança thefringeninja

🍿
View GitHub Profile
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>
@thefringeninja
thefringeninja / Dockerfile
Last active April 24, 2019 14:56
Dockerized Pulumi
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 \
@thefringeninja
thefringeninja / gist:3924680
Created October 20, 2012 20:29
Double Click with Reactive UI
public MyUserControlView()
{
InitializeComponent();
var mouseUp = Observable.FromEventPattern<
MouseButtonEventHandler,
MouseButtonEventArgs>
(h => MouseLeftButtonUp += h, h => MouseLeftButtonUp -= h);
var doubleClick = mouseUp.SelectMany(
@thefringeninja
thefringeninja / Dockerfile
Created July 4, 2018 11:22
Sql Stream Store Docker Compose Example
FROM nginx:1.15.0-alpine
COPY ./nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]
@thefringeninja
thefringeninja / RavenDatabaseManager.cs
Created December 8, 2017 13:00
Run Raven Tests in Ur Docker Container
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;
@thefringeninja
thefringeninja / messages.csx
Created October 27, 2017 12:57
Generate Message Contracts via CSX Script
#! "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;
internal class CustomerBootstrapper
: DefaultBootstrapper
{
private readonly ICustomerRepository _customers;
public CustomerBootstrapper(ICustomerRepository customers)
{
if (customers == null)
{
throw new ArgumentNullException(nameof(customers));
## 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))
@thefringeninja
thefringeninja / build.ps1
Last active May 8, 2017 15:22
build.ps1 for Cake 0.18
##########################################################################
# 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.