Skip to content

Instantly share code, notes, and snippets.

Overview

This document provides a brief numerical analysis of the use of the JSON Schema $id keyword in schema documents contained in the schemastore.org collection. Scripts to generate stats are attached.

Overview Statisitics

TOTAL FILES: 310
SCHEMAS USED:
      1 http://json-schema.org/draft-03/schema
      5 http://json-schema.org/draft/2019-09/schema
      6 http://json-schema.org/draft-06/schema
@sgpinkus
sgpinkus / main.tf
Last active September 23, 2021 21:24
terraform destroy gives "Error: The terraform-provider-aws_v3.59.0_x5 plugin crashed!"
2021-09-24T07:17:39.305+1000 [DEBUG] Adding temp file log sink: /tmp/terraform-log410799907
2021-09-24T07:17:39.305+1000 [INFO] Terraform version: 1.0.6
2021-09-24T07:17:39.305+1000 [INFO] Go runtime version: go1.16.4
2021-09-24T07:17:39.305+1000 [INFO] CLI args: []string{"/usr/bin/terraform", "destroy", "-auto-approve", "-target=module.eks"}
2021-09-24T07:17:39.305+1000 [DEBUG] Attempting to open CLI config file: /home/sam/.terraformrc
2021-09-24T07:17:39.305+1000 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-09-24T07:17:39.305+1000 [INFO] Loading CLI configuration from /home/sam/.terraform.d/credentials.tfrc.json
2021-09-24T07:17:39.305+1000 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-09-24T07:17:39.305+1000 [DEBUG] ignoring non-existing provider search directory /home/sam/.terraform.d/plugins
2021-09-24T07:17:39.305+1000 [DEBUG] ignoring non-existing provider search directory /home/sam/.local/share/terraform/plugins
terraform {
required_version = ">= 0.14.9"
}
variable "random" {
type = number
}
module "my_animal_module" {
source = "./my-animal-module"
[Unit]
Description=service that simply pipes certain docker events to logs
[Service]
ExecStart=/usr/local/bin/docker-events-to-logs.sh
Restart=on-failure
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
// node --max-old-space-size=8192 test-_id-random-lookup.js
var fs = require('node:fs');
var numDocs = 1e6;
async function main() {
var { MongoClient, ObjectId } = require('mongodb');
var client = await MongoClient.connect('mongodb://localhost:27017/test');
console.log('Connected');
var db = client.db('testing');
try {