Skip to content

Instantly share code, notes, and snippets.

View DariuszO's full-sized avatar
💭
𝕀 𝕞𝕒𝕪 𝕓𝕖 𝕤𝕝𝕠𝕨 𝕥𝕠 𝕣𝕖𝕤𝕡𝕠𝕟𝕕

Dariusz Ochota DariuszO

💭
𝕀 𝕞𝕒𝕪 𝕓𝕖 𝕤𝕝𝕠𝕨 𝕥𝕠 𝕣𝕖𝕤𝕡𝕠𝕟𝕕
View GitHub Profile
{
"config": {
"chainId": 9308039,
"homesteadBlock": 0,
"daoforkBlock": 0,
"daoforkSupport": true,
"eip150Block": 0,
"eip155Block": 0,
"eip55Block": 0,
"eip214Block": 0,
@DariuszO
DariuszO / configure_muliple_gcc.sh
Created November 8, 2021 22:30 — forked from SunnyRaj/configure_muliple_gcc.sh
Configure multiple GCC versions on ubuntu
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
@DariuszO
DariuszO / chain.json
Created November 8, 2021 20:39 — forked from anonymous/chain.json
devChain
{
"name": "DevelopmentChain",
"engine": {
"instantSeal": {
"params": {}
}
},
"params": {
"accountStartNonce": "0x0",
"maximumExtraDataSize": "0x20",
@DariuszO
DariuszO / HyperledgerComposer.sh
Created November 8, 2021 20:39 — forked from UbuntuEvangelist/HyperledgerComposer.sh
Hyperledger Composer Playground Install Ubuntu!
#!/bin/sh
## inherit from https://chaincodedevs.com/showthread.php?tid=3
## https://www.youtube.com/channel/UCIQAZN1lUU4vHCRJY_maOfw
sudo adduser playground
sudo usermod -aG sudo playground
sudo su - playground
sudo curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
sudo chmod u+x prereqs-ubuntu.sh
sudo ./prereqs-ubuntu.sh
sudo su - playground
@DariuszO
DariuszO / setup-aws.sh
Created November 8, 2021 20:39 — forked from ccooper21/setup-aws.sh
This is a bash shell script for bootstrapping the Hyperledger Fabric development environment on an AWS Ubuntu AMI instance. It has been tested with Ubuntu v14.04 (AMI ID ami-2d39803a). While I wrote this to enable AWS deployments, this script should be usable in any Ubuntu based environment. See the first comment below for the detailed background.
#!/bin/bash
# Install "git"
sudo apt-get update
sudo apt-get -y install git
# Clone the Hyperledger Fabric base image repository. It would be preferable
# to use the "/tmp" directory as the destination, since this repository is no
# longer needed once the base image has been built. However, this is
# problematic because one of the scripts that builds the base image removes
@DariuszO
DariuszO / mikasafabric_dev.sh
Created November 8, 2021 20:39 — forked from yoku0825/mikasafabric_dev.sh
setup mikasafabric development environment.
sudo -i
ssh-keygen -N '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
cat << 'EOF' > ~/.ssh/config
Host *
StrictHostKeyChecking no
EOF
chmod 600 ~/.ssh/config
yum upgrade -y
@DariuszO
DariuszO / 01_setup-ubuntu.sh
Created November 8, 2021 20:38 — forked from hi5san/01_setup-ubuntu.sh
Hyperledger Fabric + Hyperledger Explorer - Full setup memo scripts (HLF v1.2 + Explorer release-3.8)
#!/bin/sh
# Tested on Ubuntu 16.04LTS/18.04LTS
echo 'export PS1="\[\e[34;1m\]\w\[\e[m\]$ "' >> ~/.profile
. ~/.profile
sudo timedatectl set-timezone Asia/Tokyo
sudo apt -y update
sudo apt -y upgrade
sudo apt -y install \
mkdir ~/fabric-dev-servers
cd ~/fabric-dev-servers
curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz
tar -xvf fabric-dev-servers.tar.gz
export FABRIC_VERSION=hlfv12
./downloadFabric.sh
./startFabric.sh
./createPeerAdminCard.sh
@DariuszO
DariuszO / bootstrap.sh
Created November 8, 2021 20:38 — forked from rtang03/bootstrap.sh
Experimental Fabric V2 network
#!/usr/bin/env bash
# $1 - docker compose files
# $2 - orderer code ("org0")
# $3 - first org ("org1")
# $4 - list of remaining orgs ("org2 org3")
# $5 - number of orgs (2org / 3org)
. ./scripts/setup.sh
@DariuszO
DariuszO / startFabric.sh
Created November 8, 2021 20:38 — forked from jjanczur/startFabric.sh
Script to start all in containers, Hyperledger Fabric sample network
#!/bin/bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,