This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
This file contains hidden or 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
Traceback (most recent call last): | |
File "examples/interfaces/throws.py", line 21, in <module> | |
@implements(HumanInterface) | |
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/accessify/interfaces.py", line 103, in decorator | |
class_method_arguments=class_member.arguments_as_string, | |
accessify.errors.DeclaredInterfaceExceptionHasNotBeenImplementedException: | |
Declared exception HumanAlreadyInLoveError by HumanInterface.love() | |
member has not been implemented by Human.love(self, who, args, kwargs) |
This file contains hidden or 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
from accessify import implements, throws | |
class HumanDoesNotExistError(Exception): | |
pass | |
class HumanAlreadyInLoveError(Exception): | |
pass |
This file contains hidden or 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
Traceback (most recent call last): | |
File "examples/interfaces/multiple.py", line 19, in <module> | |
@implements(HumanSoulInterface, HumanBasicsInterface) | |
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/accessify/interfaces.py", line 66, in decorator | |
interface_method_arguments=interface_method.arguments_as_string, | |
accessify.errors.InterfaceMemberHasNotBeenImplementedException: | |
class Human does not implement interface member | |
HumanBasicsInterface.eat(food, args, allergy, kwargs) |