Skip to content

Instantly share code, notes, and snippets.

🚀
launching...

Eric Martindale martindale

🚀
launching...
Block or report user

Report or block martindale

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Signet 2019-06-28 Network.md

Signet

This is a description of how to get started with Signet. This document assumes you are capable of using git, and that you are able to compile Bitcoin. (If you have not yet done so, you should begin by doing that now.)

Fetch and compile signet

$ git clone https://github.com/kallewoof/bitcoin.git signet
$ cd signet
$ git checkout signet-0.18
@martindale
martindale / ff.py
Created Dec 31, 2018 — forked from elaineo/ff.py
Follow Friday
View ff.py
# -*- coding: utf-8 -*-
from TwitterAPI import TwitterAPI
from collections import Counter
import json
import time
import logging
# Edit ff.py for your account. Go to https://apps.twitter.com/ to get your API keys.
# Don't forget to fill in your screen name (or someone else's).
View state.js
(function () { function r (e, n, t) { function o (i, f) { if (!n[i]) { if (!e[i]) { var c = typeof require === 'function' && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); var a = new Error("Cannot find module '" + i + "'"); throw a.code = 'MODULE_NOT_FOUND', a; } var p = n[i] = {exports: {}}; e[i][0].call(p.exports, function (r) { var n = e[i][1][r]; return o(n || r); }, p, p.exports, r, e, n, t); } return n[i].exports; } for (var u = typeof require === 'function' && require, i = 0; i < t.length; i++)o(t[i]); return o; } return r; })()({1: [function (require, module, exports) {
var asn1 = exports;
asn1.bignum = require('bn.js');
asn1.define = require('./asn1/api').define;
asn1.base = require('./asn1/base');
asn1.constants = require('./asn1/constants');
asn1.decoders = require('./asn1/decoders');
asn1.encoders = require('./asn1/encoders');
View tag_room.sh
# This should be the public-facing name (ie: dns name)
HOME_SERVER_URL="https://matrix.org"
# The room ID is NOT the room alias. The ID can be found at the bottom of the room settings dialog in riot-web
ROOM_ID="!AbCDef823s:matrix.org"
# This is your user ID and access token. The access token must match the user.
USER_ID="@turt2live:matrix.org" # The home server should match this domain as well (ie: t2l.io as a HS should be :t2l.io in the user)
ACCESS_TOKEN="token_here"
View synapse.error.log
2018-07-16 23:10:46,900 - synapse.access.http.8010 - 92 - INFO - POST-9889- 127.0.0.1 - 8010 - Received request: POST /_matrix/client/r0/rooms/!2d3d0c0008263d371700321f3600062b1900%3Aexample.com/invite?
2018-07-16 23:10:46,901 - synapse.http.client - 94 - INFO - POST-9889- Sending request GET https://example.com/_matrix/identity/api/v1/lookup?medium=email&address=someone%40someoneelse.com
2018-07-16 23:10:46,913 - synapse.http.client - 109 - INFO - POST-9889- Received response to GET https://example.com/_matrix/identity/api/v1/lookup?medium=email&address=someone%40someoneelse.com: 404
2018-07-16 23:10:46,914 - synapse.http.server - 101 - ERROR - POST-9889- Failed handle request via <function _async_render at 0x7f401a34c398>: <SynapseRequest at 0x7f3fe206ca70 method='POST' uri='/_matrix/client/r0/rooms/!2d3d0c0008263d371700321f3600062b1900%3Aexample.com/invite?' clientproto='HTTP/1.1' site=8010>: Traceback (most recent call last):
File "/home/synapse/workspace/local/lib/python2.7/site-packages/twisted/inter
View progress.log
[eric@isengard fabric] (machine) ⚡ git fetch
remote: Counting objects: 250, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 250 (delta 55), reused 58 (delta 53), pack-reused 186
Receiving objects: 100% (250/250), 56.69 KiB | 0 bytes/s, done.
Resolving deltas: 100% (169/169), completed with 20 local objects.
From github.com:martindale/fabric
20f15b9..6ef4b35 machine -> origin/machine
* [new branch] chat-example -> origin/chat-example
8759d42..f7a18ee cli-updated -> origin/cli-updated
@martindale
martindale / combinators.js
Created Feb 20, 2018 — forked from Avaq/combinators.js
Common combinators in JavaScript
View combinators.js
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));
View insertParsedMessageRoll.php
<?php
function insertParsedMessageRoll($textParts) {
if(count($textParts) == 1) {
// default is one d6:
$text = '/roll '.$this->getUserName().' 1d6 '.$this->rollDice(6);
} else {
$diceParts = explode('d', $textParts[1]);
if(count($diceParts) == 2) {
//Number of times to roll
$number = $diceParts[0];
View bitcoin-value-proposition.md

A lot of people on Reddit think of Bitcoin primarily as a competitor to card payment networks. I think this is more than a little odd-- Bitcoin is a digital currency. Visa and the US dollar are not usually considered competitors, Mastercard and gold coins are not usually considered competitors. Bitcoin isn't a front end for something that provides credit, etc.

Never the less, some are mostly interested in Bitcoin for payments (not a new phenomenon)-- and are not so concerned about what are, in my view, Bitcoin's primary distinguishing values-- monetary sovereignty, censorship resistance, trust cost minimization, international accessibility/borderless operation, etc. (Or other areas we need to improve, like personal and commercial privacy) Instead some are very concerned about Bitcoin's competitive properties compared to legacy payment networks. ... And although consumer payments are only one small part of whole global space of money, ... mon

You can’t perform that action at this time.