The script dumps issue list from GitHub into a CSV file.
- Python 3 (Python 2 should also work, but not tested)
- requests
#!/usr/bin/env tarantool | |
local json = require('json') | |
local cluster_config = require('internal.config.cluster_config') | |
local scalars = {} | |
scalars.string = { | |
jsonschema = { | |
type = 'string', |
local protobuf = require('protobuf') | |
-- The schema examples are from etcd. | |
-- | |
-- https://github.com/etcd-io/etcd/blob/v3.5.11/api/mvccpb/kv.proto | |
-- https://github.com/etcd-io/etcd/blob/v3.5.11/api/etcdserverpb/rpc.proto | |
-- Message fields | |
-- -------------- |
#!/usr/bin/env tarantool | |
local fun = require('fun') | |
local json = require('json') | |
local yaml = require('yaml') | |
local fio = require('fio') | |
local http_client = require('http.client').new() | |
local popen = require('popen') | |
local this_file = fio.abspath(debug.getinfo(1).source:match("@?(.*)")) |
credentials: | |
users: | |
replicator: | |
password: 'topsecret' | |
roles: [replication] | |
storage: | |
password: 'secret' | |
roles: [super] | |
iproto: |
#!/usr/bin/env python | |
from __future__ import print_function | |
import sys | |
import re | |
import subprocess | |
import argparse | |
import csv |
<!-- | |
Based on https://github.com/vasturiano/3d-force-graph/blob/master/example/text-nodes/index.html | |
The data is generated from tarantool sources using the following one-liner: | |
(printf '{'; find src/lua src/box/lua -name '*.lua' | while read f; do fgrep -H 'require(' "${f}" | grep -v '\.lua: *--\|/help_en_US.lua'; done | sed -e 's@src/\(box/\)\?lua/\([^.]\+\).lua:@\2 @' -e 's@^\([^ ]\+\) .*require(["'\'']\([^"'\'']\+\)["'\'']).*@+\1 \2@' | grep '^+' | sed 's@^+@@' | sed 's/^init /tarantool /' | sort -u >data.txt; printf '"nodes": ['; cat data.txt | tr ' ' '\n' | sort -u | awk '{ print ",{\"id\": \""$1"\"}"}'; printf '], "links": ['; cat data.txt | awk '{ print ",{\"source\": \""$1"\", \"target\": \""$2"\"}" }'; printf ']}') | sed -e 's@"nodes": \[,{@"nodes": [{@' -e 's@"links": \[,{@"links": [{@' | jq > dependencies.json; rm data.txt | |
--> | |
<html> | |
<head> |
tarantool-[abc] | |
log.txt | |
*.snap | |
*.xlog | |
*.csv |
static const uint64_t watermark_before = 0x74f31d37285c4c37; | |
static const uint64_t watermark_after = 0xb10269a05bf10c29; | |
static void * | |
region_alloc_with_watermark(struct region *region, size_t size) | |
{ | |
size_t real_size = size + 2 * sizeof(uint64_t); | |
void *real_buf = region_alloc(region, real_size); | |
if (real_buf == NULL) | |
return real_buf; |