Skip to content

Instantly share code, notes, and snippets.

View nddeluca's full-sized 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
# Run garbage collection out-of-band every n requests
View websockets-server.js
* node-ws - pure Javascript WebSockets server
* Copyright Bradley Wright <>
// Use strict compilation rules - we're not animals
'use strict';
var net = require('net'),
crypto = require('crypto');
View gist:e1cd1f2384e644b2b8aa
\curl -sSL | bash -s -- --version 1.26.6
rvm reload
rvm 2.1.4 do rvm gemset create foobar
rvm 2.1.4@foobar
\curl -sSL | bash -s -- --version 1.26.7
rvm reload
rvm 2.1.4 do rvm gemset create foobar
nddeluca / sidekiq
Last active August 29, 2015 14:12 — forked from dyerc/sidekiq
View sidekiq
# 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 / gist:44e07faac0b922c94a20
Created April 8, 2015 14:47
Hash Key Conversions
View gist:44e07faac0b922c94a20
class Hash
def to_underscore
convert_keys(self, :underscore)
def to_camel_case
convert_keys(self, :camelize, :lower)
def to_underscore!
View parse.go
package main
import (
sdk ""
auth ""
nddeluca /
Last active May 13, 2022 23:57 — forked from karzak/
Kava EVM Alpha Upgrade 3 Data Directory Replacement

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


  • ~150GB of available space


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