Skip to content

Instantly share code, notes, and snippets.

View werwolfby's full-sized avatar

Alexander Puzynia werwolfby

  • Service Titan
  • Seattle, USA
View GitHub Profile
@werwolfby
werwolfby / KeyValuePairExtension.cs
Last active December 16, 2017 10:17 — forked from emoacht/KeyValuePairExtension.cs
Deconstruct extension method for KeyValuePair in C# 7
public static class KeyValuePairExtension
{
public static void Deconstruct<TKey, TValue>(this KeyValuePair<TKey, TValue> source, out TKey key, out TValue value)
{
key = source.Key;
value = source.Value;
}
}
@werwolfby
werwolfby / Makefile
Created December 28, 2016 21:35
Dockerfile helper with Makefile
-include env
IMAGENAME := $(shell basename `git rev-parse --show-toplevel`)
NAMESPACE := user
SHA := $(shell git rev-parse --short HEAD)
timestamp := $(shell date +"%Y%m%d%H%M")
.PHONY: download echo build run stop start rmf rmi
download: