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
#!/bin/bash | |
if [ "$1" = "0.10.0-alpha" ]; then | |
cd /home/remme-core-$1 | |
make stop | |
make clean_chain_data | |
make run_bg_user | |
else | |
echo "$1" | |
curl https://gist.githubusercontent.com/dmytrostriletskyi/ddb0d8fc16512523f4942a2d60b57c63/raw/63de05cc7f68801bb6887fc07463422810276a10/upgrade-node.sh > ~/upgrade-node.sh |
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { | |
map $http_upgrade $connection_upgrade { |
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
#!/bin/bash | |
echo "Fetch the number of block on $1:" | |
curl --silent -X POST http://$1/rpc/ -H 'Content-Type: application/json' -d \ | |
'{"jsonrpc":"2.0","id":"11","method":"get_block_number","params":{}}' | python3 -m json.tool | |
echo "Fetch the number of block on $2:" | |
curl --silent -X POST http://$2:8080 -H 'Content-Type: application/json' -d \ | |
'{"jsonrpc":"2.0","id":"11","method":"get_block_number","params":{}}' | python3 -m json.tool |
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
#!/bin/bash | |
sudo rm -rf /home/remme-core-$1 && \ | |
sudo docker rm $(sudo docker ps -a -q) -f && \ | |
sudo docker rmi $(sudo docker images -q) -f && \ | |
sudo sed -i '/REMME_CORE_RELEASE/d' ~/.bashrc && \ | |
echo "REMME_CORE_RELEASE=$2" >> ~/.bashrc && \ | |
cd /home/ && curl -L https://github.com/Remmeauth/remme-core/archive/v$2.tar.gz | sudo tar zx && \ | |
cd remme-core-$2 && \ | |
sudo -i sed -i "s@80@3333@" /home/remme-core-$2/docker/compose/admin.yml && \ |
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
#!/bin/bash | |
sed -i '/REMME_CORE_RELEASE/d' ~/.bashrc && \ | |
REMME_CORE_RELEASE=$1 && \ | |
echo "REMME_CORE_RELEASE=$REMME_CORE_RELEASE" >> ~/.bashrc && \ | |
rm -rf /home/remme-core-$REMME_CORE_RELEASE && \ | |
sudo docker rm $(sudo docker ps -a -q) -f && \ | |
sudo docker rmi $(sudo docker images -q) -f && \ | |
cd /home/ && curl -L https://github.com/Remmeauth/remme-core/archive/v$REMME_CORE_RELEASE.tar.gz | sudo tar zx && \ | |
cd remme-core-$REMME_CORE_RELEASE && \ |
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
tcp://node-genesis-testnet.remme.io:8800 | |
tcp://node-1-testnet.remme.io:8800 | |
tcp://node-2-testnet.remme.io:8800 | |
tcp://node-3-testnet.remme.io:8800 | |
tcp://node-4-testnet.remme.io:8800 | |
tcp://node-5-testnet.remme.io:8800 | |
tcp://node-6-testnet.remme.io:8800 | |
tcp://node-7-testnet.remme.io:8800 | |
tcp://node-8-testnet.remme.io:8800 | |
tcp://node-9-testnet.remme.io:8800 |
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { | |
map $http_upgrade $connection_upgrade { |
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { | |
map $http_upgrade $connection_upgrade { |
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
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
} | |
http { | |
map $http_upgrade $connection_upgrade { |
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
class HumanInterface: | |
@staticmethod | |
def eat(food, *args, allergy=None, **kwargs): | |
pass | |
def walk(self, destination): | |
pass |