Skip to content

Instantly share code, notes, and snippets.

View 2opremio's full-sized avatar

Alfonso Acosta 2opremio

View GitHub Profile
@2opremio
2opremio / resourcelist.json
Created January 22, 2019 23:04
api resources from API server: GET /api/v1
{
"kind": "APIResourceList",
"groupVersion": "v1",
"resources": [
{
"name": "bindings",
"singularName": "",
"namespaced": true,
"kind": "Binding",
"verbs": [
@2opremio
2opremio / keybase.md
Created March 7, 2020 11:31
keybase.md

Keybase proof

I hereby claim:

  • I am 2opremio on github.
  • I am aacosta (https://keybase.io/aacosta) on keybase.
  • I have a public key ASApv_w8ZEigHRh19Nm3aroKe3XcW2ONt-JiA-J4VgKdSgo

To claim this, I am signing this object:

@2opremio
2opremio / SEP23_revocation.md
Last active May 22, 2020 19:29
Action needed: Revert support of M-strkeys from all SDKs

Action needed: Revert support of M-strkeys from all SDKs

TL;DR: we need to remove support for M-strkeys (SEP23) from all the SDKs. If the SDK you are maintaining still doesn't have support for SEP23, you can ignore this message.

We have already reverted support for SEP23 in the Go SDK and the Javascript SDK. You can use those PRs as reference to do the same in your SDK.

Context

SEP23 is still a draft and may not be promoted to final. Adding support for it means that users may end up storing M-strkeys, which can create a lot of problems if SEP23 ends up not being implemented. We are sorry we didn't identify this earlier.

@2opremio
2opremio / rawfilter.c
Last active April 28, 2022 21:44 — forked from oro350/rawfilter.c
BPF test: filter tcp segments to port 80
#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>
@2opremio
2opremio / bpf.c
Last active April 2, 2024 18:54 — forked from msantos/bpf.c
Example of using bpf to capture packets in OSX
#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>