Skip to content

Instantly share code, notes, and snippets.

View AlexeyALeonov's full-sized avatar

Alexey A. Leonov AlexeyALeonov

View GitHub Profile
// 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"
// Optional argument - starting number of the bucket
#!/bin/bash
#Simple Uploader for linux. Place inside libstorj/bin
# The script will create a new directory with randomly generated files, and begin uploading
# Files are automatically removed after uploading.
BUCKET=a882a4d1af7ce8a3bf6674c1
. ~/.storj.
#generates a 16 character unique filename
FILENAME=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16 ; echo '')
#Create Directory to store files in