Skip to content

Instantly share code, notes, and snippets.

View AlexeyALeonov's full-sized avatar

Alexey A. Leonov AlexeyALeonov

View GitHub Profile
#!/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
// 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
// 1. Install the leveldown:
// npm install leveldown
// 2. Change the path
// 3. Run in cmd/powershell/bash
// node fix_broken_contracts.js
var leveldown2 = require("leveldown");
var myCallback = function(ld) {
console.log('LD: '+ld);
};

Keybase proof

I hereby claim:

  • I am AlexeyALeonov on github.
  • I am alexeyaleonov (https://keybase.io/alexeyaleonov) on keybase.
  • I have a public key whose fingerprint is 4B31 72E4 D930 6FDE 2C9D 65ED DB42 5F9A 4A9F 3D6D

To claim this, I am signing this object:

#!/bin/bash
#
# taken from the https://www.reddit.com/r/ethereum/comments/6bkg4r/5_eth_for_anyone_puts_storj_farmer_on_qnap/
#
# Run this using a command-line similar to the following:
# apt-get update && apt-get install curl -y && bash <(curl -s -L https://goo.gl/xqS97L)
#
# Detect Debian users running the script with "sh" instead of bash