Skip to content

Instantly share code, notes, and snippets.

View dignifiedquire's full-sized avatar

Friedel Ziegelmayer dignifiedquire

View GitHub Profile
npm test
> libp2p-swarm@0.26.7 test /Users/dignifiedquire/opensource/ipfs/js-ipfs-lerna/packages/js-libp2p-swarm
> gulp test
[16:53:45] Using gulpfile ~/opensource/ipfs/js-ipfs-lerna/packages/js-libp2p-swarm/gulpfile.js
[16:53:45] Starting 'test'...
[16:53:45] Starting 'test:node'...
[16:53:45] Starting 'mocha'...

Keybase proof

I hereby claim:

  • I am dignifiedquire on github.
  • I am dignifiedquire (https://keybase.io/dignifiedquire) on keybase.
  • I have a public key ASDLaoYMTBPA_gi0nOSoQXJhwpsztSaNvriiG3de48y2OAo

To claim this, I am signing this object:

'use strict'
const expect = require('chai').expect
function mapSeries (list, func) {
const res = []
return list.reduce((acc, next) => {
return acc.then((val) => {
/**
* A doubly linked list-based Least Recently Used (LRU) cache. Will keep most
* recently used items while discarding least recently used items when its limit
* is reached.
*
* Licensed under MIT. Copyright (c) 2010 Rasmus Andersson <http://hunch.se/>
* See README.md for details.
*
* Illustration of the design:
*

${name}

${short_desc} It is installable via npm install --save ${npm-name}, it can also be used directly in the browser.

Quick Examples

${quick_example}
23:55:26.492 ERROR providers: error reading providers: open /home/ipfs/npm/datastore/088049.log: too many open files providers
.go:259
23:55:29.615 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
23:55:39.612 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
23:55:39.615 ERROR providers: error reading providers: open /home/ipfs/npm/datastore/088049.log: too many open files provider$
.go:259
23:55:49.613 ERROR providers: error reading providers: open /home/ipfs/npm/datastore/088049.log: too many open files provider$
.go:259
23:55:49.615 ERROR mdns: mdns lookup error: failed to bind to any unicast udp port mdns.go:135
23:55:50.980 ERROR providers: error reading providers: open /home/ipfs/npm/datastore/088049.log: too many open files provider$
[ipfs@ingwe ~]$ IPFS_PATH=/home/ipfs/npm/ ipfs files ls /npm-registry |wc -l
Error: Post http://127.0.0.1:5002/api/v0/files/ls?arg=%2Fnpm-registry&encoding=json&stream-channels=true: read tcp 127.0.0.1:56472->127.0.0.1:5002: read: connection reset by peer
0
[ipfs@ingwe ~]$ IPFS_PATH=/home/ipfs/npm/ ipfs files ls /npm-registry |wc -l
Error: api not running
0
[ipfs@ingwe ~]$ tmux attach -t daemon
[detached (from session daemon)]
[ipfs@ingwe ~]$ IPFS_PATH=/home/ipfs/npm ipfs files ls /npm-registry |wc -l
Error: api not running
package main
import (
"crypto/aes"
"crypto/cipher"
"bytes"
"fmt"
)
func main() {
// This should be valid
// according to https://tools.ietf.org/html/rfc3447#appendix-A.1.2
const RSAPrivateKey = asn1.define('RSAPrivateKey', function () {
this.seq().obj(
this.key('version').int(),
this.key('modulus').int(),
this.key('publicExponent').int(),
this.key('privateExponent').int(),
this.key('prime1').int(),