Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick DeLuca nddeluca

View GitHub Profile
View gist:d952d316db593a666d27
#This file is used by Rack-based servers to start the application.
if defined?(Unicorn)
require 'unicorn/oob_gc'
require 'unicorn/worker_killer'
# Prevent garbage collection from running during requests
GC.disable
# Run garbage collection out-of-band every n requests
View websockets-server.js
/*
* node-ws - pure Javascript WebSockets server
* Copyright Bradley Wright <brad@intranation.com>
*/
// Use strict compilation rules - we're not animals
'use strict';
var net = require('net'),
crypto = require('crypto');
View gist:e1cd1f2384e644b2b8aa
\curl -sSL https://get.rvm.io | bash -s -- --version 1.26.6
rvm reload
rvm 2.1.4 do rvm gemset create foobar
rvm 2.1.4@foobar
\curl -sSL https://get.rvm.io | bash -s -- --version 1.26.7
rvm reload
rvm 2.1.4 do rvm gemset create foobar
View sidekiq
#!/bin/bash
# sidekiq Init script for Sidekiq
# chkconfig: 345 100 75
#
# Description: Starts and Stops Sidekiq message processor for Stratus application.
#
# User-specified exit parameters used in this script:
#
# Exit Code 5 - Incorrect User ID
# Exit Code 6 - Directory not found
View gist:44e07faac0b922c94a20
class Hash
def to_underscore
convert_keys(self, :underscore)
end
def to_camel_case
convert_keys(self, :camelize, :lower)
end
def to_underscore!
View parse.go
package main
import (
"encoding/base64"
"fmt"
"log"
"os"
sdk "github.com/cosmos/cosmos-sdk/types"
auth "github.com/cosmos/cosmos-sdk/x/auth"
@nddeluca
nddeluca / instructions.md
Last active May 13, 2022 — forked from karzak/instructions.md
Kava EVM Alpha Upgrade 3 Data Directory Replacement
View instructions.md

Theese instructions are to replace the data directory on pruning nodes that had corrupted dbs.

Requirements

  • ~150GB of available space

Steps

  1. Make backup of priv_validator_state.json and remove existing state