This file contains hidden or 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
{ | |
"name": "express", | |
"hostname": "surfingcat.local", | |
"pid": 23560, | |
"req_id": "a5674c8b-d77b-4996-b1c1-e5856a8fddf8", | |
"level": 30, | |
"remote-address": "127.0.0.1", | |
"ip": "127.0.0.1", | |
"method": "POST", | |
"url": "/api/financials/", |
This file contains hidden or 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
/** | |
* @author Oleg Kubrakov yellowred.github.com | |
* @since 2017 | |
**/ | |
const Promise = require('Bluebird') | |
const jwt = require('jsonwebtoken'); | |
let generateOneTimeToken = (value) => { |
This file contains hidden or 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
let generateResponse = (data) => { | |
return Promise.coroutine(function* () { | |
let emails = data | |
.map(getEmailsFromIndividual) | |
return emails | |
})() | |
} |
This file contains hidden or 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
et generateResponse = (data) => { | |
return Promise.coroutine(function* () { | |
let emails = data | |
.map(getEmailsFromIndividual) | |
.reduce(flatten) | |
return emails | |
})() | |
} |
This file contains hidden or 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
let generateResponse = (data) => { | |
return Promise.coroutine(function* () { | |
let emails = data | |
.map(getEmailsFromIndividual) | |
.reduce(flatten) | |
.filter(value => value != undefined && value != "") | |
.filter(distinct) | |
return emails |
This file contains hidden or 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
/** | |
* @author Oleg Kubrakov yellowred.github.com | |
* @since 2017 | |
**/ | |
const Promise = require('Bluebird') | |
const jwt = require('jsonwebtoken'); | |
let generateOneTimeToken = (value) => { |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Get double baking events from Tezos blockchain and check whether an offender was a certain baker. | |
me - your baker address, | |
tail - history length to check for double baking, | |
url - public api to use. |
This file contains hidden or 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 | |
# Query baking and endorsement right for a delegate in the Tezos blockchain | |
# Usage: | |
# Set the delegate first. | |
# ./baking_rights.sh 17 20 - get right for cycles from 17 to 20 | |
# @source https://gist.github.com/yellowred/a263ccc07be9047cf92a41e4b5c7788c | |
export TEZOS_CLIENT_UNSAFE_DISABLE_DISCLAIMER=Y; | |
DELEGATE=<delegate_hash> |
This file contains hidden or 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
{ | |
"keys": [ | |
{ | |
"kty": "RSA", | |
"d": "Xk0FErx03ZyHeXYm8D3gFo4OB4HWEKQfHYRYVp0rctFlDk6Bw_GfFwG0hyjiUvTzM1V0CerYFUDd0lZaDDJ6d6KophRUB_B27gH1mvbD-SpE4DjIxl7pirRtcPi3dQx0inkPBDVtqtBV6AXrBuAf1ZYUQwTCldULueG_c06U5dGkabRTkAacLibTM0Ajly0YAN3MG21TIIb42KfzMleUYQ2IBh2v4StQdPUdwoNdFPXMkKUNLmAC7rEOipmeSu-jW1aFIFjaYvEXJAZl87-EF_M2K6C2g_t-8pDyONqZhbpxd9ytLaylPAt8r21wHu6Hk-GDH451JfBsIW2PfCqIQQ", | |
"e": "AQAB", | |
"use": "sig", | |
"kid": "eee", | |
"alg": "RS256", | |
"n": "kOlnAOvswYh1TaK-37X0HgzNFUXCjEhRdBZptkXVvc7frhj4quELbsoLrJ635T95A7_jYC3riyurZ_2TxqReLpApKI9CZAG40t2XMx7fAlesstDyBVQVkjY3ctruK7j8iTrJYjrJ-lJP9Qaxd2YuU5eQve3httyeLL2MAvcqVTwIpkvt8pTwYC0OS-5mh5bMlZ5AS4Xzyonn-ePr3KuTzHHErUsyyNgzRB-oWatuErfo1354AWlfGiElPm5kNMfGUF2rvRlqqHlGlHzPem8YBbdqFafUkfGL0FCbvsrEvHGR6v8puvd2jnYpb8ybvTvEZ3cyxRT7GPsPDfp3XSpY8w" |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"log" | |
"sync" | |
"time" | |
) | |
const N = 1 |