git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
| # Code licensed MIT 2023 Stefaan Lippens | |
| import difflib | |
| import itertools | |
| from typing import List, Tuple, Iterator | |
| class Sdiffer: | |
| def __init__(self, max_width:int = 80): | |
| # Two columns with a gutter |
| # Add field | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}' | |
| # { | |
| # "hello": "world", | |
| # "foo": "bar" | |
| # } | |
| # Override field value | |
| echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}' | |
| { |
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
| ;; Define a "base type" of Dog | |
| (defrecord Dog [breed]) | |
| ;; Define a "sub type" of TrainedDog | |
| (defrecord TrainedDog [dog word]) | |
| ;; The interface that both Dog and TrainedDog will implement | |
| (defprotocol Talker | |
| (bark [_]) | |
| (speak [_]) |