Skip to content

Instantly share code, notes, and snippets.

View Mattias-'s full-sized avatar

Mattias Appelgren Mattias-

View GitHub Profile
@Mattias-
Mattias- / crash.log
Created August 13, 2020 08:59
tf-vault-crash-1
panic: runtime error: invalid memory address or nil pointer dereference
2020-08-13T08:39:11.963Z [DEBUG] plugin.terraform-provider-vault_v2.11.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1024770]
2020-08-13T08:39:11.963Z [DEBUG] plugin.terraform-provider-vault_v2.11.0_x4:
2020-08-13T08:39:11.963Z [DEBUG] plugin.terraform-provider-vault_v2.11.0_x4: goroutine 41 [running]:
2020-08-13T08:39:11.963Z [DEBUG] plugin.terraform-provider-vault_v2.11.0_x4: github.com/terraform-providers/terraform-provider-vault/vault.identityEntityCreate(0xc000262460, 0x13a1ac0, 0xc0001443f0, 0x2, 0x1fe4640)
2020-08-13T08:39:11.963Z [DEBUG] plugin.terraform-provider-vault_v2.11.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-vault/vault/resource_identity_entity.go:110 +0x2e0
2020-08-13T08:39:11.963Z [DEBUG] plugin.terraform-provider-vault_v2.11.0_x4: github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc000132f00, 0xc000098c80, 0xc
#!/bin/bash
# This is a script that unsubscribes an email address from AWS junk mail.
# If the script breaks it might be the magic numbers that needs to change.
# Send the form while tracing the request in your browser to find the new values.
# https://pages.awscloud.com/communication-preferences
unsubscribe_aws_email() {
curl "https://pages.awscloud.com/index.php/leadCapture/save2" \
-H "Accept: application/json" \
@Mattias-
Mattias- / 1_simple.go
Created February 24, 2022 20:48 — forked from sosedoff/1_simple.go
Golang Custom Struct Tags Example
package main
import (
"fmt"
"reflect"
)
// Name of the struct tag used in examples
const tagName = "validate"