Skip to content

Instantly share code, notes, and snippets.

Luca Boccassi bluca

Block or report user

Report or block bluca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bluca
bluca / compat_report.xml
Created Apr 12, 2019
libbpf 4.19.x to 5.1.x ABI compat report
View compat_report.xml
<?xml version="1.0" encoding="utf-8"?>
<reports>
<report kind="binary" version="1.2">
<test_info>
<library>bpf</library>
<version1>
<number>1</number>
<arch>x86_64</arch>
<gcc>8.3.0</gcc>
View pyzmq_1244.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <zmq.h>
void freen(void *data, void *hint){
free(data);
}
View gist:eb779f347d05ff35e6e3bf65b29c156f
diff --git a/app/Makefile b/app/Makefile
index f7f5e2f..f837f43 100644
--- a/app/Makefile
+++ b/app/Makefile
@@ -62,15 +62,15 @@ BUILD_TYPE := v17
endif
ifeq ($(BUILD_TYPE),v17)
-COMMON_PRE := $(RTE_SRCDIR)/../lib/common
-LUA_PRE := $(RTE_SRCDIR)/../lib/lua/src
@bluca
bluca / v2_client.cpp
Last active Jul 1, 2017
ZMQ v2 client and v4 server interop
View v2_client.cpp
#include <assert.h>
#include <string>
#include <iostream>
#include <zmq.h>
#include <string.h>
int main(int argc, char** argv)
{
unsigned long max_nof_messages = 100;
std::string engine_uri = "tcp://127.0.0.1:5656";
View gist:3afe928d0d0ad65b3b32bdc4453af250
#include "testutil.hpp"
#define PAYLOAD_SIZE 229139
#define TERM_SIZE 41
#define NUM_WORKERS 6
#define NUM_ITERS 4
#define NUM_TERMS NUM_WORKERS * NUM_ITERS
void worker_task (void *ep)
{
View gist:5028bae1768c01d587dabe51f7877750
import zmq
import unittest
from unittest.mock import patch
from unittest.mock import MagicMock
class MockZmqSocket(MagicMock):
def __init__(self, **kwds):
super().__init__(**kwds)
View gist:5dba613a8a3f23457f2232fda3760c83
Repotype: debian
Ignore: initscripts
Preinstall: user-setup
# required for preinstall images: [1/409] Can't locate Digest/MD5.pm in @INC
Preinstall: libperl5.24
# preinstall debootstrap --foreign --variant=minbase --print-debs
View gist:c92513dc54508a7f7e17f6b375d57a24
$ git remote add duzy https://github.com/duzy/libzmq.git
lboccass@BRA-6G85P12:~/git/libzmq (bump_version)$ git fetch duzy
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 8 (delta 7), reused 8 (delta 7), pack-reused 0
Unpacking objects: 100% (8/8), done.
From https://github.com/duzy/libzmq
* [new branch] master -> duzy/master
* [new branch] revert-1183-size_fix -> duzy/revert-1183-size_fix
$ git cherry-pick duzy/master
View tweetnacl build
$ ./configure CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3 -O0" --with-docs=no --enable-drafts=no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '20266' is supported by ustar format... yes
checking whether GID '20266' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
View gist:dced45fca317a648ba2b6e99301f4eed
$ ./configure CFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3 -O0" --with-docs=no --enable-drafts=no --with-libsodium
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '20266' is supported by ustar format... yes
checking whether GID '20266' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
You can’t perform that action at this time.