Skip to content

Instantly share code, notes, and snippets.

View spikebike's full-sized avatar

Bill Broadley spikebike

View GitHub Profile
@spikebike
spikebike / gist:6dfe54fc620f7da5fd82
Last active September 18, 2015 00:55
Getting started.
IPFS = short description
Installation = cut/paste commands to download and install ipfs
bootstap = init, where config file is, ipfs daemon
View WEB UI
add single file
view single file elsewhere
view single file via gateway
add directory
view dir in IPFS
view dir in fuse
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
/* crude wall clock time keeping, returns a double of seconds */
double
seconds()
{
struct timeval tp;
struct timezone tzp;