Skip to content

Instantly share code, notes, and snippets.

View xor-freenet's full-sized avatar

xor-freenet

View GitHub Profile
@xor-freenet
xor-freenet / gist:28925cee6e44ad899060f91659250cd2
Created September 22, 2018 14:43
WoT unit test benchmark, $ git describe = build0020-322-ga8c87dc
269.196 sec plugins.WebOfTrust.SubscriptionManagerFCPTest.testAllRandomized()
221.384 sec plugins.WebOfTrust.introduction.IntroductionClientTest.testFullIntroductionCycle()
186.589 sec plugins.WebOfTrust.XMLTransformerTest.testMaximalOwnIdentityXMLSize()
138.34 sec plugins.WebOfTrust.IdentityFetcherTest.testInsertAndFetch()
95.664 sec plugins.WebOfTrust.WoTTest.test_RestoreOwnIdentity_DeleteOwnIdentity_Chained()
60.322 sec plugins.WebOfTrust.RankComputationTest.testAndBenchmarkRankComputationImplementations()
44.024 sec plugins.WebOfTrust.IdentityFileQueueTest.testByComparingResultsOfTwoImplementations()
7.709 sec plugins.WebOfTrust.WoTTest.testStability()
7.258 sec plugins.WebOfTrust.AbstractMultiNodeTestSelfTest.testTerminate()
6.445 sec plugins.WebOfTrust.SubscriptionManagerFCPTest.testSubscribeUnsubscribe()
@xor-freenet
xor-freenet / DONATIONS.md
Last active June 5, 2018 02:52
@xor-freenet's donation addresses 2018

Bitcoin: 1LJvH1Zq9AYPQd14xvBeaqWvYVNHhNdezt
Ethereum: 0x58c9BA1F7d82c873087f91193969782c099D6216

Use Shapeshift to convert any other cryptocurrency directly to my above Bitcoin address.

Notice it has a 5 minute timeout after starting the transaction - you must send the coins in that timespan, otherwise they'll be returned. I've tested Shapeshift myself and it does seem to work! :)

[junit] Running freenet.client.filter.ContentFilterTest
[junit] Testsuite: freenet.client.filter.ContentFilterTest
[junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.483 sec
[junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.483 sec
[junit]
[junit] Testcase: testMetaRefresh took 0.307 sec
[junit] FAILED
[junit] expected:<<!-- [GenericReadFilterCallback.malformedRelativeURL]-->> but was:<<!-- [Malformed URL (relative): There is no @ in that URI! ()]-->>
[junit] junit.framework.ComparisonFailure: expected:<<!-- [GenericReadFilterCallback.malformedRelativeURL]-->> but was:<<!-- [Malformed URL (relative): There is no @ in that URI! ()]-->>
[junit] at junit.framework.Assert.assertEquals(Assert.java:100)
@xor-freenet
xor-freenet / fred-failure.txt
Last active August 11, 2016 08:20
fred next unit test failure
$ git describe
build01475-122-g727c600
$ ant clean && ant -Dtest.skip=false
[...]
[junit] Testcase: testPersistentSmallSplitfileNoLastBlockChooseAfterResume took 0.001 sec
[junit] Caused an ERROR
[junit] fallocate returned 95
[junit] java.io.IOException: fallocate returned 95
[junit] at freenet.support.io.Fallocate.execute(Fallocate.java:82)
@xor-freenet
xor-freenet / gist:127e0753159efa7c5acc17c74a7ddd15
Last active August 4, 2016 22:34
fred build01475: Slow USK unsubscribing blocking WoT shutdown for over an hour
INFO | jvm 1 | 2016/08/05 00:14:39 | "<noname>(8539)" daemon prio=10 tid=0x00007f2894367800 nid=0x35ca runnable [0x00007f28831b0000]
INFO | jvm 1 | 2016/08/05 00:14:39 | java.lang.Thread.State: RUNNABLE
INFO | jvm 1 | 2016/08/05 00:14:39 | at java.util.ArrayList.remove(ArrayList.java:510)
INFO | jvm 1 | 2016/08/05 00:14:39 | at freenet.client.async.KeyListenerTracker.removePendingKeys(KeyListenerTracker.java:113)
INFO | jvm 1 | 2016/08/05 00:14:39 | - locked <0x0000000780442f98> (a freenet.client.async.KeyListenerTracker)
INFO | jvm 1 | 2016/08/05 00:14:39 | at freenet.client.async.KeyListenerTracker.removePendingKeys(KeyListenerTracker.java:142)
INFO | jvm 1 | 2016/08/05 00:14:39 | at freenet.client.async.ClientRequestScheduler.removePendingKeys(ClientRequestScheduler.java:261)
INFO | jvm 1 | 2016/08/05 00:14:39 | at freenet.client.async.BaseSingleFileFetcher.unregisterAll(BaseSingleFileFetcher.java:185)
INFO | jvm 1 | 2016/0
@xor-freenet
xor-freenet / gist:4dc3f8430b978bf761162c9d2c415020
Last active June 4, 2016 20:59
WoT test failures likely triggered by fred branch 'toad-plugins-disable' = https://github.com/freenet/fred/pull/527
cd fred
git fetch --all
git checkout 69b39e71c67f1affeaf0e9d0096962700fadb7f9
ant clean && ant -Dtest.skip=true
cd plugin-WebOfTrust
git fetch --all
git checkout ae56c33c96e1e11717d3baadea4e679ccd309758
ant clean && ant -Dtest.skip=false -Dtest.class=plugins.WebOfTrust.SubscriptionManagerFCPTest
@xor-freenet
xor-freenet / gist:c2ec4c245dbb32fd699666c161b651d2
Last active May 23, 2016 18:29
build01473 extensive unit test failures
git checkout build01473
ant clean && ant -Dtest.skip=false -Dtest.extensive=true -Dtest.class=freenet.client.async.SplitFileInserterStorageTest
tried 4 times on 1472, all succeeded.
tried 5 times on 1473, failed every time with:
[junit] Testcase: testRoundTripDataBlocksOnly took 103.758 sec
[junit] Caused an ERROR
[junit] Java heap space
[junit] java.lang.OutOfMemoryError: Java heap space
@xor-freenet
xor-freenet / LocaleTest.java
Last active May 14, 2016 15:13
Print all installed Java Locales using: git clone https://gist.github.com/483583ab5166fea2a4b21575c2d2a6db.git LocaleTest && cd LocaleTest && javac LocaleTest.java && java LocaleTest
import java.util.ArrayList;
import java.util.Collections;
import java.util.Locale;
public class LocaleTest {
public static void main(String[] args) {
Locale[] locales = Locale.getAvailableLocales();
ArrayList<String> localesAsStrings
= new ArrayList<String>(locales.length);
@xor-freenet
xor-freenet / gist:648f0bf7005a78b1a83cf2ca3bcc5e86
Created May 14, 2016 14:49
fgrep -i portuguese iso-639-3_20100707.tab
idb I L Indo-Portuguese
mcm I L Malaccan Creole Portuguese
por por por pt I L Portuguese
psr I L Portuguese Sign Language
vkp I L Korlai Creole Portuguese
@xor-freenet
xor-freenet / gist:d0dea7e6bd26f5c538c9
Last active February 8, 2016 22:38
Ideas for testing WoTC
approach 1:
[07:50:09 AM] <xor-freenet> Ademan: as i'm one of the paranoid kind, here's an idea i've had which could be used both to demonstrate how to use the WoT-Client (let's call it WoTC :), and to validate whether it works correctly:
[07:52:14 AM] <xor-freenet> Ademan: have a mode of operation where it uses java serialization to dump the received data to disk, in the following layout: directory "Identities" contains files "$identity_id.wot-identity"; directory "Trusts" contains files "$trust_id.wot-identity", directory "Scores" contains files "$score_id.wot-identity" .... where $identity_id, $trust_id and $score_id are just the value of Persistent.getID() of the objects
[07:53:55 AM] <xor-freenet> Ademan: that would nicely with synchronization: overwrite all files by ID, then have do for(all files) { if(file.versionID != currentVersionID) delete() }
[07:54:09 AM] <xor-freenet> Ademan: and also with individual events: just overwrite file by ID (or delete if the object was deleted)
[07:54:20 AM] <xor-free