Skip to content

Instantly share code, notes, and snippets.

View yourbuddyconner's full-sized avatar

Conner Swann yourbuddyconner

View GitHub Profile
// Define a function to handle the document and return its type
function discoverDocumentType(document) {
// Code to discover the type of document
return documentType;
}
// Define a function to retrieve pre-built question examples from a database
function getQuestionExamples(documentType) {
if (documentType === "legal contract") {
return [
@yourbuddyconner
yourbuddyconner / bootstrap_balances.json
Created February 22, 2021 20:24
Rosetta conf file for mina-rosetta
[]
import docker
import os
import subprocess
import click
import glob
import json
import random
import re
import sys
from pathlib import Path
#!/usr/bin/env python3
# script to find common best-tip prefix over a list of nodes using GraphQL query
import os
import sys
import json
import click
import subprocess
import requests
apiVersion: apps/v1
kind: Deployment
metadata:
name: graphql-proxy-deployment
namespace: coda-testnet
labels:
app: graphql-proxy
spec:
replicas: 1
selector:

Related Reading

Generate a private key:

It's important to note here that without the -v argument, your generated key would be stuck inside the container and deleted when the container exits! This example mounts the current directory pwd inside the container at the /keys path.

docker run --entrypoint /bin/bash -it -v $(pwd)/:/keys codaprotocol/coda-daemon:0.0.11-beta1-release-0.0.12-beta-493b4c6 -c "CODA_PRIVKEY_PASS='password' coda client-old generate-keypair -privkey-path /keys/my_key"

@yourbuddyconner
yourbuddyconner / snark-worker-one.yaml
Created December 27, 2019 01:07
An example deployment of a Coda SNARK Worker. Works out of the box on GKE.
apiVersion: apps/v1
kind: Deployment
metadata:
name: snark-worker-one
namespace: coda-testnet
labels:
app: snark-worker-one
spec:
replicas: 1
selector:
apiVersion: apps/v1
kind: Deployment
metadata:
name: seed-one
namespace: default
labels:
app: seed
spec:
replicas: 1
selector:
ocamlopt app/archive/archive_lib/graphql_query/.graphql_query.objs/native/graphql_query__User_commands.{cmx,o} (got signal KILL)
(cd _build/default && /home/opam/.opam/4.07.1/bin/ocamlopt.opt -w @a-4-29-40-41-42-44-45-48-58-59-60-40 -strict-sequence -strict-formats -short-paths -keep-locs -g -I app/archive/archive_lib/graphql_query/.graphql_query.objs/byte -I app/archive/archive_lib/graphql_query/.graphql_query.objs/native -I /home/opam/.opam/4.07.1/lib/angstrom -I /home/opam/.opam/4.07.1/lib/asetmap -I /home/opam/.opam/4.07.1/lib/astring -I /home/opam/.opam/4.07.1/lib/async -I /home/opam/.opam/4.07.1/lib/async_extra -I /home/opam/.opam/4.07.1/lib/async_kernel -I /home/opam/.opam/4.07.1/lib/async_kernel/persistent_connection_kernel -I /home/opam/.opam/4.07.1/lib/async_rpc_kernel -I /home/opam/.opam/4.07.1/lib/async_ssl -I /home/opam/.opam/4.07.1/lib/async_ssl/bindings -I /home/opam/.opam/4.07.1/lib/async_unix -I /home/opam/.opam/4.07.1/lib/async_unix/thread_pool -I /home/opam/.opam/4.07.1/lib/async_unix/t