Skip to content

Instantly share code, notes, and snippets.

View chevdor's full-sized avatar

Chevdor chevdor

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

Usage

Copy/paste that in your terminal

wget https://gist.githubusercontent.com/chevdor/493a38e0216ce7a9559837c99e048802/raw/806a04c742f8b71f0929fe62e226b7aca817230a/docker-compose.yml -O /tmp/telemetry.yml && docker-compose -f /tmp/telemetry.yml up --force-recreate
@chevdor
chevdor / 0_readme.adoc
Last active March 1, 2022 07:06
Docker compose for a polkadot local chain

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 git@gist.github.com:be461d11c56baecb0e7bbcb920e964fb.git
export CC=mycc
# this installs the Go chaincode
peer chaincode install -n $CC -v 1.0 -p github.com/chaincode/chaincode_example02/go/
# 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/github.com/chaincode/chaincode_example02/node/
# if you did not install your chaincode with a name of mycc, then modify that argument as well
cd first-network
export FABRIC_CFG_PATH=$PWD
configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
export CHANNEL_NAME=mychannel
configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
mkdir -p $HOME/fabric-tools &&
cd $HOME/fabric-tools &&
curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 &&
echo "export PATH=$PATH:$HOME/fabric-tools" >> $HOME/.bashrc
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
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
# CHECK
@chevdor
chevdor / BaseContract.sol
Created February 1, 2018 12:24
Sample Solidity Base Contract
pragma solidity ^0.4.19;
contract BaseContract {
function doMagic() external pure { /* ...*/}
}
contract OtherBaseContract {
function doMagicTricks() external pure { /* ...*/}
}
Verifying my Blockstack ID is secured with the address 1ExqcSejGmyha6MRSgZSjaEKWNW5cpyhkZ https://explorer.blockstack.org/address/1ExqcSejGmyha6MRSgZSjaEKWNW5cpyhkZ
0xFEef6978afFB0c91eC9d8f0AB86C1b9EBE896738
0xFEef6973afFB0c91eC9d8f0AB86C1b9EBE896738
0xFEef6978afFB0c91eC9d8f0AB86C1b9EBE89
0xfeef6978affb0c91ec9d8f0ab86c1b9ebe896738