Skip to content

Instantly share code, notes, and snippets.

View remojansen's full-sized avatar

Remo H. Jansen remojansen

View GitHub Profile
@remojansen
remojansen / azure-atatic-website.ts
Last active October 29, 2020 20:44
Pulumi Azure NextGen Static Website
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azure_nextgen from "@pulumi/azure-nextgen";
import * as cdnManagement from "@azure/arm-cdn";
import { ServiceClientCredentials } from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-nodeauth";
export interface StaticWebsiteArgs {
customDomain: string;
location: string;
@remojansen
remojansen / CDNCustomDomainResource.ts
Last active October 23, 2020 13:56
Pulumi CDNCustomDomainResource for @azure/arm-cdn@5.0.0 with httpsEnabled support
// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
import * as azure from "@pulumi/azure";
import * as pulumi from "@pulumi/pulumi";
import * as cdnManagement from "@azure/arm-cdn";
import { ServiceClientCredentials } from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-nodeauth";
/**
* CustomDomainOptions represents the inputs to the dynamic resource.
@remojansen
remojansen / keybase.md
Created February 17, 2017 00:14
keybase.md

Keybase proof

I hereby claim:

  • I am remojansen on github.
  • I am remojansen (https://keybase.io/remojansen) on keybase.
  • I have a public key whose fingerprint is 95CF 4000 58A6 7EBF D965 2C32 C2E7 7CC5 4C37 06E7

To claim this, I am signing this object:

@remojansen
remojansen / class_decorator.ts
Last active September 14, 2023 14:54
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}