Skip to content

Instantly share code, notes, and snippets.

View yut23's full-sized avatar

Eric T. Johnson yut23

View GitHub Profile
@yut23
yut23 / mkmovie.py
Created February 21, 2023 21:16
Python driver for ffmpeg
#!/usr/bin/env python3
import argparse
import os.path
import re
import shlex
import subprocess
import tempfile
from collections import defaultdict
from typing import Union
@yut23
yut23 / chipwizard.txt
Last active August 12, 2022 04:51
ChipWizard save format notes
ChipWizard save format notes:
* stored in save.dat base64-encoded and zlib compressed
* multi-byte integers are little-endian
4-byte header at start of file: 0xEA 0x03 0x00 0x00
120 bytes of data for layout
* 4 bytes for each cell, 5 rows × 6 columns
* starts at lower-left corner, proceeds to the right, wrapping to the next row above
@yut23
yut23 / fix_livescribe.patch
Last active November 2, 2018 13:43
A patch for OpenOBEX 1.7.2 (https://gitlab.com/openobex/mainline) to support Livescribe pens
diff --git a/lib/obex_client.c b/lib/obex_client.c
index f5b0f5a..68bc318 100644
--- a/lib/obex_client.c
+++ b/lib/obex_client.c
@@ -190,6 +190,8 @@ static result_t obex_client_response_rx(obex_t *self)
if (rsp == OBEX_RSP_CONTINUE) {
enum obex_cmd cmd = self->object->cmd;
+ obex_object_reset_tx(self->object);
+
@yut23
yut23 / setup_emma.sh
Last active May 3, 2017 01:39
Bash script to setup and run EMMA coverage, like Submitty
#!/bin/bash
# setup_emma.sh
# requirements: bash, coreutils, java, unzip, wget
print_usage() {
echo "Usage: $(basename "$0") <path to svn root>"
}
if [[ $# -lt 1 || $1 == -h || $1 == --help ]]; then
print_usage

Keybase proof

I hereby claim:

  • I am yut23 on github.
  • I am yut23 (https://keybase.io/yut23) on keybase.
  • I have a public key whose fingerprint is CEC7 5D32 ECAD FC16 E879 5D7A 688F 9D25 E98A 81E1

To claim this, I am signing this object: