Skip to content

Instantly share code, notes, and snippets.

View DanielSerdyukov's full-sized avatar

Daniel Serdyukov DanielSerdyukov

  • Netflix
  • San Jose, CA, US
View GitHub Profile
@DanielSerdyukov
DanielSerdyukov / gist:d5ef69ba8f82358d83ea5ed997eadac2
Created December 17, 2018 08:47 — forked from msmuenchen/gist:9318327
KeePass v2.x (KDBX v3.x) file format
Convention: Byte array notation as it would appear in a hexeditor.
= Layout=
KDBX files, the keepass database files, are layout as follows:
1) Bytes 0-3: Primary identifier, common across all kdbx versions:
private static $sigByte1=[0x03,0xD9,0xA2,0x9A];
2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1)
-ea
-server
-Xms3g
-Xmx4g
-XX:MaxPermSize=1G
-XX:+UseConcMarkSweepGC
-XX:ReservedCodeCacheSize=512m
-Dfile.encoding=UTF-8
@DanielSerdyukov
DanielSerdyukov / icu-build-android.md
Created February 27, 2016 18:02
Build ICU for Android

Build ICU for Android

Prepare cross build environment

cd icu && mkdir linux && cd linux

../source/runConfigureICU Linux --prefix=$PWD/prebuilts \
    CFLAGS="-Os"
    CXXFLAGS="--std=c++11" \