Skip to content

Instantly share code, notes, and snippets.

View chevdor's full-sized avatar

Chevdor chevdor

View GitHub Profile
chevdor /
Created December 14, 2021 11:35
EDMS Firmware install MacOS
#!/usr/bin/env bash
# set -e
echo "EDMS Installer"
which avrdude > /dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "ℹ️ Installing avrdude if not already installed..."
chevdor / _README.adoc
Last active May 27, 2019 19:17
Polkadot telemetry one liner
View _README.adoc


Copy/paste that in your terminal

wget -O /tmp/telemetry.yml && docker-compose -f /tmp/telemetry.yml up --force-recreate
chevdor / 0_readme.adoc
Last active March 1, 2022 07:06
Docker compose for a polkadot local chain
View 0_readme.adoc

Substrate/Polkadot local chain

This gists contains a collection of docker-compose config for Polkadot and Substrate. You can find it here.

You may clone this gist with:

git clone
View Fabric chaincode
export CC=mycc
# this installs the Go chaincode
peer chaincode install -n $CC -v 1.0 -p
# this installs the Node.js chaincode
# make note of the -l flag; we use this to specify the language
peer chaincode install -n $CC -v 1.0 -l node -p /opt/gopath/src/
# if you did not install your chaincode with a name of mycc, then modify that argument as well
View gist:e20c2ecdd0f0fe2cf4671d5b3ac8b9fd
cd first-network
configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
export CHANNEL_NAME=mychannel
configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
View gist:489bfe8e10005672c280c9d6c90672ef
mkdir -p $HOME/fabric-tools &&
cd $HOME/fabric-tools &&
curl -sSL | bash -s 1.1.0 &&
echo "export PATH=$PATH:$HOME/fabric-tools" >> $HOME/.bashrc
View gist:236545f0c80bd4eb622c2604b8917770
sudo tar -xvf go1.10.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo mv go /usr/local
echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc
echo "export GOPATH=$HOME/GO" >> $HOME/.bashrc
echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc
source $HOME/.bashrc
chevdor / BaseContract.sol
Created February 1, 2018 12:24
Sample Solidity Base Contract
View BaseContract.sol
pragma solidity ^0.4.19;
contract BaseContract {
function doMagic() external pure { /* ...*/}
contract OtherBaseContract {
function doMagicTricks() external pure { /* ...*/}
View gist:c9c3a0e94b31567b4c5ae6db194413f2
Verifying my Blockstack ID is secured with the address 1ExqcSejGmyha6MRSgZSjaEKWNW5cpyhkZ
View Ethereum Addresses demo