Skip to content

Instantly share code, notes, and snippets.

View fs.c
// create 1 million files, final directory size ~4.1gb:
// for i in {1..1024} ; do mkdir -p junk/$i ; for j in {1..1024} ; do cp /etc/hostname junk/$i/$j ; done; done
[20:23:18 k2!58 ~] gcc -O2 -oa a.c
[20:23:19 k2!59 ~] time ./a
real 0m13.000s
#include <sys/types.h>
View gist:c38aff42b65101ab2240
[00:34:19 eldil!1 ~] cat bin/ts
while read; do
echo `date +%Y-%m-%d+T%H:%M:%S` "$REPLY"
View gist:11405132
# with 2047 of 2048 reader slots allocated
$ python -mtimeit -s 'import lmdb; e ="/tmp/test")' 'e.begin().abort()'
100000 loops, best of 3: 10.1 usec per loop
$ git stash &>/dev/null ; python build &> /dev/null
$ python -mtimeit -s 'import lmdb; e ="/tmp/test")' 'e.begin().abort()'
1000000 loops, best of 3: 0.47 usec per loop

Obtaining RK3066 boot ROM.

Here are my steps.

At first, I took a look to RK30xxLoader(L)_V1.18.bin. This file appears in update.img for my device. So, I unpacked update.img using rk29Kitchen.

strings on that file returns nothing interesting, so I assumed the file is crypted