Skip to content

Instantly share code, notes, and snippets.

@yusefnapora
yusefnapora / libp2p.md
Created July 29, 2019 21:00
EthBerlinZwei libp2p resources

libp2p

libp2p is a modular framework and protocol suite for developing peer-to-peer applications. Originally part of the IPFS project, libp2p has evolved to meet the needs of a growing community of developers and users.

There are many implementations of libp2p, with go-libp2p being the oldest and most "feature complete". Javascripters can use

@yusefnapora
yusefnapora / multiselect-2-sandbox.proto
Last active September 13, 2019 12:44
early thoughts on data types for multiselect 2
syntax = "proto2";
// The initiator chooses whether to set up a multiplexed connection, or a "one
// off" stream for a single protocol. Single stream connections may be useful
// for bootstraping a hole-punching protocol through a relay and other things
// where you just want to get "in and out" of a connection asap.
enum ConnectionType {
MULTIPLEXED = 1;
SINGLE_STREAM = 2;
}
@yusefnapora
yusefnapora / gitconfig
Created June 30, 2021 17:02
git aliases to checkout the head branch of a repo
[alias]
upstream-name = !git remote | egrep -o '(upstream|origin)' | tail -1
head-branch = !basename $(git symbolic-ref refs/remotes/$(git upstream-name)/HEAD)
cm = !git checkout $(git head-branch)
{
"type": "module",
"moduleType": "javascript/auto",
"layer": null,
"size": 1346,
"sizes": {
"javascript": 1346
},
"built": false,
"codeGenerated": false,