Skip to content

Instantly share code, notes, and snippets.

View kkonyshev's full-sized avatar

Konstantin Konyshev kkonyshev

View GitHub Profile
@kkonyshev
kkonyshev / gist:2bf6e9029666b5b5a752bcfd43b1ab33
Created May 23, 2018 08:00 — forked from ruslanbogun/gist:0cd5b91cc80bd8346273e0be966fa588
No implicit Ordering defined for org.joda.time.DateTime
implicit def dateTimeOrdering: Ordering[DateTime] = Ordering.fromLessThan(_ isBefore _)
@kkonyshev
kkonyshev / Storj_Farmer_Contracts.js
Last active February 8, 2018 21:38 — forked from littleskunk/Storj_Farmer_Contracts.js
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 "npm install command-line-args"
// Execute "node Storj_Farmer_Contracts.js --startDate=2017-06-01 --endDate=2017-06-05 --location=/home/user/.config/storjshare/shares/188071ba7cfd974a9e47b59e24b0737ebf845db3"
// Start the farmer