Skip to content

Instantly share code, notes, and snippets.

View kostja's full-sized avatar
🐢
Working from home

Konstantin Osipov kostja

🐢
Working from home
View GitHub Profile
@kostja
kostja / lua-call
Created April 14, 2015 09:46
lua call conversion rules
tarantool> function foo() return end
---
...
tarantool> c:call('foo')
---
- []
...
tarantool> function foo() return nil end

Keybase proof

I hereby claim:

  • I am kostja on github.
  • I am kostja (https://keybase.io/kostja) on keybase.
  • I have a public key whose fingerprint is 8468 AA2E AC65 D92D 2698 7FC1 B32B 96A9 7AEA 33B5

To claim this, I am signing this object:

@kostja
kostja / output
Created February 8, 2015 18:26
pthread_self() returns the same value across after fork()
kostja@atlas ~ % gcc -pthread foo.c; ./a.out
thread id: 140508398954304
thread id: 140508398954304
thread id: 140508398954304
#include <stdio.h>
#include <unistd.h>
#include <sys/inotify.h>
int main(int argc, char *argv[])
{
if (argc < 2) {
fprintf(stderr, "Usage: %s path\n", argv[0]);
return -1;
}