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
WietseWind / instruction.md
Last active Feb 19, 2020
Raspbian NOOBS Lite in Kiosk Mode
View instruction.md
  1. Install Raspbian NOOBS without additional software (Lite)
  2. Install the LCD driver (in my case: https://github.com/goodtft/LCD-show)
  3. sudo apt-get install chromium x11-xserver-utils unclutter
  4. Edit /etc/xdg/lxsession/LXDE-pi/autostart, add (change the URL):
@xscreensaver -no-splash
@xset s off
@xset -dpms
@xset s noblank
@sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' /home/pi/.config/chromium/Default/Preferences
@WietseWind
WietseWind / CHANGELOG.md
Last active Feb 7, 2020
XUMM private Beta 0.1.2 - Changelog
View CHANGELOG.md

2nd XUMM private Beta (v0.1.2)

After a crazy amount of great input from the XRP Community beta testers (🍻❤️) we designed and coded and released this new XUMM beta.

PLEASE NOTE! PLEASE REMOVE THE ALREADY INSTALLED APP (WE DIDN'T ADD AN UPGRADE PROCESS), AND START THE INSTALL PROCESS OVER AGAIN.

(If you don't remove & reinstall but update, the app will crash at startup)

Almost all your input has been processed, and (we hope) all issues are resolved. We are working on the last improvements.

Major improvements and additions include:

@WietseWind
WietseWind / sort.js
Created Feb 7, 2020
Sort on custom attr. + rippled version sort
View sort.js
const fetch = require('node-fetch')
const rippledVersionForSorting = v => {
const vArray = v.split('-')[1].split('.')
if (vArray.length === 3) {
return vArray[0] * 100000 // Major
+ vArray[1] * 1000 // Minor
+ vArray[2] * 10 // Patch
+ Number((v.split('-')[2] || '').replace(/[^0-9]/g, '')) // RC/Beta
}
@WietseWind
WietseWind / sample.sql
Created Jan 9, 2020
Select AccountSet text-fields from XRPL BigQuery dataset
View sample.sql
SELECT
SAFE_CONVERT_BYTES_TO_STRING(FROM_HEX(Domain))
FROM
xrpledgerdata.fullhistory.transactions
WHERE
Account = 'rPEPPER7kfTD9w2To4CQk6UCfuHM9c6GDY'
AND TransactionType = 'AccountSet'
AND Domain IS NOT null
ORDER BY
LedgerIndex DESC
@WietseWind
WietseWind / For_ Craig_DeWitt.sql
Created Dec 11, 2019
Find accounts with most account activations (XRPL, BigQuery)
View For_ Craig_DeWitt.sql
-- Remove the surrounding Q3 for a complete list of account activations
SELECT
Account,
COUNT(1) as AccountsActivated
FROM (
SELECT
Q1.*,
Q2.Account,
Q2.hash
@WietseWind
WietseWind / stdsql.sql
Last active Oct 25, 2019
XRPL BigQuery TX per ledger per time frame
View stdsql.sql
SELECT
T.LedgerIndex,
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
)
WHERE
L.CloseTime > '2019-10-01 12:00:00'
View keybase.md

Keybase proof

I hereby claim:

  • I am wietsewind on github.
  • I am wietsewind (https://keybase.io/wietsewind) on keybase.
  • I have a public key ASAxGrMuZ--NGUAhUgpcPEpSdPYMi4zDzu4uy7ru8kuRVAo

To claim this, I am signing this object:

@WietseWind
WietseWind / index.js
Created Jul 22, 2019
Encode/Decode X-address in the browser (plain HTML+JS)
View index.js
<script src="https://xrpaddress.info/js/xrpl-tagged-address-codec-browser.js"></script>
<script>
var XCodec = require('xrpl-tagged-address-codec')
console.log(XCodec.Encode({ account: 'rPEPPER7kfTD9w2To4CQk6UCfuHM9c6GDY', tag: 495 }))
console.log(XCodec.Decode('XV5sbjUmgPpvXv4ixFWZ5ptAYZ6PD28Sq49uo34VyjnmK5H'))
</script>
@WietseWind
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', () => {
console.log('Hi')
@WietseWind
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()
// console.log(fulfillment_bytes)
const myFulfillment = new cc.PreimageSha256()
You can’t perform that action at this time.