Skip to content

Instantly share code, notes, and snippets.

Deep house disco, hyper-efficient money.

Steven Zeiler stevenzeiler

Deep house disco, hyper-efficient money.
Block or report user

Report or block stevenzeiler

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
stevenzeiler /
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"


stevenzeiler / 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: >
stevenzeiler /
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
stevenzeiler /
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) {

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())
View restify_sequelize.js
function RestifyController(model, name) {
this.model = model; = name
RestifyController.prototype.respondError = function(error, code) {
You can’t perform that action at this time.