Skip to content

Instantly share code, notes, and snippets.

goroutine 287 [select, 15 minutes]:
github.com/cilium/tetragon/pkg/process.(*Cache).cacheGarbageCollector.func1()
/home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/process/cache.go:46 +0x105
created by github.com/cilium/tetragon/pkg/process.(*Cache).cacheGarbageCollector
/home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/process/cache.go:42 +0xe5
goroutine 266 [chan receive]:
github.com/cilium/tetragon/pkg/process.NewCache.func3()
/home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/pkg/process/cache.go:149 +0x30
- hosts: all
become: true
vars:
gover: "1.13.15"
ciliumver: "1.7"
godir: "{{ ansible_env.HOME }}/go{{ gover }}"
tasks:
- name: Install dev packages
apt:
name: "{{ packages }}"

Assume we have two machines (m0 and m1) with IPs 10.33.33.10 and 10.33.33.11, respectively.

First, we enable forwarding, if it is not already enabled. If a firewall is running on the machine, then it should be adapted or disabled.

m0# echo 1 > /proc/sys/net/ipv4/ip_forward
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <fcntl.h>
@kkourt
kkourt / concepts.cc
Last active December 21, 2016 15:40
Playing around with C++ concepts.
#include <string>
// Simple C++ concepts example for future reference
// compile with `gcc -Wall -fconcepts -std=c++1z concepts.cc -c -Wall` using a
// recent gcc (I'm using 6.2).
//
// https://accu.org/index.php/journals/2157
// https://accu.org/index.php/journals/2198
// http://en.cppreference.com/w/cpp/language/constraints