This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Converts a Base64 XRP address to standard Base58 representation | |
// Compile with: | |
// g++ b64.cpp -lssl -lcrypto | |
#include <stdlib.h> | |
#include <utility> | |
#include <string> | |
#include <iostream> | |
#include <boost/optional.hpp> | |
#include <boost/container/small_vector.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/server/ruby/vendor/rugged-0.26.0/ext/rugged/rugged_blame.c b/app/server/ruby/vendor/rugged-0.26.0/ext/rugged/rugged_blame.c | |
index 91716301f..9acd33253 100644 | |
--- a/app/server/ruby/vendor/rugged-0.26.0/ext/rugged/rugged_blame.c | |
+++ b/app/server/ruby/vendor/rugged-0.26.0/ext/rugged/rugged_blame.c | |
@@ -188,6 +188,11 @@ static VALUE rb_git_blame_count(VALUE self) | |
return UINT2NUM(git_blame_get_hunk_count(blame)); | |
} | |
+static VALUE rugged_blame_enum_size(VALUE rb_blame, VALUE rb_args, VALUE rb_eobj) | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Determine XRP account entropy, takes in a list of XRP accounts and | |
# outputs distribution by length, character, positional character, | |
# substring, and case-insensitive substring | |
require 'workers' | |
# Add method to extract all String substrings of a given length | |
class String | |
def substrings(n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Work in progress: Ruby Script that parses rippled rocksdb node store and | |
# dumps out data types. | |
# | |
# Written by Dev Null Productions <devnullproductions@gmail.com> | |
# | |
# Many thanks for help received on XRPChat: | |
# https://www.xrpchat.com/topic/31118-question-pertaining-to-hashing-database-lookups/ | |
# | |
# Requires upstream build of rocksdb-ruby to incorporate recent changes. | |
# Also the 'bistro' and 'tty-cursor' rubygems (gem install these). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# | |
# Written by Dev Null Productions <devnullproductions@gmail.com> | |
# | |
# Small script to generate new XRPL account as described in the following document: | |
# https://developers.ripple.com/accounts.html | |
# | |
# Simply run it with: | |
# ruby xag.rb | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup rippled RPM build environemnt on CentOS | |
# From a fresh CentOS install | |
# Update system, reboot | |
sudo yum update | |
sudo reboot | |
# Install deps | |
sudo yum install protobuf-static openssl-static zlib-static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VueJS does not permit <script> tags to be embedded in component templates | |
// Inorder to embed the xrptipbot widget (as described here: https://www.xrptipbot.com/account/embed): | |
// Add the following to your vuejs component template (make sure to change the tip receipient!): | |
<div id="xrptipbot"> | |
<a amount="5.00" size="175" to="DevNullProd" network="twitter" href="https://www.xrptipbot.com" target="_blank"></a> | |
</div> | |
// Then add / extend the component 'mounted' hook to add the script: | |
mounted : function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Take LVM snapshot / cycle old ones out at specified interval | |
# Set executable: chmod +x lvmbak.sh | |
# Make sure to setup sudo correctly: | |
# # visudo | |
# <USER> ALL= NOPASSWD: /sbin/lvcreate | |
# <USER> ALL= NOPASSWD: /sbin/lvremove | |
# <USER> ALL= NOPASSWD: /sbin/lvs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove all LVM Snapshots | |
# Set executable: chmod +x lvmbak.sh | |
VG="dnp00" # LVM volume group we are snapshoting | |
BACKUP_PREFIX="dnv1-snap-" # Prefix of snapshot volume name. | |
/sbin/lvs -o lv_name --noheadings | sed -n "s@$BACKUP_PREFIX@@p" | while read DATE; do | |
if [ "$DATE" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.js"></script> | |
<script type="application/javascript" src="ripple-1.3.3-min.js"></script> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="https://d3js.org/d3.v4.js"></script> | |
<!-- --> |