Skip to content

Instantly share code, notes, and snippets.

View chevdor's full-sized avatar

Chevdor chevdor

View GitHub Profile
@chevdor
chevdor / solana.json
Last active October 14, 2024 08:50
Solana RPC Endpoints
{
"name": "Solana",
"url": "https://gist.githubusercontent.com/chevdor/807c3e10dfd72e8d102792170ea04e84/raw/3fe77a0443a1a4f1887f5396166c2cec34418903/solana.json",
"labels": [
"Solana"
],
"last_updated": "2024-10-14Z10:20:00T",
"enabled": true,
"rpc_endpoints": {
"Solana": [
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Number;Freq
1;67.0
2;69.3
3;71.9
4;74.4
5;77.0
6;79.7
7;82.5
8;85.4
9;88.5
@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 { /* ...*/}
}