Skip to content

Instantly share code, notes, and snippets.

View simar7's full-sized avatar

simar7

  • Canada
View GitHub Profile

Keybase proof

I hereby claim:

  • I am simar7 on github.
  • I am simar (https://keybase.io/simar) on keybase.
  • I have a public key ASA2_olLsvxrgpubn-1UWSRkcoiSrdZtzD0j6RR6_w4I9Qo

To claim this, I am signing this object:

---
apiVersion: batch/v1
kind: Job
metadata:
name: kube-bench
spec:
template:
metadata:
labels:
app: kube-bench
@simar7
simar7 / gist:6b0de1fe54f4c1edc544df9939e7a635
Created November 2, 2019 00:08
State of eBPF with Go
State of eBPF with Go
Available eBPF program types that are supported by various go bindings:
Kernel reference for all types: https://github.com/torvalds/linux/blob/master/include/uapi/linux/bpf.h#L149
- BPF_PROG_TYPE_PERF_EVENT
- Attach and instrument software and hardware perf events
- E.g. Syscalls, timers (and expiration), sampling of hardware events
- Gobpf from iovisor: https://github.com/iovisor/gobpf
@simar7
simar7 / main.go
Created November 18, 2019 21:04
pipe + tee with go
package main
import (
"fmt"
"io"
"io/ioutil"
"strings"
"sync"
)
@simar7
simar7 / gist:3578eefa18b8883006e70cf6b2ed1f68
Created May 4, 2020 22:46
difference between 1.0 and 1.1 NVD JSON feed
diff
3,4c3,4
< "title": "JSON Schema for NVD Vulnerability Data Feed version 1.0",
< "id": "https://scap.nist.gov/schema/nvd/feed/1.0/nvd_cve_feed_json_1.0.schema",
---
> "title": "JSON Schema for NVD Vulnerability Data Feed version 1.1",
> "id": "https://scap.nist.gov/schema/nvd/feed/1.1/nvd_cve_feed_json_1.1.schema",
14a15,17
> },