mmorsi Mo Morsi Entrepreneur, software engineer, righteous guy New York
I hereby claim:
- I am movitto on github.
- I am mmorsi (https://keybase.io/mmorsi) on keybase.
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.Linq; | |
using com.cyborgAssets.screenshotADay; | |
namespace DevNullProd{ |
// Mock specific module pre-inclusion, overwriting methods | |
// w/ stub that behave the same way. | |
// | |
// Module should be absolute path as it will be 'required' | |
// relative to this 'mock' module | |
function mock_module(module){ | |
jest.doMock(module, () => { | |
const actual = jest.requireActual(module) | |
// Stub original behaviour w/ a jest mock |
mmorsi Mo Morsi Entrepreneur, software engineer, righteous guy New York
I hereby claim:
diff --git a/lib/wipple/metrics/txs_by_result.rb b/lib/wipple/metrics/txs_by_result.rb | |
index 10c5f7c..5badc0d 100644 | |
--- a/lib/wipple/metrics/txs_by_result.rb | |
+++ b/lib/wipple/metrics/txs_by_result.rb | |
@@ -3,6 +3,8 @@ module Wipple | |
class TxsByResult | |
include BaseMetric | |
+ CRITICAL_RESULTS = ['tecINVARIANT_FAILED'] | |
+ |
require 'xrbp' | |
class Benchmark | |
def initialize(max=1000) | |
@max = max | |
@snapshots = [] | |
end | |
def capture!(n=1) | |
@snapshots << [n, Time.now] |
<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> | |
<!-- --> |
#!/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 |
#!/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 |
// 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(){ |
# 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 |