This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |