Skip to content

Instantly share code, notes, and snippets.

View amiller's full-sized avatar

Andrew Miller amiller

View GitHub Profile
NetBeans: Executing 'mvn -Dnetbeans.execution=true install'
NetBeans: JAVA_HOME=/usr/lib/jvm/java-6-sun
Scanning for projects...
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Error building POM (may not be this project's POM).
Project ID: org.codehaus.mojo:nbm-maven-plugin
/home/amiller/projects/open-transactions/testwallet:/home/amiller/projects/open-transactions:/home/amiller/projects/Open-Transactions/testwallet:/home/amiller/projects/open-transactions
Utility.addDirToRuntime: Setting java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/client:/home/amiller/projects/Open-Transactions/testwallet/:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib:/home/amiller/projects/open-transactions/testwallet:/usr/java/packages/lib/i386:/lib:/home/amiller/projects/Open-Transactions/testwallet:/home/amiller/projects/open-transactions:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/i386
Load.loadZMQ: (libzmq is already loaded. Skipping.)
Load.loadOTAPI: Success loading otapi-java.jnilib
/home/amiller/.ot/client_data
wallet.xml
Calling otapi.OT_API_Init(/home/amiller/.ot/client_data)
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.ot.wrapper.jni.otapiJNI.swig_module_init()V
at org.ot.wrapper.jni.ota
....
checking how to hardcode library paths into programs... immediate
checking for boostlib >= 1.46.0... configure: We could not detect the boost libraries (version 1.46 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
checking whether the Boost::Thread library is available... yes
checking for DEPS... no
configure: error: Package requirements (protobuf >= 2.4.0 openssl >= 1.0.0
chaiscript >= 3.1.0 libzmq >= 2.1.9) were not met:
Requested 'openssl >= 1.0.0' but version of OpenSSL is 0.9.8o
Requested 'libzmq >= 2.1.9' but version of libzmq is 2.1.5
#!/bin/sh
#inspired by http://art.ubuntuforums.org/showpost.php?p=9744970&postcount=19
#...and http://thecodecentral.com/2011/01/18/fix-ubuntu-10-10-suspendhibernate-not-working-bug
# tidied by tqzzaa :)
VERSION=1.1
DEV_LIST=/tmp/usb-dev-list
DRIVERS_DIR=/sys/bus/pci/drivers
DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd
HEX="[[:xdigit:]]"
#!/bin/bash
# Check for swig
if ! swig -version > /dev/null; then
echo Cannot find swig...
exit 1
fi
-module(mutable).
-export([var/0, get/1, set/2]).
loop(Val) ->
receive
{get, Pid} ->
Pid ! Val,
loop(Val);
{set, V} ->
loop(V)
<amiller> hey i have a question about making a web frontend to freenet, where i host a freenet node on a webhost, but the encryption/signature is done from my browser
<amiller> as i understand it, the 'insert uri' is the secret key so i wouldn't want to transmit that directly
<evanbd> amiller there's lots of separate insert uris
<amiller> ah, sorry i'm usually thinking in SSK mode
<evanbd> I'm not quite sure what you mean by a "web frontend"
<evanbd> how is that different than FProxy?
<amiller> if i upload a file via fproxy, fproxy receives the private key for signing the SSK, is that right?
<amiller> it's difficult to describe because i'm willing to compromise some of the security claims of freenet for this, in the sense that i don't expect 'anonymity' to be preserved if the webhost is untrusted
<evanbd> Correct.
<amiller> all i really care about is that i don't reveal the signing key to the webhost
@amiller
amiller / gist:2232636
Created March 29, 2012 02:33
alternate bitcoin proof of work
"""
An alternate proof-of-work scheme for Bitcoin where competitive mining implies a
low marginal cost of "honesty." The new work has nothing to do with GPUs, but
instead requires random access to the 'tx_outputs' database, just as you would need
in order to thoroughly double check incoming transactions against history, i.e. to
be "honest" in the sense of the Satoshi paper [1]. May we lug Ascii Bernanke around
forever.
Parameters:
N: the total number of txoutputs, each of which can be spent at most once
@amiller
amiller / tahoe_server.py
Created March 31, 2012 02:36
tahoe readonly server
from gevent import monkey
monkey.patch_all()
from bottle import route, run, static_file, response
import os
import argparse
import subprocess
static_path = os.path.abspath('.')
@amiller
amiller / ObjExporter.rb
Created April 13, 2012 09:05
Sketchup OBJ Exporter (put in "%APPDATA%/Google Sketchup 8/Sketchup/Plugins" http://sketchuptips.blogspot.com/2009/01/wavefront-obj-exporter-with-materials.html
#-----------------------------------------------------------------------------
#
# WaveFront .Obj File Exporter for Google SketchUp
# Author: M van der Honing, [email protected]
#
# Based on ZbylsXExporter by Zbigniew Skowron, [email protected]
#
# I'd like to thank Jonathan Harris and Erwan de Cadoudal for their exporters.
# They helped me a lot.
#