Skip to content

Instantly share code, notes, and snippets.

@littleskunk
littleskunk / Storj_Farmer_Contracts.js
Last active March 19, 2021 07:20
Storj_Farmer_Contracts.js
// How to run it
// Requires nodejs LTS, git, python2
// Open command line and move to the folder where this script is stored
// Edit the script and modify storage location (line 87)
// Check the startDate and EndDate and modify it if you need another timeframe (line 102 - 103)
// Stop the farmer
// Execute "npm install storj-lib"
// Execute "node Storj_Farmer_Contracts.js"
// Start the farmer
// The shard reaper will only delete expired contract inclusive shards.
// He will not detect shards with a missing contract
// This script will delete the lost shards
// How to run it
// Requires nodejs LTS, git, python2
// Open command line and move to the folder where this script is stored
// Execute "npm install storj-lib"
// Execute "node Storj_Farmer_Delete_Lost_Shards.js"

Keybase proof

I hereby claim:

  • I am littleskunk on github.
  • I am littleskunk (https://keybase.io/littleskunk) on keybase.
  • I have a public key ASCz4ZrETJx4Z_dSCJvCiFgRNshn9BwYGSxCHZRpbh8tIQo

To claim this, I am signing this object:

CREATE TABLE accounting_rollups (
id bigserial NOT NULL,
node_id bytea NOT NULL,
start_time timestamp with time zone NOT NULL,
put_total bigint NOT NULL,
get_total bigint NOT NULL,
get_audit_total bigint NOT NULL,
get_repair_total bigint NOT NULL,
put_repair_total bigint NOT NULL,
at_rest_total double precision NOT NULL,
CREATE TABLE buckets (
bucketname BYTES PRIMARY KEY,
delim INT8 NOT NULL
);
CREATE TABLE pathdata (
bucket BYTEA,
fullpath BYTEA PRIMARY KEY,
metadata BYTEA NOT NULL
);
@littleskunk
littleskunk / storagenodes.json
Last active December 7, 2022 19:16
Grafana Dashboard for Storagenodes
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,