Skip to content

Instantly share code, notes, and snippets.

View stevenzeiler's full-sized avatar
🛩️
Deep house disco, hyper-efficient money.

Steven Zeiler stevenzeiler

🛩️
Deep house disco, hyper-efficient money.
View GitHub Profile

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

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:

---
- name: Deploy new site release
user: deployer
hosts: all
tasks:
- name: Fetch repo updates
git: >
[email protected]:my/repo.git
@stevenzeiler
stevenzeiler / codius_orchestration.md
Last active August 29, 2015 14:14
Standard Orchestration Interface

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 August 29, 2015 14:12
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) {

  gatewayd.protocol.external.outbound.extend({
@stevenzeiler
stevenzeiler / bridge_services_lib.js
Created December 15, 2014 19:55
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')
}
@stevenzeiler
stevenzeiler / promise_while.js
Created December 10, 2014 22:39
Promise.while
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);
};
@stevenzeiler
stevenzeiler / restify_sequelize.js
Created November 21, 2014 23:20
restify sequelize
function RestifyController(model, name) {
this.model = model;
this.name = name
}
RestifyController.prototype.respondError = function(error, code) {
}
<body>
<script>
var ctx = new AudioContext();
var tone = ctx.createOscillator();
var gain = ctx.createGain();
var high = 220;
var low = 22;
var boing = function(x) {
@stevenzeiler
stevenzeiler / software_architecture_questions.md
Created October 21, 2014 16:15
Software Architecture Questions Template

Architecture Questions:

Application: Is the application SOA oriented?

Does the application provide standard authentication mechanisms? (profiling, groups, roles, LDAP integration)?

Does the application provide monitoring and tracking of the operations executed?