Skip to content

Instantly share code, notes, and snippets.

View MitchPierias's full-sized avatar

Mitch Pierias MitchPierias

View GitHub Profile
@MitchPierias
MitchPierias / Neo4j-EC2-Chef-Deployment.md
Last active February 7, 2019 04:30
Deploying a Neo4j Server on an Amazon EC2 Instance with Chef

Deploying a Neo4j Instance on Amazon EC2

Instance Setup

IAM Credentials

Ensure you have an IAM user created with correct EC2 or more access for the individual or machine you are wokring on and add your IAM User credentials into ~/.ssh/credentials

Instance Access credentials

Download .pem file and chmod 400 YOUR_CREDENTIALS.pem.

Prerequisites

@MitchPierias
MitchPierias / config.ini
Created December 15, 2018 03:10
Nodeos Development Configuration File
# the endpoint upon which to listen for incoming connections (eosio::bnet_plugin)
bnet-endpoint = 0.0.0.0:4321
# the number of threads to use to process network messages (eosio::bnet_plugin)
# bnet-threads =
# remote endpoint of other node to connect to; Use multiple bnet-connect options as needed to compose a network (eosio::bnet_plugin)
# bnet-connect =
# this peer will request no pending transactions from other nodes (eosio::bnet_plugin)
@MitchPierias
MitchPierias / ooo-distributed-apps.md
Last active December 21, 2018 13:24
Order of Operations in Distributed Application Actions

OOO in Distributed Applications

For security reasons, it's important to remember the order of which you perform operations within the actions of your distrubuted application.

  1. Checks
  2. Effects
  3. Interactions

Performing operations in this order will prevent the vulnerability seen in the infamous DAO hack (Google it), where an attacker opened a series of withdrawals, and transfered funds before the contract could update it's balance data.