Instantly share code, notes, and snippets.

View secret.json
{
"config": {
"autoconnect": true,
"bot": "awesomo_bot",
"name": "#ccscanf",
"oauth": "oauth:xyz”,
"prefix": "\\",
"silent": false,
"standupReminder": true,
"windowState": {
View run_git_gc.py
#!/usr/bin/env python3
# Copyright 2018 Alexander Alemayhu https://alemayhu.com
import argparse
import os
import subprocess
def handle(directory):
for folder, subs, files in os.walk(directory):
View debuginfo.md

Cilium debug information

Cilium version

0.13.90 (648ab3b) linux/amd64

Kernel version

View blacklist_kern.bpf
// vim: set filetype=c:
#include <bpf/api.h>
#include <linux/ip.h>
#include <lib/eth.h>
#include <lib/utils.h>
struct bpf_elf_map __section_maps blacklist_map = {
.type = BPF_MAP_TYPE_HASH,
.size_key = sizeof(uint32_t),
.size_value = sizeof(uint32_t),
View cilium
#!/bin/bash
# /usr/local/bin/cilium
docker exec -ti cilium cilium $@
View gist:fef9ba1036e947fd7ddda1b4d8176043
docker run -v ${PWD}:/tmp scanf/ebpf-disasm -s from-container /tmp/bpf_lxc.o|wc -l
View 0001-Add-debug.patch
From 753d012c49e5dc6b50900f58be54f437937ce8ef Mon Sep 17 00:00:00 2001
From: Alexander Alemayhu <alexander@alemayhu.com>
Date: Wed, 4 Oct 2017 12:30:08 +0200
Subject: [PATCH] Add debug
Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
---
bpf/init.sh | 4 ++++
bpf/join_ep.sh | 5 +++++
daemon/bpf.sha | 4 ++--
View 0001-pkg-monitor-add-benchmark-tests-for-reading-payload.patch
From 664f06e1b69b044b0c710425690be32b0efd7fa7 Mon Sep 17 00:00:00 2001
From: Alexander Alemayhu <alexander@alemayhu.com>
Date: Wed, 23 Aug 2017 13:48:17 +0200
Subject: [PATCH] pkg/monitor: add benchmark tests for reading payload
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
---
View c.bash
#!/bin/bash
apt-get update
apt-get install -y git htop tmux wget ruby make
git clone https://github.com/cilium/cilium opt/og/src/github.com/cilium/cilium
git clone https://github.com/scanf/dotfiles dotfiles
make -C dotfiles
cd opt
View endian-bug.go
package main
import (
"encoding/binary"
"log"
"net"
)
/* Why does this program fail.
*/