Skip to content

Instantly share code, notes, and snippets.

Avatar
🛩️
Deep house disco, hyper-efficient money.

Zyler zylerdj

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

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
zylerdj / whiteboardCleaner.md
Created Aug 16, 2019 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!
View whiteboardCleaner.md

Description

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:

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

Results

@zylerdj
zylerdj / claim_output.ts
Created Jul 24, 2019
baseball_bet_padres_marlins_bch
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({
txid:
'ab9596efa523e50f2bee749f6ae4cc40cf5bfe6fbf1556e75a4cb994e5700ebd',
View anypay_api_simple.md

Authentication

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

View keybase.md

Keybase proof

I hereby claim:

  • I am stevenzeiler on github.
  • I am stevenzeiler (https://keybase.io/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
tasks:
- name: Fetch repo updates
git: >
repo=git@github.com:my/repo.git
@zylerdj
zylerdj / codius_orchestration.md
Last active Aug 29, 2015
Standard Orchestration Interface
View codius_orchestration.md

Codius Standard Orchestration Interface

Instance State Machine

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

Start Running a Container

POST /instances
@zylerdj
zylerdj / outbound.md
Last active Aug 29, 2015
Gatewayd Protocol Outbound External
View outbound.md

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) {

  gatewayd.protocol.external.outbound.extend({
@zylerdj
zylerdj / bridge_services_lib.js
Created Dec 15, 2014
bridge_services_lib.js
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())
.then(loop)
.catch(resolver.reject);
};