Can we (today) vary these values at runtime?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ServerInferRequest, ServerInferResponses, initContract } from '@ts-rest/core'; | |
import { createExpressEndpoints, initServer } from '@ts-rest/express'; | |
import express from 'express'; | |
import { z } from 'zod'; | |
import { CacheMethod } from '~/util/cache-method'; | |
export const EchoSchema = initContract().router({ | |
echo: { | |
body: z.object({ | |
call: z.string(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import pathlib | |
from datetime import datetime | |
def key(job_id: str, op: str): | |
return f"{job_id}-{op}" | |
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'optparse' | |
def get_procfile_lines | |
STDIN.read.split("\n") | |
end | |
def get_process_type_max_width(lines) | |
processes = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -x | |
public_ip=$(curl -m 5 http://169.254.169.254/latest/meta-data/public-ipv4 || echo "127.0.0.1") | |
daemon_multiaddr=$(lotus net listen | grep 127 | sed -En "s/127\.0\.0\.1/${public_ip}/p") | |
miner_multiaddr=$(lotus-storage-miner net listen | grep 127 | sed -En "s/127\.0\.0\.1/${public_ip}/p") | |
miner_id=$(lotus-storage-miner info | grep Miner | cut -d ' ' -f2) | |
cd $(mktemp -d) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# USAGE: | |
# | |
# Option 1: Build and run tests using specific lotus Git SHA: | |
# | |
# > ./test-storage-and-retrieval-local-dev-net.sh --lotus-git-sha=15b3e57634458af983082dcbb736140bba2abfdb | |
# | |
# Option 2: Build and run using binaries you've built previously (much faster) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
genesis_miner_addr="t01000" | |
BASEDIR=$(mktemp -d -t "lotus-interopnet.XXXX") | |
git clone --branch "testnet/3" https://github.com/filecoin-project/lotus.git "${BASEDIR}/build" | |
mkdir -p "${BASEDIR}/scripts" | |
mkdir -p "${BASEDIR}/bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
expected_circle_config_sha256sum="2ea6a7c8f63088b107b6346685866629abdf165f0b457f8856880ea2dcfc63b1" | |
integration_branch=laser/test-integrations-$(date +%s) | |
go_filecoin_branch=master | |
go_filecoin_url=git@github.com:filecoin-project/go-filecoin.git | |
rust_fil_proofs_branch=master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class Tree { | |
// Constructor private so the type is sealed. | |
private Tree() {} | |
public abstract <T> T match(Function<Empty, T> a, | |
Function<Leaf, T> b, | |
Function<Node, T> c); | |
public static final class Empty extends Tree { | |
public <T> T match(Function<Empty, T> a, |
NewerOlder