Skip to content

Instantly share code, notes, and snippets.

View ztlpn's full-sized avatar

Alexey Zatelepin ztlpn

View GitHub Profile
; ModuleID = 'test_coro.cc'
source_filename = "test_coro.cc"
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"
%_Z6do_runv.Frame = type { void (%_Z6do_runv.Frame*)*, void (%_Z6do_runv.Frame*)*, %"struct.task::promise_type", i1, i32, [2 x i64] }
%"struct.task::promise_type" = type { i8 }
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
## Rampage captain elections
candidates = 'ABCDEFGHIJKLM'
ballots = [
'HAE',
'AEC',
'AGE',
'ACE',
'EIC',
:) create table t(x UInt32) engine TinyLog
CREATE TABLE t
(
x UInt32
)
ENGINE = TinyLog
Ok.
@ztlpn
ztlpn / gist:542f7d07431d4e2c8310c6d5d90c0a5e
Created October 20, 2017 15:39
ClickHouse-odbc macOS CMake output
$ cmake .. -DODBC_LIBRARIES=/usr/local/lib/libodbc.a
-- The C compiler identification is AppleClang 9.0.0.9000038
-- The CXX compiler identification is AppleClang 9.0.0.9000038
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
#include <iostream>
#include <boost/coroutine2/all.hpp>
int main()
{
try
{
using Coro = boost::coroutines2::coroutine<void>;
Coro::pull_type coro([](Coro::push_type & yield)
{
#include <linux/videodev2.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <string.h>
#include <stdint.h>
#include <sys/mman.h>
#include <assert.h>
@ztlpn
ztlpn / test.log
Created September 26, 2012 11:46
Log of failed revoke of reserved task
[2012-09-26 15:42:53,273: DEBUG/MainProcess] [Worker] Loading modules.
[2012-09-26 15:42:53,358: DEBUG/MainProcess] [Worker] Claiming components.
[2012-09-26 15:42:53,358: DEBUG/MainProcess] [Worker] Building boot step graph.
[2012-09-26 15:42:53,359: DEBUG/MainProcess] [Worker] New boot order: {ev, queues, beat, pool, mediator, autoreloader, timers, state-db, autoscaler, consumer}
[2012-09-26 15:42:53,361: DEBUG/MainProcess] Starting celery.worker.hub.Hub...
[2012-09-26 15:42:53,361: DEBUG/MainProcess] celery.worker.hub.Hub OK!
[2012-09-26 15:42:53,361: DEBUG/MainProcess] Starting celery.concurrency.processes.TaskPool...
[2012-09-26 15:42:53,363: DEBUG/MainProcess] created semlock with handle 139872425488384
[2012-09-26 15:42:53,364: DEBUG/MainProcess] created semlock with handle 139872425484288
[2012-09-26 15:42:53,364: DEBUG/MainProcess] created semlock with handle 139872425480192