Skip to content

Instantly share code, notes, and snippets.

@sharafian
sharafian / README.md
Created Sep 29, 2017
Script for ILP Credentials on XRP Testnet
View README.md

ILP Credentials

Just save ilp_creds.sh to your machine, and run source ./ilp_creds.sh in bash. It will fetch you XRP testnet credentials from the faucet, and export them into your shell in the variables ILP_CREDENTIALS and ILP_PLUGIN.

In this shell, you can now use ILP tools such as ilp-curl, which will use your new testnet credentials.

To save your testnet credentials into your .bashrc, run:

@sharafian
sharafian / index.html
Created Sep 20, 2017
XRP TX log for an account
View index.html
<html><script src="https://cdnjs.cloudflare.com/ajax/libs/cell/1.1.0/cell.js"></script><link href="https://gliechtenstein.github.io/hehehe/hehehe.css" rel="stylesheet"><script>
var myAccount = 'rwE8hT4CK5REwiJ2WMPnRrMVrSFxxnvKB4' // change this to your account
var cell = {
$components: [
{ $components: [], class: "container",
_add: function(data) {
this.$components = [this._item(data)].concat(this.$components).slice(0,50)
},
$init: function() {
this._ws = new WebSocket('wss://s.altnet.rippletest.net:51233')
@sharafian
sharafian / fakenpm.sh
Created Jan 25, 2017
Run NPM scripts without actually using NPM
View fakenpm.sh
#!/bin/bash
set -e
export PATH="`pwd`/node_modules/.bin/:$PATH"
CMD="`cat package.json | jq -r ".scripts.$1"`"
echo -e "Running \x1b[32m'$CMD'\x1b[39m ... "
eval "$CMD"
@sharafian
sharafian / README.md
Last active Nov 21, 2017
ILP Kit Guide
View README.md