Skip to content

Instantly share code, notes, and snippets.

View c-geek's full-sized avatar

Cédric Moreau c-geek

  • Art & Zerty
  • Rennes
View GitHub Profile
@c-geek
c-geek / sybils.js
Last active December 12, 2016 09:07
"use strict";
const durees = [1, 2, 3]; // 1 an, 2 ans, 3 ans
const stocks = [70, 100, 150];
const stepMalveillants = [5, 4, 3, 2, 1];
const STEPMAX = 6;
for (const stepMalveillant of stepMalveillants) {
for (const duree of durees) {
for (const SIGSTOCK of stocks) {
environment:
node_pre_gyp_accessKeyId:
secure: vioM9wfAwkcAV2Btx0T6sdI+NxwnbSJLm00V49KzLJY=
node_pre_gyp_secretAccessKey:
secure: jJxKoyWputzRz2EjAT9i/vBzYt2+lcjKZ5D6O5TBaS9+anpYHn2XWbOut5dkOgh0
node_pre_gyp_region: eu-central-1
matrix:
- NODE_VERSION: 5
platform: x64
- NODE_VERSION: 5
# Fix line endings on Windows
init:
- git config --global core.autocrlf true
# What combinations to test
environment:
matrix:
- nodejs_version: "0.10"
- nodejs_version: "0.12"
- nodejs_version: "4"
- nodejs_version: "5"

Publier un article sur le blog

Le blog uCoin.io a subit depuis peu une transformation technique : désormais l'intégralité des articles du blog mise à disposition sur GitHub.

Pour quoi faire ? Très simplement, nous apprécions de pouvoir découpler le contenu du contenant, en l'occurrence découpler les articles du moteur de blog qui les affiche. Cela nous permet entre autres choses :

  • de traduire les articles avec des outils comme Weblate
  • de migrer vers un autre moteur de blog dans le futur, de façon automatisée
  • de proposer une rédaction communautaire des articles à travers la plateforme GitHub
@c-geek
c-geek / gen-root.md
Last active August 29, 2015 14:04
Trying ucoin PoW generation

First: reset data & start

I assume you already installed & configured correctly ucoin. Then reset data:

ucoind reset data

Adding pubkeys & memberships

You first need to add at least one pubkey. Let's say we add "Tobi"'s pubkey using ucoin-cli

@c-geek
c-geek / joining-new-currency.md
Last active August 29, 2015 13:56
Join a new uCoin currency

Joining a new currency

With autovoting mecanisms, ucoin is voting itself new amendments. So if you want to join a uCoin currency using such mecanism, no human intervention is required.

Just do the following:

Install Node.js (if not already done)

If Node.js is not installed, check this document to do so.

@c-geek
c-geek / ucoin-cli.md
Last active December 21, 2015 17:49
ucoin install

ucoin

Installation

Node.js

uCoin is powered by Node.js v0.10+, so you need it installed first. Here is an example for Ubuntu installation:

$ sudo apt-get update