Skip to content

Instantly share code, notes, and snippets.

View thomasvds's full-sized avatar
🚀
SHIP OR DIE

Thomas Vanderstraeten thomasvds

🚀
SHIP OR DIE
View GitHub Profile
ssh root@YOUR_DROPLET_IP
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
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
[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
[Unit]
Description=IOTA node
After=network.target
[Service]
WorkingDirectory=/opt/iota
systemctl daemon-reload && systemctl restart iota
systemctl status iota
curl http://localhost:14700 -X POST -H 'Content-Type: application/json' -d '{"command": "getNodeInfo"}' | json_pp
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;
// 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";
<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",