Skip to content

Instantly share code, notes, and snippets.

@sourenaraya
sourenaraya / extract_jpeg.py
Created September 7, 2014 03:49
script for extract and replace JPEG images in samsung SBL.img (bootloader.img). Tested on maguro (i9250).
#!/usr/bin/env python3
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2014 Souren Araya
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
@sourenaraya
sourenaraya / ejabberd_send_all_resources.patch
Created September 25, 2013 10:17
XEP vioalation, send messages to all connected resources. patch based on https://github.com/gjedeer/ejabberd sourcetree Tested on ejabberd-v2.1.13-0
diff -Naur processone-ejabberd-2ed62dc/src/ejabberd_local.erl processone-ejabberd-xep_violation/src/ejabberd_local.erl
--- processone-ejabberd-2ed62dc/src/ejabberd_local.erl 2013-06-25 19:46:12.000000000 +1100
+++ processone-ejabberd-xep_violation/src/ejabberd_local.erl 2013-09-18 23:21:21.804147966 +1100
@@ -5,7 +5,7 @@
%%% Created : 30 Nov 2002 by Alexey Shchepin <alexey@process-one.net>
%%%
%%%
-%%% ejabberd, Copyright (C) 2002-2013 ProcessOne
+%%% ejabberd, Copyright (C) 2002-2012 ProcessOne
%%%
@sourenaraya
sourenaraya / PR1.3_exfat.patch
Created September 1, 2013 06:28
N9 2.6.32.54 kernel patches for exFAT support. For some reason it can be unstable, may cause data loss, phone explosion, etc. I didnt test it. Seems work, but USE THIS PATCH AT YOUR OWN RISK! ORIGINAL SAMSUNG DRIVER WORKS ONLY ON KERNELS > 2.6.35! How to use: Download nokia kernel sources, unpack in scrathbox cd kernel-2.6.32 patch -p1 -i ../PR1…
diff -Naur kernel-2.6.32/arch/arm/configs/rm581_defconfig exfat_kernel-2.6.32/arch/arm/configs/rm581_defconfig
--- kernel-2.6.32/arch/arm/configs/rm581_defconfig 2012-04-02 21:57:15.000000000 +1100
+++ exfat_kernel-2.6.32/arch/arm/configs/rm581_defconfig 2013-09-01 13:45:27.000000000 +1100
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
-# Linux kernel version: 2.6.32.39
-# Wed Apr 27 13:21:33 2011
+# Linux kernel version: 2.6.32.54
+# Sun Sep 1 13:45:27 2013