Skip to content

Instantly share code, notes, and snippets.

Alfonso Acosta 2opremio

Block or report user

Report or block 2opremio

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
@2opremio
2opremio / resourcelist.json
Created Jan 22, 2019
api resources from API server: GET /api/v1
View resourcelist.json
{
"kind": "APIResourceList",
"groupVersion": "v1",
"resources": [
{
"name": "bindings",
"singularName": "",
"namespaced": true,
"kind": "Binding",
"verbs": [
@2opremio
2opremio / bpf.c
Last active Aug 7, 2019 — forked from msantos/bpf.c
Example of using bpf to capture packets in OSX
View bpf.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <err.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
@2opremio
2opremio / rawfilter.c
Last active Nov 10, 2018 — forked from oro350/rawfilter.c
BPF test: filter tcp segments to port 80
View rawfilter.c
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/ethernet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <arpa/inet.h>
#include <netpacket/packet.h>
You can’t perform that action at this time.