For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
""" | |
_jaccard.py : Jaccard metric for comparing set similarity. | |
""" | |
import numpy as np | |
def jaccard(im1, im2): | |
""" |
#!/usr/bin/env bash | |
# Check we've got command line arguments | |
if [ -z "$*" ] ; then | |
echo "Need to specify ssh options" | |
exit 1 | |
fi | |
# Start trying and retrying | |
((count = 100)) |
from flask import abort, make_response, jsonify | |
abort(make_response(jsonify(message="Message goes here"), 400)) |
// Compile with: | |
// GOOS=linux go build -a --ldflags '-extldflags "-static"' -tags netgo -installsuffix netgo -o dns-example main.go | |
// | |
// Run on Kubernetes. Example resolv.conf | |
// | |
// # /etc/reslov.conf | |
// search default.svc.cluster.local svc.cluster.local cluster.local google.internal c.hightowerlabs.internal | |
// nameserver 10.179.240.10 | |
// options ndots:5 | |
// |
#!/usr/bin/env bash | |
# This script is meant to build and compile every protocolbuffer for each | |
# service declared in this repository (as defined by sub-directories). | |
# It compiles using docker containers based on Namely's protoc image | |
# seen here: https://github.com/namely/docker-protoc | |
set -e | |
REPOPATH=${REPOPATH-/opt/protolangs} | |
CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"} |
import asyncio | |
loop = asyncio.get_event_loop() | |
async def hello(): | |
await asyncio.sleep(3) | |
print('Hello!') | |
if __name__ == '__main__': | |
loop.run_until_complete(hello()) | |