Skip to content

Instantly share code, notes, and snippets.

🎯
Focussed on helping people spend more cryptocurrency.

Steven Zeiler stevenzeiler

🎯
Focussed on helping people spend more cryptocurrency.
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
stevenzeiler / 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

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