Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am madvikinggod on github.
  • I am madvikinggod (https://keybase.io/madvikinggod) on keybase.
  • I have a public key ASBjo5a_AsLp53jFH62UaK57BCVQh3GalvkKq7qjJkzlwAo

To claim this, I am signing this object:

var CompleteStatuses = []string{
cloudformation.StackStatusCreateComplete,
cloudformation.StackStatusUpdateComplete,
cloudformation.StackStatusDeleteComplete,
}
var FailedStatuses = []string{
cloudformation.StackStatusCreateFailed,
cloudformation.StackStatusRollbackComplete,
cloudformation.StackStatusRollbackFailed,

Keybase proof

I hereby claim:

  • I am MadVikingGod on github.
  • I am madvikinggod (https://keybase.io/madvikinggod) on keybase.
  • I have a public key whose fingerprint is 86CC D261 8EEC 7589 4A3E A7C1 08CA 450E E90F D566

To claim this, I am signing this object:

# Questions for employers
## Position
1. What would my typical day look like?
1. What does success look like for this role? In 1 year? In 3 years?
1. How would you help me grow as a leader? Who would I reach out to for guidance?
1. How much time would I get for investigating, unstructured research, and writing? How is that tracked and valued? Can you tell me about the last time someone did this, what did it look like and how was it valued?
1. Tell me about the last time you recognized an opportunity for growth in a staff member and how you developed it.
1. Where would I work? How flexible are hours and location?
package main
import "fmt"
func findWord(start, cursor *Trie, s, currentWord string, words []string) ([]string, error) {
if s == "" {
if cursor.Word {
return append(words, currentWord), nil
}
//Didn't end with a word in our list
@MadVikingGod
MadVikingGod / Problem.sh
Created January 28, 2020 16:33
Kustomize secret generator merge
#wase and works will run successfully
kustomize build base
kustomize build works
#if you don't use merge you get this error as expected
kustomize build doesnt-work
# Error: accumulating resources: recursed merging from path '/Users/aaronc/projects/server-helm-chart/scratch/secret-gen-error/doesnt-work/responsibility': may not add resource with an already registered id: ~G_v1_Secret|~X|secret
#doesnt-work produces this error
kustomize build doesnt-work
@MadVikingGod
MadVikingGod / otel-key diff
Created May 10, 2021 20:01
Diff of otel-go semconv changes.
# generated with:
# cd semconv
# rg '.* = attribute.Key\(.*\)' * -IN | sort > (old/new)-semconv.txt
# diff old-semconv.txt new-semconv.txt
# line number mean nothing
0a1,10
> AWSECSClusterARNKey = attribute.Key("aws.ecs.cluster.arn")
> AWSECSContainerARNKey = attribute.Key("aws.ecs.container.arn")
> AWSECSLaunchtypeKey = attribute.Key("aws.ecs.launchtype")

Comments on an implementor trying to parse the metrics spec.

Views

Type

The current way the spec is stated is there can only be 1 View type, even though it does multiple things. By my count right now it does:

  1. Filter meters.
  2. Remove dimensions.
  3. Rename dimensions.
@MadVikingGod
MadVikingGod / Benchmark-panic
Created December 15, 2021 20:15
Record of panic of benchmarks
/workspaces/opentelemetry-go/sdk/metric (main ✗) $ go test --bench .
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric
cpu: Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz
BenchmarkInt64CounterAddWithLabels_1-4 3396212 379.0 ns/op 176 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_2-4 2476251 494.8 ns/op 240 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_4-4 1693987 723.8 ns/op 368 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_8-4 933027 1286 ns/op 624 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_16-4 399891 2921 ns/op 2160 B/op 3 allocs/op
@MadVikingGod
MadVikingGod / main.go
Last active January 24, 2022 18:03
Demonstration of MarshalLog errors
package main
import (
"fmt"
"log"
"os"
"github.com/go-logr/logr"
"github.com/go-logr/stdr"
"github.com/go-logr/zapr"