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
ssh root@YOUR_DROPLET_IP |
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 update // let's make sure our VPS is up-to-date | |
sudo apt-get -y install wget // so as to be able to download IRI from its repo | |
sudo apt-get install default-jre // Java Runtime Environment | |
sudo apt-get install default-jdk // Java Development Kit |
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
mkdir -p /opt/iota // create a folder for all our IOTA stuff | |
cd /opt/iota // go to the folder, as it's where we'll download IRI | |
wget -O IRI.jar https://github.com/iotaledger/iri/releases/download/v1.4.1.4/iri-1.4.1.4.jar // download IRI |
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
[IRI] | |
PORT = 14700 | |
UDP_RECEIVER_PORT = 14600 | |
TCP_RECEIVER_PORT = 15600 | |
NEIGHBORS = tcp://iota.node1.com:15600 udp://iota.node2.com:14600 | |
IXI_DIR = ixi | |
HEADLESS = true | |
DEBUG = true | |
TESTNET = false | |
DB_PATH = db |
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
[Unit] | |
Description=IOTA node | |
After=network.target | |
[Service] | |
WorkingDirectory=/opt/iota |
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
systemctl daemon-reload && systemctl restart iota | |
systemctl status iota |
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 http://localhost:14700 -X POST -H 'Content-Type: application/json' -d '{"command": "getNodeInfo"}' | json_pp |
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
pragma solidity ^0.4.19; | |
/// @title Memorial. | |
contract Memorial { | |
// Event to notify of a new memory that's been created | |
event NewMemory(uint memoryId, int lat, int lon, bytes32 timing, bytes32 story, address owner); | |
// Populated at contract creation | |
address public curator = msg.sender; |
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
<div id="app"> | |
<label>{{ counter }}</label> | |
<button v-on:click="incrementCounter()">Add a tent!</button> | |
</div> | |
<script src="https://cdn.jsdelivr.net/npm/vue"></script> | |
<script type="text/javascript"> | |
vue = new Vue({ | |
el: "#app", |
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
// Declare the Solidity version we want to use for the compiler | |
pragma solidity ^0.4.19; | |
/* | |
CryptoPicker contract | |
*/ | |
// Ensure we import the required Oraclize logic for the querying | |
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol"; |
OlderNewer