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
| jit.on() | |
| local stopwatch = require('common.stopwatch') | |
| local table_new = table.new | |
| local attempts = 20 | |
| local keys = 100 | |
| local results = {} | |
| local cached_keys = require('fun').range(keys):map(tostring):totable() |
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
| local clock = require('clock') | |
| box.cfg{} | |
| box.schema.create_space('test', {if_not_exists = true}) | |
| box.space.test:create_index('pk', {if_not_exists = true}) | |
| local fiber = require('fiber') | |
| fiber.set_max_slice({warn = 2, err = 5}) | |
| local function test1() | |
| for _ = 1, 10000 do |
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
| FROM registry.gitlab.com/runfor/envs/centos:7-build as static-kafka | |
| RUN set -x \ | |
| && git clone --recurse-submodules https://github.com/tarantool/kafka /opt/kafka \ | |
| && wget -P /etc/yum.repos.d/ https://copr.fedorainfracloud.org/coprs/bgstack15/stackrpms/repo/epel-7/bgstack15-stackrpms-epel-7.repo \ | |
| && yum install -y tarantool tarantool-devel openssl110 zip | |
| WORKDIR /opt/kafka | |
| RUN tarantoolctl rocks STATIC_BUILD=ON make \ |
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
| SIGQUIT: quit | |
| 2020-12-01T09:47:49.7959653Z PC=0x5584306ce761 m=0 sigcode=0 | |
| 2020-12-01T09:47:49.7960063Z | |
| 2020-12-01T09:47:49.7960640Z goroutine 0 [idle]: | |
| 2020-12-01T09:47:49.8033241Z runtime.futex(0x5584337f5748, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7ffe496451f0 | |
| ==> _diag/pages/c4cb1678-ecb3-4e21-bb85-058e90c59a98_0f1d67d0-60c4-549e-f697-f7ec7a95557a_1.log <== | |
| l7.noarch 152/181 | |
| 2020-12-01T09:06:36.8798438Z #6 161.8 Installing : urw-base35-z003-fonts-20170801-10.el7.noarch 153/181 | |
| 2020-12-01T09:06:38.3815517Z #6 163.3 Installing : urw-base35-nimbus-sans-fonts-20170801-10.el7.noarch 154/181 | |
| 2020-12-01T09:06:39.8826066Z #6 164.7 Installing : urw-base35-p052-fonts-20170801-10.el7.noarch 155/181 |
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 python3 | |
| import json | |
| import gitlab | |
| gl = gitlab.Gitlab('http://gitlab.com', private_token="<put your private token here>") | |
| GROUP_ID = '1234567890' | |
| total_projects_count = 0 |
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
| 19:16:12 level2 [master] tree | |
| βββ file.txt | |
| βββ files | |
| βΒ Β βββ file.txt | |
| βββ hosts.yml | |
| βββ main.yml | |
| βββ roles | |
| βββ lookup | |
| βββ tasks | |
| βββ main.yml |
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 tarantool | |
| local socket = require('socket') | |
| local log = require('log') | |
| local vars = {} | |
| local function smtp_server(s) | |
| s:write('220 localhost ESMTP Tarantool\r\n') | |
| local l |
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
| Tarantool 2.1.1-434-g881c7b59b | |
| type 'help' for interactive help | |
| tarantool> kafka = require'kafka' | |
| --- | |
| ... | |
| tarantool> consumer, err = kafka.Consumer.create({ | |
| > brokers = 'localhost:9292', -- brokers for bootstrap | |
| > options = { | |
| > ["enable.auto.offset.store"] = "true", |
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
| Tarantool 2.1.1-434-g881c7b59b | |
| type 'help' for interactive help | |
| tarantool> socket = require('socket') | |
| --- | |
| ... | |
| tarantool> fiber = require'fiber' | |
| --- | |
| ... |
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
| box.cfg{} | |
| statuses = { 'sent', 'delivered' } | |
| uuid = require('uuid') | |
| clock = require('clock') | |
| box.schema.create_space('fragments') | |
| box.space.fragments:create_index('pk') | |
| box.space.fragments:create_index('status', { unique = false, parts = {{3, 'string', is_nullable = true}}}) | |
| for i =1,500000,1 do box.space.fragments:insert({i,uuid.str(), statuses[math.random(0,2)]}) end |
NewerOlder