This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# Helpful Docker commands and code snippets | |
############################################################################### | |
### CONTAINERS ### | |
docker stop $(docker ps -a -q) #stop ALL containers | |
docker rm -f $(docker ps -a -q) # remove ALL containers | |
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
# exec into container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attesting to my edgeware account: II 0xacc273ad4c2c746e26a9bb681de4ffc4b194462bc8a6e264d437552e8c0fed7b II |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install wireguard | |
#if fail → via ppa | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
$ sudo systemctl stop wg-quick@wg0 | |
$ sudo vi /etc/wireguard/wg0.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
curl https://getsubstrate.io -sSf | bash | |
Compiling hex-literal-impl v0.2.0 | |
Compiling structopt v0.2.18 | |
Compiling parking_lot v0.7.1 | |
Compiling vergen v3.0.4 | |
Compiling futures-timer v0.2.1 | |
error[E0277]: the trait bound `ext::TimeoutStream<S>: futures_core::stream::Stream` is not satisfied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $GOPATH/src/github.com/cosmos/cosmos-sdk | |
git fetch --all | |
git checkout v0.34.1; GO111MODULE=on; make install | |
gaiad version --long | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -p 26657:26657 -p 26656:26656 -v $HOME/.gaiacli:/root/.gaiacli -v $HOME/.gaiad:/root/.gaiad meleatrust/cosmos-sdk:v0.31.1 gaiad unsafe-reset-all | |
cd .gaiad/config | |
rm genesis.json | |
wget 'https://raw.githubusercontent.com/cosmos/game-of-stakes/master/genesis.json' | |
docker run -p 26657:26657 -p 26656:26656 -v $HOME/.gaiacli:/root/.gaiacli -v $HOME/.gaiad:/root/.gaiad meleatrust/cosmos-sdk:v0.31.1 gaiad start --trace --log_level "*:debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Run Cosmos no need install, only install docker first ;) | |
#For unsafe reset all, if you need. | |
docker run -p 26657:26657 -p 26656:26656 -v $HOME/.gaiacli:/root/.gaiacli -v $HOME/.gaiad:/root/.gaiad meleatrust/cosmos-sdk:0.30.0-0 gaiad unsafe-reset-all | |
#For create the folders | |
docker run -it -p 26657:26657 -p 26656:26656 -v $HOME/.gaiad:/root/.gaiad -v $HOME/.gaiad:/root/.gaiad meleatrust/cosmos-sdk:0.30.0-0 gaiad init --moniker=Write-Validator-Name-HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#See if this version is ok for you. | |
docker run -v $HOME/.iriscli:/root/.iriscli meleatrust/get-irisnet:v0.10.0 iriscli version | |
0.10.0-rc0-9342e944-0 | |
docker run -v $HOME/.iris:/root/.iris meleatrust/get-irisnet:v0.10.0 iris version | |
0.10.0-rc0-9342e944-0 | |
#or need v0.10.2 just changed the repo in the CMD = meleatrust/irisnet:fuxi8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install Polkadot | |
curl https://sh.rustup.rs -sSf | sh | |
sudo apt install make clang pkg-config libssl-dev | |
#Then, install Polkadot PoC-2: | |
cargo install --git https://github.com/paritytech/polkadot.git --branch v0.2 polkadot | |
#Then start Polkadot for create the folders. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a TOML config file. | |
# For more information, see https://github.com/toml-lang/toml | |
##### main base config options ##### | |
# TCP or UNIX socket address of the ABCI application, | |
# or the name of an ABCI application compiled in with the Tendermint binary | |
proxy_app = "tcp://127.0.0.1:46658" | |
# A custom human readable name for this node |
NewerOlder