Skip to content

Instantly share code, notes, and snippets.

@vikiival
vikiival / docker-compose-test-net.yaml
Created June 24, 2020 11:11
Add cli to Hyperledger test network
cli:
container_name: cli
image: hyperledger/fabric-tools:$IMAGE_TAG
tty: true
stdin_open: true
environment:
- GOPATH=/opt/gopath
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- FABRIC_LOGGING_SPEC=INFO
#- FABRIC_LOGGING_SPEC=DEBUG
#include <stdio.h>
int main() {
int id;
__asm__(
"mov $0x02000004, %%eax;"
"syscall;\n"
: "=a"(id)
);
@vikiival
vikiival / TodoContract.sol
Last active January 5, 2019 09:43
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.2+commit.1df8f40c.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract SimpleContract {
struct TodoItem {
uint256 id;
string name;
bool completed;
}
struct User {