Skip to content

Instantly share code, notes, and snippets.

View a2800276's full-sized avatar

Tim Becker a2800276

  • Press Every Key
  • Germany
View GitHub Profile
set -s escape-time 0
#in .tmux.conf
// simple helper to dump bytes in hex format
static void dump_bytes(uint8_t *bytes, size_t len) {
char buf[16 * 3 + 1];
buf[16 * 3] = '\0';
size_t i = 0;
for (i = 0; i < len; i++) {
if (i % 16 == 0) {
if (i > 0) {
printf("\n%s", buf);
}