Skip to content

Instantly share code, notes, and snippets.

@jrsmile
jrsmile / gist:325467e1ab841d3a3733a1fb8fe76560
Created March 4, 2023 23:08 — forked from chrisdone/gist:02e165a0004be33734ac2334f215380e
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@jrsmile
jrsmile / test.yaml
Created August 27, 2022 06:24
esphome basic example
esphome:
name: test
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
@classmethod
def tcp_reassemble(cls, data, metadata):
"""[called by sniff(session=TCPSession),
reassembles the tcp stream if packet spans over multiple TCP packets]
Args:
data ([Packet]): [a raw packed strippt by the TCP Layer]
metadata ([dict]): [stores partial streams]
Returns: