Skip to content

Instantly share code, notes, and snippets.

View bondsbw's full-sized avatar

Brandon Bonds bondsbw

View GitHub Profile
@bondsbw
bondsbw / gist:8526cd1ed6ff1df0f4aadc2532b45bf2
Created June 19, 2020 22:25
Panic with setunion() on variable input
2020/06/19 17:23:32 [INFO] Terraform version: 0.13.0 beta2
2020/06/19 17:23:32 [INFO] Go runtime version: go1.14.2
2020/06/19 17:23:32 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\bin\\terraform.exe", "plan"}
2020/06/19 17:23:32 [DEBUG] Attempting to open CLI config file: C:\Users\bondsb\AppData\Roaming\terraform.rc
2020/06/19 17:23:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/06/19 17:23:32 [DEBUG] checking for credentials in "C:\\Users\\bondsb\\AppData\\Roaming\\terraform.d\\plugins"
2020/06/19 17:23:32 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/06/19 17:23:32 [DEBUG] will search for provider plugins in C:\Users\bondsb\AppData\Roaming\terraform.d\plugins
2020/06/19 17:23:32 [DEBUG] ignoring non-existing provider search directory C:\Users\bondsb\AppData\Roaming\HashiCorp\Terraform\plugins
2020/06/19 17:23:32 [INFO] CLI command args: []string{"plan"}
@bondsbw
bondsbw / gist:6207bf881f0f7230c4f16c462b89e474
Created June 19, 2020 15:41
Double-nested "external" provider fails
2020/06/19 10:39:30 [INFO] Terraform version: 0.13.0 beta2
2020/06/19 10:39:30 [INFO] Go runtime version: go1.14.2
2020/06/19 10:39:30 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\bin\\terraform.exe", "plan"}
2020/06/19 10:39:30 [DEBUG] Attempting to open CLI config file: C:\Users\bondsb\AppData\Roaming\terraform.rc
2020/06/19 10:39:30 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/06/19 10:39:31 [DEBUG] checking for credentials in "C:\\Users\\bondsb\\AppData\\Roaming\\terraform.d\\plugins"
2020/06/19 10:39:31 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2020/06/19 10:39:31 [DEBUG] will search for provider plugins in C:\Users\bondsb\AppData\Roaming\terraform.d\plugins
2020/06/19 10:39:31 [DEBUG] ignoring non-existing provider search directory C:\Users\bondsb\AppData\Roaming\HashiCorp\Terraform\plugins
2020/06/19 10:39:31 [INFO] CLI command args: []string{"plan"}
@bondsbw
bondsbw / CSharpSyntaxTree.cs
Last active January 17, 2022 01:03
C# without semicolons or braces
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#light
namespace Microsoft.CodeAnalysis.CSharp
using System
using System.Collections.Generic
using System.Collections.Immutable
using System.Diagnostics
using System.Text
@bondsbw
bondsbw / gist:5e5b70873a7b67fe281efceade2a7e25
Last active September 21, 2016 15:02
Automapper missing map exception
void Main()
{
var profile = new MyProfile();
Mapper.Initialize(cfg => cfg.AddProfile(profile));
}
public class MyProfile : Profile
{
protected override void Configure()
@bondsbw
bondsbw / gist:1b76e05bbd5d63fa1298
Created September 11, 2014 14:26
Usage of ICar interface
var car = new Car();
car.UnlockDoor(Door.Driver)
.OpenDoor(Door.Driver)
.SitDown(Seat.Driver)
.FastenSeatBelt(Seat.Driver)
.PutIntoGear(Gear.Reverse);
.Drive(new Acceleration(2, "MPH"));
}
@bondsbw
bondsbw / gist:5cd97f818c0e64b9e90f
Created September 11, 2014 14:22
ICar example fluent interface
public class ICar
{
public ICar UnlockDoor(Door door);
public ICar OpenDoor(Door door);
public ICar SitDown(Seat seat);
public ICar FastenSeatBelt(Seat seat);
public ICar PutIntoGear(Gear gear);
public ICar Drive(Acceleration acceleration);
}