Skip to content

Instantly share code, notes, and snippets.

View trevorbernard's full-sized avatar

Trevor Bernard trevorbernard

View GitHub Profile
From fd8d81e9cb44c80e445374bc825defd0d4d30f24 Mon Sep 17 00:00:00 2001
From: Dimitris Apostolou <[email protected]>
Date: Thu, 1 Mar 2018 13:36:19 +0200
Subject: [PATCH] Fix typos in various files
---
contrib/epee/include/net/http_client.h | 2 +-
contrib/epee/include/net/levin_client_async.h | 2 +-
contrib/epee/tests/src/net/test_net.h | 2 +-
src/cryptonote_basic/miner.cpp | 2 +-
@trevorbernard
trevorbernard / Security.java
Created June 30, 2017 12:50
JeroMQ Curve Security
import org.zeromq.ZContext;
import org.zeromq.ZMQ;
import org.zeromq.ZMQ.Socket;
import zmq.io.mechanism.curve.Curve;
public class Security {
public static void main(String[] args) throws Exception {
Curve curve = new Curve();
String[] serverKeys = curve.keypairZ85();

Braveno Architecture

Design Considerations

When designing software that deals with money, special consideration must be given to correctness and security. It is imperative that we build deterministic systems which don't lose data. We do this for two reasons: regulatory requirements and we simply don't know how to value it in the future. That is why event sourcing will be core to Braveno's design. Event sourcing is a very effective design approach to building highly available, deterministic

public interface Callback {
void work(Object... args);
}
class Foobar implements Callback {
void work(Object... args) {
Object first = args[0];
Object second = args[1];
// do work
}
* What went wrong:
Execution failed for task ':install'.
> Could not publish configuration 'archives'
> org.codehaus.plexus.PlexusContainerException: Cycle detected in component graph in the system:
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
-----BEGIN PGP MESSAGE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org
hQEMA9+8P1iiiALAAQf+N0N45Rf896XSq3pMokBCiTOHKNojFpbvGEg/53Kj4u55
S9NQ6IvjLBe8gQRWjt9jHYBWouJky9pCnX3PzeoCCtpuTPP6QjfQejRR8UIJA7vG
mc74FJ584Riw7SbauTZYqYLJ/ZHxjDSrmHwm137HYuiZl8krpd0k9uqZImv5ReJT
SedlFMflbvrtE61nVHTD3621vysl8JPsb1rJiorbNpPFBj1RWdr8X9ihWCB6aiHF
LsZmcEgRlLKCo18OLHh62TFEhZFpASAw3rcv4ZqFlJ0rDGAm2bfAR0CqQ2crfVm7
N3JJnThBMMZKkmTfpEFbVjurxO0g2XU1zxlno2/oQNJgAU32qMIZFQetm+yKzAZe
package io.txb.eventstore;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import rx.Observable;
import rx.Subscriber;
import rx.Subscription;
Verifying that +trevorbernard is my openname (Bitcoin username). https://onename.io/trevorbernard
@trevorbernard
trevorbernard / PushPullTest.java
Created November 22, 2014 22:01
Experimental ZeroMQ Socket API with Context automagically managed for you
package org.zeromq.zmq;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import org.junit.Test;
import static org.zeromq.zmq.ZMQ.*;
public class PushPullTest {