Skip to content

Instantly share code, notes, and snippets.

View andybaran's full-sized avatar

Andy Baran andybaran

View GitHub Profile
@andybaran
andybaran / tokens.md
Last active August 10, 2026 21:07
JSON formats and token usage

Minified vs Pretty-print and tokens

Let's take this simple example and just look at the closing quotation mark of value1, the comma and opening quotation of key2

In total the Minified ends up being 13 tokens and the pretty-print 20 tokens but let's just look at this one example.

Minified (1 token)

@andybaran
andybaran / main.tf
Created October 26, 2023 22:52
Nutanix TF NIC IP
terraform{
required_providers{
nutanix = {
source = "nutanix/nutanix"
version = "1.3.0"
}
}
}
provider "nutanix" {
### Keybase proof
I hereby claim:
* I am andybaran on github.
* I am andybaran (https://keybase.io/andybaran) on keybase.
* I have a public key ASDyXhQ3YCW72AIQ41OUqz3mJP0DDGcH2V6kWCC8EZ86GQo
To claim this, I am signing this object: