Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Mr Hash MrHash

🎯
Focusing
  • Borderless
View GitHub Profile
@MrHash
MrHash / hodl-invoice.py
Last active Dec 6, 2019
c-lightning hodl invoice plugin example only
View hodl-invoice.py
#!/usr/bin/env python3
from lightning import Plugin
import json
plugin = Plugin()
heldinvoices = dict()
@plugin.init()
def init(options, configuration, plugin):
plugin.log("Plugin hodl-invoice initialized")
View gist:35bf4859eb3d90d5d79a7ca592ce3da0

Solid Federation

Mission

To establish and secure a strong, reliable, and independent geographically dispersed verified Bitcoiner federation using Elements pegged to Bitcoin.

Goals

  • To have up to 300 federation members.
  • Federation members be keybase triple+ verified anonymous, pseudonymous or publicly known Bitcoiners (TBD).
View keybase.md

Keybase proof

I hereby claim:

  • I am mrhash on github.
  • I am hashamadeus (https://keybase.io/hashamadeus) on keybase.
  • I have a public key ASALtBVUU2Z-vAelqw3rPZPbaC6kMb1no3tYq5f1i6Ewgwo

To claim this, I am signing this object:

@MrHash
MrHash / migrate.sh
Created Jun 16, 2017
honeybee 0.2 migration script
View migrate.sh
#!/bin/bash
# NOTE! Manual changes required:
# 1. index param moved from elasticsearch connection to data access event_store configs
# 2. jobservice rename to RabbitMqJobService (not auto cos of interface suffix match)
# 3. swiftmailer transports are deleted from Honeybee! Move to vendor apps if required
# CouchDb
find app -type f -exec gsed -i 's/Honeybee\\Infrastructure\\DataAccess\\Connector\\GuzzleConnector/Honeybee\\CouchDb\\Connector\\CouchDbConnector/g' {} +
find app -type f -exec gsed -i 's/Honeybee\\Infrastructure\\Migration\\CouchDbMigration/Honeybee\\CouchDb\\Migration\\CouchDbMigration/g' {} +
View schematest_004.php
<?php
// @codeCoverageIgnoreStart
$givenSchema = [
'type' => 'assoc',
'properties' => [
'transports' => [
'type' => 'assoc',
'properties' => [