Skip to content

Instantly share code, notes, and snippets.

View iammelea's full-sized avatar
🎯
Focusing

iammelea iammelea

🎯
Focusing
View GitHub Profile
@iammelea
iammelea / helpful-docker-commands.sh
Created March 3, 2020 15:25 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# 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
@iammelea
iammelea / proof
Created September 13, 2019 04:04
Edgeware Identity Attestation
Attesting to my edgeware account: II 0xacc273ad4c2c746e26a9bb681de4ffc4b194462bc8a6e264d437552e8c0fed7b II
$ 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
@iammelea
iammelea / script getsubstrate.io error
Created August 10, 2019 11:55
Error script build substrate
```
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
cd $GOPATH/src/github.com/cosmos/cosmos-sdk
git fetch --all
git checkout v0.34.1; GO111MODULE=on; make install
gaiad version --long
#
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"
#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
#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
@iammelea
iammelea / Polkadot Backup #798,671 POC-2
Last active July 21, 2018 13:59
Polkadot Backup #798,671
#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.
@iammelea
iammelea / cosmos config.toml
Last active June 13, 2018 19:40
cosmos config.toml
# 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