Skip to content

Instantly share code, notes, and snippets.

Deep house disco, hyper-efficient money.

Zyler zylerdj

Deep house disco, hyper-efficient money.
View GitHub Profile
zylerdj /
Created Nov 22, 2020
How To Turn PayPow From A Tool Into A Marketplace

Currently Anypay is the only real seller of goods on the platform in the form of gift cards. If we wanted other people to be able to sell goods on the platform we could all them to publish product listings from their paymail account. That way they would be able to sell anything they wanted and anyone could list anything on the site. Because the listing is on-chain it incentivizes truthfullness and reputation because postings can never be removed. Therefore it is likely only legal goods and services will ever be sold. From a user standpoint it because super easy to shop and buy because all they have to do is swipe their bitcoin wallet to pay. Merchants get instant certainty, instant payouts, a clear record of purchases that can never be corrupted. Merchants own their data therefore can never be de-platformed from their own data. In this way Anypay can remove itself as the provider of services and become the provider of a platform which grows in value as more and more people make purchases. No one can be banned

zylerdj /
Created Aug 16, 2019 — forked from lelandbatey/
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!


This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"


zylerdj / claim_output.ts
Created Jul 24, 2019
View claim_output.ts
import * as jeton from 'jeton-lib';
const PrivateKey = jeton.PrivateKey
const PublicKey = jeton.PublicKey
const Signature = jeton.Signature
const OutputScript = jeton.escrow.OutputScript
const Transaction = jeton.Transaction
var utxo1 = new Transaction.UnspentOutput({


use http basic auth to authenticate requests to generate invoices

where the username is your access token and the password an empty string.

Generating Invoices

Send the amount in terms of USD, and the currency you want to collect being


Keybase proof

I hereby claim:

  • I am stevenzeiler on github.
  • I am stevenzeiler ( on keybase.
  • I have a public key whose fingerprint is B6BE FE62 7203 02AA 602D EE47 F5BD CFF8 D80B 88FF

To claim this, I am signing this object:

View ansible.yml
- name: Deploy new site release
user: deployer
hosts: all
- name: Fetch repo updates
git: >
zylerdj /
Last active Aug 29, 2015
Standard Orchestration Interface

Codius Standard Orchestration Interface

Instance State Machine

pending | running | shutting-down | terminated | stopping | stopped

Start Running a Container

POST /instances
zylerdj /
Last active Aug 29, 2015
Gatewayd Protocol Outbound External

Gatewayd Protocol Outbound External

Purpose: To discover the interface for Gateway Services Protocol to be extended per a given use case

In gatewaydfile.js:

module.exports = function(gatewayd) {

zylerdj / bridge_services_lib.js
Created Dec 15, 2014
View bridge_services_lib.js
var Service = require('bridge-quote-service')
var RipplePaymentQuote = Service.RipplePaymentQuote
var ExternalPaymentQuote = Service.ExternalPaymentQuote
var BridgeQuote = Service.BridgeQuote
var RippleQuote = RipplePaymentQuote.extend({
authorize: function(payment) {
if (payment.to_currency !== 'XRP') {
this.reject('Destination Currency Must be XRP')
View promise_while.js
var Promise = require("bluebird");
Promise.while = function(condition, action) {
var resolver = Promise.defer();
var loop = function() {
if (!condition()) return resolver.resolve();
return Promise.cast(action())