Skip to content

Instantly share code, notes, and snippets.

View benmoss's full-sized avatar
🙈

Ben Moss benmoss

🙈
View GitHub Profile
@benmoss
benmoss / jq
Last active June 10, 2022 15:50
$ jq
jq - commandline JSON processor [version 1.6]
Usage: jq [options] <jq filter> [file...]
jq [options] --args <jq filter> [strings...]
jq [options] --jsonargs <jq filter> [JSON_TEXTS...]
jq is a tool for processing JSON inputs, applying the given filter to
its JSON text inputs and producing the filter's results as JSON on
standard output.
$ imgkg
imgpkg: Error: Use one of available subcommands: completion [bash|zsh|fish|powershell], copy, describe, help [command], pull, push, tag, version
<exit 1>
github.com/vmware-tanzu/carvel-kbld/cmd/kbld imports
github.com/cppforlife/go-cli-ui/ui imports
github.com/vito/go-interact/interact tested by
github.com/vito/go-interact/interact.test imports
github.com/onsi/gomega loaded from github.com/onsi/[email protected],
but go 1.16 would select v1.18.1
github.com/vmware-tanzu/carvel-kbld/cmd/kbld imports
github.com/cppforlife/go-cli-ui/ui imports
github.com/vito/go-interact/interact tested by
github.com/vito/go-interact/interact.test imports
@benmoss
benmoss / auths.log
Created June 1, 2022 19:09
go run ./cmd/imgpkg/ describe --debug -b projects.registry.vmware.com/tce/main:0.9.1 2>&1 | grep "GET.*contains credentials" | tee auths.log
2022/06/01 15:08:14 --> GET https://projects.registry.vmware.com/service/token?scope=repository%3Atce%2Fmain%3Apull&service=harbor-registry [body redacted: basic token response contains credentials]
2022/06/01 15:08:15 --> GET https://projects.registry.vmware.com/service/token?scope=repository%3Atce%2Fmain%3Apull&service=harbor-registry [body redacted: basic token response contains credentials]
2022/06/01 15:08:16 --> GET https://projects.registry.vmware.com/service/token?scope=repository%3Atce%2Fmain%3Apull&service=harbor-registry [body redacted: basic token response contains credentials]
2022/06/01 15:08:16 --> GET https://projects.registry.vmware.com/service/token?scope=repository%3Atce%2Fmain%3Apull&service=harbor-registry [body redacted: basic token response contains credentials]
2022/06/01 15:08:16 --> GET https://projects.registry.vmware.com/service/token?scope=repository%3Atce%2Fmain%3Apull&service=harbor-registry [body redacted: basic token response contains credentials]
2022/06/01 15:08:16 --> GET h
@benmoss
benmoss / auths.log
Created June 1, 2022 18:37
go run ./cmd/imgpkg/ describe --debug -b projects.registry.vmware.com/tce/main:0.9.1 2>&1 | grep "/v2/$" | tee auths.log
2022/06/01 14:34:41 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:42 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:42 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:42 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:43 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:43 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:43 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:43 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:43 --> GET https://projects.registry.vmware.com/v2/
2022/06/01 14:34:43 --> GET https://projects.registry.vmware.com/v2/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/cmd/imgpkg/imgpkg.go b/cmd/imgpkg/imgpkg.go
index 4d1ae1f..9e365f4 100644
--- a/cmd/imgpkg/imgpkg.go
+++ b/cmd/imgpkg/imgpkg.go
@@ -8,6 +8,8 @@ import (
"log"
"math/rand"
"os"
+ "runtime"
+ "runtime/pprof"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.