Skip to content

Instantly share code, notes, and snippets.

@amogram
amogram / build.cake
Created April 25, 2017 16:17
Quick Cake Build Script for NMockaroo.
#tool nuget:?package=NUnit.ConsoleRunner&version=3.4.0
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// PREPARATION
//////////////////////////////////////////////////////////////////////
// Define directories.
@amogram
amogram / apiclientwrapper.ts
Created May 24, 2017 15:41
API Client Wrapper
import {Injectable} from '@angular/core';
import {Http, Headers} from '@angular/http';
@Injectable()
export class WebServiceClient {
constructor(private http: Http) { }
// Creates an Authorization Header
createAuthHeader(headers: Headers) {
headers.append('Authorization', 'Basic');
@amogram
amogram / Dockerfile
Created April 5, 2018 20:49
DockerFile for OpenFaas .NET Core functions on Kubernetes Raspberry Pi/ARM Deployments
FROM microsoft/dotnet:2.0-sdk as builder
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
# Optimize for Docker builder caching by adding projects first.
RUN mkdir -p /root/src/function
WORKDIR /root/src/function
COPY ./function/Function.csproj .
Run terraform plan -input=false -out=$PLAN | sed -r 's/([[:space:]~+-]*).*(password|secret|key).*/\1****************/gi'
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
****************
****************
****************
****************
module.auth0.auth0_client.dacp_frontend: Refreshing state... [id=Qvsk4nxqQ9O8qmyWqiosq52IwC9O4FNj]