Skip to content

Instantly share code, notes, and snippets.

@jhftss
jhftss / bindiff_symbolization.py
Last active March 16, 2022 18:17
symbolization using the bindiff results
# From the "Matched Functions" window of the bindiff plugin:
# right click, copy all, and then paste to a bindiff_result.txt
with open('/path/to/bindiff_result.txt', 'r') as file:
file.readline() # skip header line
for line in file.readlines():
sp = line.split('\t')
if len(sp) == 18:
similarity = float(sp[0])
confidence = float(sp[1])
addr = int(sp[3], 16)
@bnhf
bnhf / README.md
Last active May 15, 2025 20:21
Tailscale - Deploying with Docker and Portainer

Just thought I'd put together some detail on deploying Tailscale using Docker and Portainer. These bits-and-pieces are available elsewhere, but not together, so hopefully this will save someone a bit of time if you'd like to add Tailscale to an existing Docker install:

Here's my annotated recommended docker-compose, to use with Portainer-Stacks. Note that I'm not using a pre-made Auth Key. I started that way, but realized it was very easy to simply check the Portainer log for the tailscaled container once the stack is running. In that log you'll see the standard Auth link that you can use to authorize the container. This way you don't need to create a key in advance, or create a reusable key that introduces a security risk:

version: '3.9'
services:
  tailscale:
    image: tailscale/tailscale
    container_name: tailscaled
@usrbinkat
usrbinkat / README.md
Last active February 27, 2025 13:04
TuringPi2 RK1 Build Journal

Turing Pi 2 + 4x RK1 32GB Kubevirt Cluster

In this gist we will attempt to capture the prominent steps in building an RK1 TPI2 Talos K8s Cluster for use with the github.com/ContainerCraft/Kargo kubevirt platform.

Info

If you try this and achieve success imaging your RK1 compute modules with the un-merged talos rk1 fork please report your success on this rfe issue: github.com/siderolabs/talos/issues/8187

Update Turing Pi 2 BMC Firmware