Skip to content

Instantly share code, notes, and snippets.

@rieck
rieck / pcapsync.c
Last active August 29, 2015 14:22
Simple tool to discard broken packets and re-synchronize a pcap dump.
/*
* Simple tool to discard broken packets and re-synchronize a pcap dump.
* (c) 2015 Konrad Rieck (konrad@mlsec.org)
* --
* Compilation: gcc -Wall -o pcapsync pcapsync.c
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>

Keybase proof

I hereby claim:

  • I am rieck on github.
  • I am rieck (https://keybase.io/rieck) on keybase.
  • I have a public key whose fingerprint is CC01 D092 36FD FA64 6F70 AE06 C33E 48E4 A9BE 7152

To claim this, I am signing this object:

@rieck
rieck / harry-split.sh
Last active August 29, 2015 14:04
Harry: Split computation of large distance matrix
#!/bin/sh
# Need to compute a large distance matrix over a set of strings?
# Let Harry split the computations and use multiple hosts
ssh host01 harry -s 3:0 strings.txt distances-0.txt
ssh host02 harry -s 3:1 strings.txt distances-1.txt
ssh host03 harry -s 3:2 strings.txt distances-2.txt
# Simply join the outputs by concatenation
cat distances-?.txt > distances.txt