Skip to content

Instantly share code, notes, and snippets.

View vadbars's full-sized avatar

Vadim Barsukov vadbars

View GitHub Profile
##Deployment
git clone --recurse-submodules https://github.com/GolosChain/golos.git
cd golos && git checkout v0.16.4
docker run goloschain/golos:v0.16.4
Edit the Dockerfile in the repository root
%s/BUILD_GOLOS_TESTNET=FALSE\C/BUILD_GOLOS_TESTNET=TRUE/g
%s/ADD documentation/seednodes /etc/golosd/seednodes/\C/#ADD documentation/seednodes /etc/golosd/seednodes//g
@vadbars
vadbars / autoupvote.js
Created April 9, 2017 04:51 — forked from lantto/autoupvote.js
Automatically upvote after X minutes
function setTitle(voteAt, minutesAgo, originalTitle) {
var voteIn = voteAt - minutesAgo;
var unit = (voteIn === 1 ? 'minute' : 'minutes');
var newTitle = '<Votes in ' + voteIn + ' ' + unit + '> | ' + originalTitle;
if (document.title !== newTitle) {
document.title = newTitle;
}