Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am neepl on github.
  • I am neepl (https://keybase.io/neepl) on keybase.
  • I have a public key ASDtIKQ8qOxDHeeB-yV_alypZjwubrghxcJse5Klk1F_HAo

To claim this, I am signing this object:

#define CHUNK_SIZE (1024)
int read_to_eof(FILE *f, char **out, size_t *out_len) {
size_t buf_alloc_len = 0, buf_len = 0, read_size;
char *buf = malloc(CHUNK_SIZE), tmp;
//
if (NULL == buf) {
return -1;
}
buf_alloc_len = CHUNK_SIZE;
//
#!/usr/bin/env python2
# coding: utf-8
import angr
import simuvex
import r2pipe
from glob import iglob
from Queue import Queue
from threading import Thread, Lock

Save books out of Safari Books Online

From http://objectivesea.tumblr.com/post/9033067018/safaribooks

This is hard. I spent way too much time figuring this out, because I was annoyed that a book I bought (Addison-Wesley) was available online for free, except only for 45 days after which payment was required. So I made this hack... probably useful to no one else, but here it is.

Requirements:

  1. iPad.
  2. Safari To Go (the Safari Books Online iPad app).