Skip to content

Instantly share code, notes, and snippets.

@sammacbeth
sammacbeth / output.txt
Created October 22, 2018 11:46
dat doctor output
dat doctor
Welcome to Dat Doctor!
Software Info:
linux x64
Node v8.9.3
Dat Doctor v2.1.0
dat v13.11.4
Running Basic Tests (Checks your Dat installation and network setup)

Keybase proof

I hereby claim:

  • I am sammacbeth on github.
  • I am sammacbeth (https://keybase.io/sammacbeth) on keybase.
  • I have a public key ASBUuehB7wKMwWZpvpHKPT3SKcGn-6WFh0K3QM1jUE-Wlwo

To claim this, I am signing this object:

@sammacbeth
sammacbeth / presage2_mongo.py
Created June 11, 2012 14:24
Utility script for data stored in Mongodb by Presage2
#!/usr/bin/python
import sys
import argparse
from pymongo import Connection
## Add optional arguments for the mongodb connection
def add_mongo_args(parser):
parser.add_argument('--host', default='localhost', help='mongodb host')
parser.add_argument('--port', type=int, default=27017, help='mongodb port')
parser.add_argument('--db', default='presage', help='mongodb database name')
@sammacbeth
sammacbeth / presage2-cli.sh
Created September 22, 2011 16:37
Script to wrap presage2 CLI operations.
#!/bin/sh
mvn exec:java -Dexec.mainClass="uk.ac.imperial.presage2.core.cli.Presage2CLI" -Dexec.args="$*" --quiet
@sammacbeth
sammacbeth / HelloAgent.java
Created July 12, 2011 16:38
Multiple networks in presage simulation
public class HelloAgent extends AbstractParticipant implements HasLocation,
HasPerceptionRange, HasCommunicationRange {
final protected NetworkAdaptor uplink;
public HelloAgent(UUID id, String name, Location loc,
double perceptionRange, double communicationRange, NetworkAdaptor uplink) {
super(id, name);
...
@sammacbeth
sammacbeth / install.sh
Created May 25, 2011 11:12
Presage2 build/install on debian-linux
## Presage2 build/install on debian-linux ##
# Currently requires access behind imperial college's
# firewall for access to our maven repository.
# install package deps
sudo apt-get install git-core maven2 openjdk-6-jdk
# get Presage source
git clone git://github.com/Presage/Presage2.git