Skip to content

Instantly share code, notes, and snippets.

View nt's full-sized avatar

Nicolas Thiébaud nt

  • Anthropic
  • United States
View GitHub Profile
@nt
nt / sqlit3-fast-read.rb
Created April 21, 2011 07:43
iphone-backup-rename-files.py
#!/usr/bin/env python
import sys, os
import shutil
def getint(data, offset, intsize):
"""Retrieve an integer (big-endian) and new offset from the current offset"""
value = 0
while intsize > 0:
value = (value<<8) + ord(data[offset])
offset = offset + 1