Skip to content

Instantly share code, notes, and snippets.

View dave-tucker's full-sized avatar
🦀
Slowly oxidizing

Dave Tucker dave-tucker

🦀
Slowly oxidizing
View GitHub Profile
@dave-tucker
dave-tucker / main-ebpf.rs
Created November 10, 2021 22:27
SkSkb Echo Example
#![no_std]
#![no_main]
use aya_bpf::{
bindings::sk_action,
macros::{map, stream_parser, stream_verdict},
maps::{SockMap},
programs::{SkSkbContext}};
#[map(name = "sockmap")]

Keybase proof

I hereby claim:

  • I am dave-tucker on github.
  • I am davetucker (https://keybase.io/davetucker) on keybase.
  • I have a public key ASB6avUwxNxJ0nE7E0y86Y82mj-3bZoFWscfc7-gh3Iatgo

To claim this, I am signing this object:

#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
#
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
#
# compile libc/__aeabi_idiv0.o
/home/dave/dev/rumpkernel/rumprun/obj-evbearmhf-el-hw/rumptools/bin/arm--netbsdelf-eabihf-gcc -O2 -g -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Wno-format -D__NetBSD__ -Ulinux -U__linux -U__linux__ -U__gnu_linux__ --sysroot=/home/dave/dev/rumpkernel/rumprun/obj-evbearmhf-el-hw/rumptools/dest -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -D_DIAGNOSTIC -DHESIOD -DINET6 -DNLS -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc/include -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc -I. -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/sys -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc/compat/../locale -I/home/dave/dev/rumpkernel/rumprun/src-netbsd/lib/libc/compat/stdlib -I/home/dave/dev/rumpkernel/ru
#
# Automatically generated file; DO NOT EDIT.
# Crosstool-NG Configuration
#
CT_CONFIGURE_has_xz=y
CT_MODULES=y
#
# Paths and misc options
#
package main
import (
"fmt"
"syscall"
)
func main() {
var mod = syscall.NewLazyDLL("kernel32.dll")
var proc = mod.NewProc("IsProcessorFeaturePresent")
Jan 11 21:32:49 scw-677a6e docker[30609]: time="2016-01-11T21:32:49.061699099Z" level=debug msg="Calling POST /v1.22/containers/create"
Jan 11 21:32:49 scw-677a6e docker[30609]: time="2016-01-11T21:32:49.061859902Z" level=debug msg="POST /v1.22/containers/create"
Jan 11 21:32:49 scw-677a6e docker[30609]: time="2016-01-11T21:32:49.063598623Z" level=debug msg="form data: {\"AttachStderr\":true,\"AttachStdin\":true,\"AttachStdout\":true,\"Cmd\":null,\"Domainname\":\"\",\"Entrypoint\":null,\"Env\":[],\"HostConfig\":{\"Binds\":null,\"BlkioDeviceReadBps\":null,\"BlkioDeviceReadIOps\":null,\"BlkioDeviceWriteBps\":null,\"BlkioDeviceWriteIOps\":null,\"BlkioWeight\":0,\"BlkioWeightDevice\":null,\"CapAdd\":null,\"CapDrop\":null,\"CgroupParent\":\"\",\"ConsoleSize\":[0,0],\"ContainerIDFile\":\"\",\"CpuPeriod\":0,\"CpuQuota\":0,\"CpuShares\":0,\"CpusetCpus\":\"\",\"CpusetMems\":\"\",\"Devices\":[],\"Dns\":[],\"DnsOptions\":[],\"DnsSearch\":[],\"ExtraHosts\":null,\"GroupAdd\":null,\"IpcMode\":\"\",\"Isolation\":\"\",\"Kern
(*
Based on the script at:
◸ Veritrope.com
Apple Mail to Evernote
Modified by Dave Tucker
VERSION 2.08
December 20, 2015
package main
import (
log "github.com/Sirupsen/logrus"
"github.com/docker/machine/commands/mcndirs"
"github.com/docker/machine/libmachine"
)
func GetMachines() error {
api := libmachine.GetDefaultStore()