Skip to content

Instantly share code, notes, and snippets.

@supertestnet
supertestnet / burrow.md
Last active March 27, 2024 23:19
Burrow: a federated coinpool built on hedgehog channels

Burrow

Burrow is a proposal for a federated coinpool on top of hedgehog channels. The coinpool can have a bunch of cool properties:

  • a single-honest-party assumption, so the federation can't rug any user unless the keyholders in the federation are all scoundrels

  • users can onboard into the pool without an on-chain transaction (e.g. maybe you send in coins via lightning, or maybe another user gives you your first coins from within the pool)

  • every onboarded user gets their own wallet interface with their own personal balance and Send/Receive buttons

@DavidVorick
DavidVorick / renterprop.md
Last active October 11, 2017 01:27
Renter Propsal - First 15 Sprints

This document is a proposed roadmap for the renter. It contains a lot of long term code projects, and a path to get there incrementally. It is our goal to never refactor more than a small part of the code at a time, and to divide the code cleanly so that multiple people can easily work on the code in parallel.

Sprint 1: Distributed Renter Abstraction

An important feature for moving towards large enterprise customers is a distribtuted renter, where multiple renters use the same filesystem and the same set of contracts. This allows larger systems to be set up with multiple nodes,

/*
* Copyright (C) 2016 Alexander Nasonov.
* (WINT_R macro) Copyright (C) 2005-2016 Mike Pall.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
local getlocal, setlocal = debug.getlocal, debug.setlocal
local function from_err(k, msg)
local info = debug.getinfo(3)
io.stderr:write(string.format(
"%s:%s:%d: local variable '%s' %s in import block\n",
info.source:sub(2),info.name,info.currentline,k,msg))
os.exit()
end
local function sample(it, count, random)
local answer = {}
do
-- first element
local element = it()
if element == nil then
return answer
end
answer[1] = element
@starius
starius / count_chars.c
Created December 14, 2015 16:53
Print chars' counts as C array of ints
/* Print chars' counts as C array of ints */
#include <stdio.h>
// https://en.wikipedia.org/wiki/C_preprocessor#Token_stringification
#define xstr(s) str(s)
#define str(s) #s
#define NLETTERS 256
#define BUFSIZE (1024 * 1024)
@ferrouswheel
ferrouswheel / move_to_github.sh
Created November 8, 2015 06:30
Move a launchpad repository to github
#!/bin/bash
# Destination must exist as empty repo on github
GIT_REPO="git@github.com:opencog/opencog.git"
TEMP_PATH=~/src/opencog_bzr_to_git
echo "Using $TEMP_PATH as working dir"
BRANCHES=(trunk UnityEmbodiment)
mkdir -p ${TEMP_PATH}
cd ${TEMP_PATH}
@Yawning
Yawning / orhttp_example.go
Created April 29, 2015 14:41
How to dispatch HTTP requests via Tor in Go.
// To the extent possible under law, the Yawning Angel has waived all copyright
// and related or neighboring rights to orhttp_example, using the creative
// commons "cc0" public domain dedication. See LICENSE or
// <http://creativecommons.org/publicdomain/zero/1.0/> for full details.
package main
import (
// Things needed by the actual interface.
"golang.org/x/net/proxy"
@1aN0rmus
1aN0rmus / KippoUsers.txt
Created July 21, 2014 14:31
List of unique usernames attempted against my Kippo instance
root
a
b
user1
oracle
postgres
test
kippo
nagios
zabbix