Skip to content

Instantly share code, notes, and snippets.

View dckc's full-sized avatar

Dan Connolly dckc

View GitHub Profile

Board: WEC

Wile E. Coyote for Board Member

Wile E. Coyote

In each episode, the cunning, insidious and constantly hungry Coyote repeatedly attempts to catch and subsequently eat the Road Runner, a fast-running ground bird, but is never successful. Instead of his animal instincts, the Coyote uses absurdly complex contraptions (sometimes in the manner of Rube Goldberg) to try to catch his prey, which comically backfire, with the Coyote often getting injured in slapstick fashion.

Board: RR

@dckc
dckc / rnode.yml
Created September 14, 2020 04:32
swagger: "2.0"
info:
title: "RChain node (rnode)"
version: "0.9.25.2"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
paths:
/status:
get:

I ran into the "pick a matrix client" thing again today...

https://matrix.to/#/#freenode_#etesync:matrix.org

I picked a web client... but then there was a login thing... I want to login using my own domain.

What does that cost?

Can I docker run something on my colo node?

[9:44 AM] dckc:: SRI only works for <script> and . [9:47 AM] dckc:: <script> does seem to work within data: ... so one could construct a data: URI that uses <script> with subresource integrity to securely fetch js (which would in turn supply HTML, CSS, etc.). .. [9:47 AM] dckc:: so yes, that's technically sufficient to do secure content-addressable storage retrieval... [9:47 AM] dckc:: but the UX isn't much better than having people install a browser add-on [9:48 AM] dckc:: now a browser-add-on that would verify web pages based on on-chain info would be straightforward

rchain/RevVault.rho at dev · rchain/rchain https://github.com/rchain/rchain/blob/dev/casper/src/main/resources/RevVault.rho#L193-L196

20:18 connolly@jambox$ cd /home/connolly/projects/agoric/agoric-sdk ; env 'NODE_OPTIONS=--require "/snap/codium/56/usr/share/codium/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js" ' 'VSCODE_INSPECTOR_OPTIONS={"inspectorIpc":"/tmp/node-cdp.18618-8.sock","deferredMode":false,"waitForDebugger":"","execPath":"/home/connolly/.nvm/versions/node/v14.2.0/bin/node","onlyEntrypoint":false,"fileCallback":"/tmp/node-debug-callback-c5b794cd1092179f"}' /home/connolly/.nvm/versions/node/v14.2.0/bin/node -r esm ./packages/SwingSet/test/workers/test-worker.js
Debugger listening on ws://127.0.0.1:39491/dc9e2337-a7cb-4643-9013-2eb97e89cabe
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Removing intrinsics.Reflect.decorate
Removing intrinsics.Reflect.metadata
Removing intrinsics.Reflect.defineMetadata
Removing intrinsics.Reflect.hasMetadata
Removing intrinsics.Reflect.hasOwnMetadata
Removing intrinsics.Reflect.getMetadata

xs-vat-worker crashed trying to import (eval) a 200KB string of js.

struggling to reproduce problem

connolly@jambox:~/projects/agoric/agoric-sdk/packages/xs-vat-worker/test/bug1$ rm -rf build && mkdir build
connolly@jambox:~/projects/agoric/agoric-sdk/packages/xs-vat-worker/test/bug1$ mcconfig -o build -d -m -p x-cli-lin
# xsc Resource.xsb
# xsc instrumentation.xsb
# xsc main.xsb
-*- mode: compilation; default-directory: "~/projects/agoric/agoric-sdk/packages/xs-vat-worker/tools/" -*-
Compilation started at Mon Aug  3 22:54:45

node -r esm findmods.js $(cd ../../..; pwd) ../src/main.js install-ses >map1.json
VAT1=../zoe/test/swingsetTests/zoe/vat-zoe.js TRANSCRIPT=transcript-zoe.txt WORKERBIN=./node-vat-worker node -r esm kernelSimulator.js
spawning Object <[Object: null prototype] {}> { workerBin: './node-vat-worker' }
loadVat done.
dispatching: v5.t.0
syscall request Object <[Object: null prototype] {}> {
msgtype: 'syscall',
method: 'fulfillToPresence',
args: Array <Array <[Object: null prototype] {}>>(2) [ 'p-60', 'o+1' ]
}
dispatch done: v5.t.0
@dckc
dckc / .eslintignore
Last active August 2, 2020 21:06 — forked from warner/bootstrap.js
make-vat-transcript
/dist/
/scripts/
/xs_modules/
/swingset/

endo2

Run

(presumes build, below)

~/projects/moddable/examples/js/compartments/endo2$ ./build/bin/lin/debug/endo2 
lin_xs_cli: loading top-level main.js
 lin_xs_cli: loaded