Skip to content

Instantly share code, notes, and snippets.

@garethr
garethr / convert.py
Last active July 7, 2021 02:40 — forked from phaer/convert.py
kubernetes open api to hcl2 spec
import sys
import json
from collections import OrderedDict
from contextlib import contextmanager
def resolve_json_pointer(spec, reference):
prefix, definitions, name = reference.split('/')
return spec.get(definitions).get(name)
@garethr
garethr / install-graphite-ubuntu-10.04.sh
Created April 7, 2012 22:00 — forked from MikeGrace/install-graphite-ubuntu-10.04.sh
Install Graphite 0.9.9 on Ubuntu 10.04
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Updated by Gareth Rushgrove (http://morethanseven.net)
# Last tested & updated 8th April 2012
####################################
sudo apt-get update
sudo apt-get upgrade