Skip to content

Instantly share code, notes, and snippets.

View nddeluca's full-sized avatar

Nick DeLuca nddeluca

View GitHub Profile
#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
/*
* node-ws - pure Javascript WebSockets server
* Copyright Bradley Wright <[email protected]>
*/
// Use strict compilation rules - we're not animals
'use strict';
var net = require('net'),
crypto = require('crypto');
\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
@nddeluca
nddeluca / sidekiq
Last active August 29, 2015 14:12 — forked from dyerc/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
@nddeluca
nddeluca / gist:44e07faac0b922c94a20
Created April 8, 2015 14:47
Hash Key Conversions
class Hash
def to_underscore
convert_keys(self, :underscore)
end
def to_camel_case
convert_keys(self, :camelize, :lower)
end
def to_underscore!
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 23:57 — forked from karzak/instructions.md
Kava EVM Alpha Upgrade 3 Data Directory Replacement

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