Skip to content

Instantly share code, notes, and snippets.

💭
Hi!

Jim Pick jimpick

💭
Hi!
Block or report user

Report or block jimpick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jimpick
jimpick / README.md
Created Jul 24, 2019
Testlab + Vagrant + IPFS Demo
View README.md
View gist:98c0b673b691096015059b337100ca5a
3Box is a social profiles network for web3. This post links my 3Box profile to my Github account!
✅ did:muport:QmYFb4EX1j3W8NYXyLuLBQPht5NaRx9dnBkAW11meScVrH ✅
Create your profile today to start building social connection and trust online. https://3box.io/
View probe-asks-subset.js
const util = require('util')
const spawn = require('child_process').spawn
const execFile = util.promisify(require('child_process').execFile)
const PQueue = require('p-queue')
const subset = require('./asks-subset.json')
const asks = subset.sort((a, b) => a.Price - b.Price)
async function run () {
let probeCid = await importFile('hello.txt')
@jimpick
jimpick / 1_summary.txt
Last active Apr 1, 2019
Filecoin Simple Probe Test - User Devnet 2019.03.29 v0.1.4
View 1_summary.txt
Attempted to store the contents of hello.txt ("Hi my name is Jim") on every miner with a current advertised ask, for a 24 hours duration.
Number of asks: 72
Proposals accepted: 15 of 72
Number of deals transitioned to 'posted' state: 9 of 15
Successful retrievals: 7 of 9
@jimpick
jimpick / probe-asks-subset.js
Created Feb 26, 2019
node.js program to propose small storage deal to multiple miners in parallel
View probe-asks-subset.js
const util = require('util')
const spawn = require('child_process').spawn
const execFile = util.promisify(require('child_process').execFile)
const PQueue = require('p-queue')
const subset = require('./asks-subset.json')
const asks = subset.sort((a, b) => a.Price - b.Price)
async function run () {
let probeCid = await importFile('hello.txt')
@jimpick
jimpick / output.txt
Last active Feb 25, 2019
Filecoin + zfec
View output.txt
Filecoin - Split pictures.tar.gz
================================
Sunday 9:00pm - 22070 + 2880 = 24950
> (env) jpimac:pictures-zfec-3-of-5 filecoin2$ ls -lh
total 294600
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.0_5.fec
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.1_5.fec
-rwxr-xr-x 1 filecoin2 staff 29M Feb 24 21:01 pictures.tar.gz.2_5.fec
View list-sorted-asks.sh
#! /bin/bash
HEAD=`go-filecoin show block $(go-filecoin chain head | jq .[0]['"/"'] | tr -d \") | sed -n 's/Height: //p'`
go-filecoin client list-asks --enc=json | jq -C -s "map(select(.Expiry > $HEAD) | {Miner,ID, Price: .Price | tonumber, Expiry}) | sort_by(.Price) | reverse"
View summary.md
@jimpick
jimpick / 20190207_06_58_34.txt
Created Feb 7, 2019
Example output of distributed tracing - 15 runs, random-collaboration test from peer-base, 12 peers x 1000 characters
View 20190207_06_58_34.txt
Starting Rendezvous
Test Run 1 of 15
PID: 8745
Test Node.js
rendezvous: Listening on: http://0.0.0.0:9090

 collaboration with random changes
Swarm listening on /ip4/127.0.0.1/tcp/9090/ws/p2p-websocket-star/ipfs/Qmc5WHmQzyBn9pi6qrMg9XHcU7m51Myo5CchEjMb3qmFo9
View output.txt
$ node rga-fail.js
replicaPear initial: p
replicaVowels: ea
replicaPear after applying vowels: pea
replicaPear final: pear
Apply deltas in original order:
replica1: pear
Apply deltas in modified order:
You can’t perform that action at this time.