Skip to content

Instantly share code, notes, and snippets.

Wietse Wind WietseWind

Block or report user

Report or block WietseWind

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
WietseWind / stdsql.sql
Last active Oct 25, 2019
XRPL BigQuery TX per ledger per time frame
View stdsql.sql
COUNT(1) as TxCount,
MIN(L.CloseTime) as LedgerClosed
FROM xrpledgerdata.fullhistory.transactions as T
JOIN xrpledgerdata.fullhistory.ledgers as L ON (
L.LedgerIndex = T.LedgerIndex
L.CloseTime > '2019-10-01 12:00:00'

Keybase proof

I hereby claim:

  • I am wietsewind on github.
  • I am wietsewind ( on keybase.
  • I have a public key ASAxGrMuZ--NGUAhUgpcPEpSdPYMi4zDzu4uy7ru8kuRVAo

To claim this, I am signing this object:

WietseWind / index.js
Created Jul 22, 2019
Encode/Decode X-address in the browser (plain HTML+JS)
View index.js
<script src=""></script>
var XCodec = require('xrpl-tagged-address-codec')
console.log(XCodec.Encode({ account: 'rPEPPER7kfTD9w2To4CQk6UCfuHM9c6GDY', tag: 495 }))
WietseWind / index.js
Last active Jun 28, 2019
Simple ILP Payment Pointer
View index.js
#!/usr/bin/env node
const makePlugin = require('ilp-plugin')
const { Server } = require('ilp-protocol-stream')
const Koa = require('koa')
const app = new Koa()
const crypto = require('crypto')
process.on('SIGINT', () => {
WietseWind / cc.js
Last active Jun 16, 2019
Escrow Crypto Conditions based on UTF-8 buffer
View cc.js
cc = require('five-bells-condition')
const fulfillment_bytes = Buffer.from('Hi! This is me testing :) 😇 🎉🎈🍺🎂🍾🍻...'.repeat(1), 'utf8') //.toString('hex').toUpperCase()
// Or random:
// const fulfillment_bytes = crypto.randomBytes(2)
console.log('EscrowFinish Fee:', 10 * (33 + Math.ceil(Buffer.byteLength(fulfillment_bytes) / 16)))
// console.log(fulfillment_bytes)
const myFulfillment = new cc.PreimageSha256()
WietseWind / afas-tableau-wdc.html
Created May 15, 2019
AFAS RestConnector Tableau Web Data Connector
View afas-tableau-wdc.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="" type="text/javascript"></script>
<script crossorigin="anonymous" src=""></script>
<script src=""></script>
WietseWind / pub.js
Last active Apr 9, 2019
Redis + Node PubSub vs. Task Publisher / Task Runner
View pub.js
// PubSub example, check pub.js and sub.js
// This is the publising of messages
// Messages will only be seen by subscribers that are already listening
// Credits:
const Redis = require('ioredis')
const pub = new Redis()
const channel = 'mychannel:123'
console.log('Started publisher...')
WietseWind / query.sql
Created Mar 27, 2019
XRPL BigQuery: Find activation date for Account
View query.sql
LedgerIndex = (
WietseWind / memo.js
Created Mar 18, 2019
XRPL Payment with Memo
View memo.js
const RippledWsClient = require('rippled-ws-client')
const RippledWsClientSign = require('rippled-ws-client-sign')
const SeedOrKeypair = 'sZZZZZZZZZ' // The secret of the sending wallet
const Transaction = {
TransactionType: 'Payment',
Account: 'rXXXXX',
Destination: 'rYYYYYYY',
Amount: 4635000000,
WietseWind / label-color.js
Created Mar 8, 2019
Generate Meetup labels
View label-color.js
const username = process.argv[2]
const type = process.argv[3] || 1
const sharp = require('sharp')
const QRCode = require('qrcode')
const fetch = require('node-fetch')
const printer = require("node-printer-lp-complete")
const printOptions = {
media: 'Custom.25x50mm',
destination: "ColorLabelPrinter",
You can’t perform that action at this time.