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
// Some data to graph | |
var data = new Array(16); | |
data.fill(0); | |
// Our custom renderer that draws a graph inside the layout | |
function renderGraph(l) { | |
require("graph").drawBar(g, data, { | |
miny: 0, | |
axes : true, | |
x:l.x, y:l.y, width:l.w, height:l.h |
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 sh | |
set -euxo pipefail | |
go install github.com/hyperledger-labs/microfab/cmd/microfab@latest | |
mkdir -p microfab-test | |
pushd microfab-test | |
mkdir -p chaincode |
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
#cloud-config | |
runcmd: | |
# Note: Don't write files to /tmp from cloud-init use /run/somedir instead. | |
# Early boot environments can race systemd-tmpfiles-clean LP: #1707222. | |
- mkdir /run/cloudftw | |
- echo hello > /run/cloudftw/cloudftw.txt |
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
#!/bin/sh | |
# Attempt to start up the lametric cheerlights server on a free Oracle compute VM | |
sudo apt-get -yq update | |
sudo apt-get -yq upgrade | |
sudo apt-get -yq remove docker docker-engine docker.io containerd runc || true | |
sudo apt-get -yq install \ | |
apt-transport-https \ |
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
docker create --name nginx nginx | |
docker cp nginx:/etc/nginx/nginx.conf ./nginx.conf | |
docker rm -f nginx |
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
{ | |
"frames" : [ | |
{ | |
"text": "fabric-chaincode-java" | |
}, | |
{ | |
"chartData": $reverse([value[name='FailedBuilds'].intValue]) | |
} | |
] | |
} |
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
{ | |
"frames" : [ | |
{ | |
"text": "fabric-chaincode-java" | |
}, | |
{ | |
"chartData": $reverse([value[name='FailedBuilds'].intValue]) | |
} | |
] | |
} |
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
[ | |
{ | |
"name": "underHat", | |
"policy": { | |
"identities": [ | |
{ | |
"role": { | |
"name": "member", | |
"mspId": "Org1MSP" | |
} |
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
/* | |
* This gradle init script can be used to publish jars to a repository folder | |
* inside a Fabric contract project. For example, in the `fabric-chaincode-java` project: | |
* | |
* ./gradlew -I ~/chaincode-init.gradle -PchaincodeRepoDir=<chaincode_dir>/repository publishShimJarPublicationToFabricRepository publishProtosJarPublicationToFabricRepository | |
* | |
* Where <chaincode_dir> is the chaincode location containing your contract! | |
* | |
* Fabric contract projects can then use jars from the bundled maven repository | |
* during the Fabric instantiation process by adding the following repository |
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
version: '2' | |
networks: | |
maven: | |
services: | |
maven: | |
container_name: maven | |
image: nginx | |
ports: |
NewerOlder