Skip to content

Instantly share code, notes, and snippets.

View kapilt's full-sized avatar
🌩️
🌩 📦 🔭 📻 🚀 🛰

Kapil Thangavelu kapilt

🌩️
🌩 📦 🔭 📻 🚀 🛰
View GitHub Profile
@kapilt
kapilt / tf-schema-gen.go
Last active January 22, 2020 13:16 — forked from harsh-98/cloudflare-generator.go
Jsonschema generator for cloudflare
package main
import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
tf "github.com/hashicorp/terraform-plugin-sdk/terraform"
aws "github.com/terraform-providers/terraform-provider-aws/aws"
"encoding/json"
"fmt"
"os"
# In-memory Cassandra-ish thingy... useful for unit tests. Maybe useful for other
# stuff too? No support for SuperColumns, but that should be easy enough to add.
import bisect
import copy
from cassandra.ttypes import NotFoundException, Column, ColumnPath, ColumnOrSuperColumn
class SSTable(object):