Skip to content

Instantly share code, notes, and snippets.

View jschwinger233's full-sized avatar
😭
On vacation

graymon jschwinger233

😭
On vacation
  • China
View GitHub Profile
@jschwinger233
jschwinger233 / tee.go
Created October 18, 2018 07:18 — forked from wrfly/tee.go
io tee problem
package main
import (
"flag"
"fmt"
"io"
"time"
)
func newReader() io.Reader {
@jschwinger233
jschwinger233 / selectErrors.go
Created October 22, 2018 17:13 — forked from wrfly/selectErrors.go
error selection
package main
import (
"fmt"
"time"
)
type e struct{}
func chanErr(produceErr bool, d time.Duration, noErrChan chan e) chan e {
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import codecs
import random
import string
from hashlib import md5
from multiprocessing import Pool
PROCESSES = 10
LENGTH = 8192*5+777
@jschwinger233
jschwinger233 / flow.bt
Created March 26, 2022 06:20 — forked from florianl/flow.bt
simple bpftrace script to print out forwarding traffic
#!/bin/bpftrace
#include <linux/skbuff.h>
#include <linux/ip.h>
BEGIN
{
printf("follow the white rabbit\n");
}