Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
cat <<EOF | xargs -L1 ipfs ping -n 1
QmUd6zHcbkbcs7SMxwLs48qZVX3vpcM8errYS7xEczwRMA
QmbVWZQhCGrS7DhgLqWbgvdmKN7JueKCREVanfnVpgyq8x
QmUEMvxS2e7iDrereVYc5SWPauXPyNwxcy9BXZrC1QTcHE
QmdnXwLrC8p1ueiq2Qya8joNvk3TVVDAut7PrikmZwubtR
QmNSYxZAiJHeLdkBg38roksAR9So7Y5eojks1yjEcUtZ7i
EOF
@raulk
raulk / gist:a436fe10b635e2cb1793f51c871b1eab
Created November 6, 2018 18:34
p2p-biblio-20181106.bib
@article{Freedman,
author = {Freedman, Michael J and Mazi, David},
file = {:Users/raul/Documents/Mendeley/coral-iptps03.pdf:pdf},
mendeley-groups = {Peer-to-peer networks},
title = {{Sloppy hashing and self-organizing clusters}}
}
@article{Baumgart2014,
author = {Baumgart, Ingmar and Mies, Sebastian},
doi = {10.1109/ICPADS.2007.4447808},
file = {:Users/raul/Documents/Mendeley/download.pdf:pdf},
@raulk
raulk / spacemacs-cheshe.md
Last active October 26, 2018 17:25 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@raulk
raulk / ipfs_dht_output_70min.txt
Created September 6, 2018 16:55
70-min output from instrumenting go-libp2p-kad-dht to capture routing table behaviour
This file has been truncated, but you can view the full file.
Initializing daemon...
built DHT table
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.0.132/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit/ipfs/QmdGmB5iczLtmxBrAk8NtJsPDP5E4kiF9w4rAKqsq6u7TE
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/192.168.0.132/tcp/4001
Swarm announcing /ip4/192.168.1.40/tcp/31628
Swarm announcing /ip6/::1/tcp/4001
@raulk
raulk / ipfs_dht_output_3min.txt
Last active September 6, 2018 16:55
3-min output from instrumenting go-libp2p-kad-dht to capture routing table behaviour
→ ipfs daemon
Initializing daemon...
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.0.132/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit/ipfs/QmdGmB5iczLtmxBrAk8NtJsPDP5E4kiF9w4rAKqsq6u7TE
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/192.168.0.132/tcp/4001
Swarm announcing /ip4/192.168.1.40/tcp/35779
Swarm announcing /ip6/::1/tcp/4001
go-libp2p
libp2p implementation in Go
go-reuseport
reuse tcp/udp ports in golang
go-libp2p-kad-dht
A Kademlia DHT implemention on go-libp2p
go-floodsub
@raulk
raulk / > ethql core queries
Last active May 22, 2018 16:28
system design: ethql queries by example
# here to give a title to this gist
/* packet-PROTOABBREV.c
* Routines for PROTONAME dissection
* Copyright 201x, YOUR_NAME <YOUR_EMAIL_ADDRESS>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@raulk
raulk / gist:7d6713aa7b3d21ecaacd
Created August 24, 2015 10:58
wget spider output for ignite.apache.org
[raul@~/kk$] wget -S --reject-regex ".*(java|scala)doc.*" -r -l4 --spider -D apache.org http://ignite.apache.org 2>&1 | grep -E '(\-\-|HTTP\/1\.1)'
--2015-08-24 11:56:46-- http://ignite.apache.org/
HTTP/1.1 200 OK
Remote file exists and could contain links to other resources -- retrieving.
--2015-08-24 11:56:47-- http://ignite.apache.org/
HTTP/1.1 200 OK
--2015-08-24 11:56:47-- http://ignite.apache.org/robots.txt
HTTP/1.1 404 Not Found
--2015-08-24 11:56:48-- http://ignite.apache.org/css/all.css
HTTP/1.1 200 OK