Skip to content

Instantly share code, notes, and snippets.

@mDuo13
mDuo13 / test-trailingzeroes.js
Created Aug 20, 2021
Test case for ripple-lib issue with trailing zeroes
View test-trailingzeroes.js
ripple = require('ripple-lib')
api = new ripple.RippleAPI()
secret = "snenLH1fuSAVsULtAKkfLrmkXUTEt" // Test secret, do not use for anything real
tx_json = JSON.stringify({
"TransactionType": "Payment",
"Account": "rnURbz5HLbvqEq69b1B4TX6cUTNMmcrBqi",
"Amount": {
"currency": "FOO",
@mDuo13
mDuo13 / accounrootsize.txt
Last active Jun 11, 2021
Max AccountRoot size
View accounrootsize.txt
https://xrpl.org/accountroot.html
Field Size (bits)
================================
index 256
LedgerEntryType 16
Account 160
Balance 64
PreviousTxnID 256
PreviousTxnLgrSeq 32
@mDuo13
mDuo13 / initial-seq-glitch
Last active Mar 13, 2021
initial-seq-glitch.html
View initial-seq-glitch
<!DOCTYPE html>
<html><head><meta charset="utf-8" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" crossorigin="anonymous"></script>
<script src="https://unpkg.com/ripple-lib@1.9.1/build/ripple-latest-min.js"></script>
<script type="application/javascript">
async function main() {
// Connect -------------------------------------------------------------------
api = new ripple.RippleAPI({server: 'wss://s.altnet.rippletest.net:51233'})
await api.connect()
@mDuo13
mDuo13 / steam-1348700.log
Created Jan 4, 2021
Spice & Wolf VR2 log w/ Proton-Experimental 5.13-20201218c
View steam-1348700.log
This file has been truncated, but you can view the full file.
======================
Proton: 1608325607 experimental-5.13-20201218c
SteamGameId: 1348700
Command: ['/home/mduo13/.local/share/Steam/steamapps/common/Spice&Wolf VR2/Spice and Wolf VR2.exe']
Options: {'forcelgadd'}
SteamLinuxRuntime: v0.20201124.0-11-g197f448
pressure-vessel: 0.20201203.0+srt1 scout 0.20201214.0
soldier: 0.20201210.0 soldier 0.20201210.0
======================
@mDuo13
mDuo13 / steam-1348700.log
Created Dec 27, 2020
Spice&Wolf VR2 proton log
View steam-1348700.log
This file has been truncated, but you can view the full file.
======================
Proton: 1607520831 proton-5.13-4
SteamGameId: 1348700
Command: ['/home/mduo13/.local/share/Steam/steamapps/common/Spice&Wolf VR2/Spice and Wolf VR2.exe']
Options: {'forcelgadd'}
SteamLinuxRuntime: v0.20201124.0-2-g0f9c98f
pressure-vessel: 0.20201203.0+srt1 scout 0.20201203.1
soldier: 0.20201203.0 soldier 0.20201203.0
======================
@mDuo13
mDuo13 / gist:1cb1529add5a2656e6f933099da8a5a4
Created Dec 27, 2020
steam system information (mduo13, 2020-12-27)
View gist:1cb1529add5a2656e6f933099da8a5a4
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
CPU Family: 0x6
View simple-tts-deck-example.json
{
"ObjectStates": [
{
"Name": "DeckCustom",
"ContainedObjects": [
{
"CardID": 100,
"Name": "Card",
"Nickname": "Mirri, Cat Warrior",
"Transform": {
View get-full-fresh-ledger.txt
$ ./rippled ledger closed full
Loading: "/home/mduo13/.config/ripple/rippled.cfg"
2020-Jan-04 00:32:21.716187365 HTTPClient:NFO Connecting to 127.0.0.1:5005
{
"result" : {
"ledger" : {
"accepted" : true,
"accountState" : [
{
@mDuo13
mDuo13 / header_stress_test.md
Last active Oct 31, 2019
Testing how header IDs
View header_stress_test.md

Header Stress Test

2. Edit rippled.cfg

Lorem ipsum dolor amet seitan succulents copper mug humblebrag. Synth XOXO next level exercitation intelligentsia farm-to-table celiac four loko esse reprehenderit artisan ennui migas bitters. Plaid la croix prism man bun. Roof party neutra butcher heirloom fashion axe. Letterpress semiotics aliquip, palo santo lomo vice man braid reprehenderit nulla raw denim put a bird on it readymade. Everyday carry dolore flexitarian, YOLO typewriter elit hexagon XOXO cred bespoke gochujang synth.

rippled Server Won't Start

Cloud bread franzen drinking vinegar neutra you probably haven't heard of them squid, subway tile hoodie bicycle rights in live-edge. Raclette cupidatat aliqua meditation truffaut. Dreamcatcher yuccie roof party ramps, DIY hexagon aliquip readymade aliqua PBR&B. Kitsch chartreuse snackwave palo santo anim air plant shabby chic. Flexitarian meggings laborum, truffaut retro nostrud post-ironic trust fund adipisicing mollit deserunt.

@mDuo13
mDuo13 / devportal-reorg-guidelines.md
Created May 4, 2018
Dev Portal Reorg Guidelines
View devportal-reorg-guidelines.md

Dev Portal Reorg Guidelines (2018-05)

The Mind Map shows the layout of pages. Most nodes have either a link to the original content or an exclamation-point marker indicating that the content does not yet exist. Each node in the mind map represents one "Page" in Dactyl terminology. The dev portal has only one "target" at the moment, called "local" and all pages should belong to that target.

When you start a reorg task, begin with the latest copy of ripple-dev-portal's master branch (be sure to pull first!) and create a branch from there.

The reorg tasks include:

  1. moving and renaming existing files (mostly done already).
  2. splitting up content from old files into new files, or (rarely) combining content from several old files into one new file.
  3. reformatting page content to fit its new place.