Skip to content

Instantly share code, notes, and snippets.

View umjammer's full-sized avatar

Naohide Sano umjammer

View GitHub Profile
@umjammer
umjammer / iphone-toolchain.patch
Last active September 24, 2015 21:47
iphone-toolchain patch for Mac OS X 64bit
Index: toolchain.sh
===================================================================
--- toolchain.sh (revision 83)
+++ toolchain.sh (working copy)
@@ -24,11 +24,13 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
# What version of the toolchain are we building?
TOOLCHAIN_VERSION="3.1.2"
static <T> void setOrder(Class<T> pt, String p1, String p2) {
IIORegistry iioRegistry = IIORegistry.getDefaultInstance();
T sp1 = null;
T sp2 = null;
Iterator<T> i = iioRegistry.getServiceProviders(pt, true);
while (i.hasNext()) {
T p = i.next();
if (p1.equals(p.getClass().getName())) {
sp1 = p;
System.err.println("1: " + sp1.getClass().getName());
@umjammer
umjammer / removing 100MB blobs.md
Last active January 3, 2016 05:48
removing over 100MB files

get commit ids.

$ git log | grep commit | awk '{print $2}' | tac > commits.txt

find files which has over size 100MB

@umjammer
umjammer / MINGW32_QCELP.patch
Created March 27, 2014 04:20
QCELP: patch for ffmpeg
Index: configure
===================================================================
--- configure (revision 9321)
+++ configure (working copy)
@@ -89,6 +89,7 @@
echo " --enable-libfaad enable FAAD support via libfaad [default=no]"
echo " --enable-libfaadbin build FAAD support with runtime linking [default=no]"
echo " --enable-libgsm enable GSM support via libgsm [default=no]"
+ echo " --enable-libqcelp enable 3GPP2 CELP support"
echo " --enable-libmp3lame enable MP3 encoding via libmp3lame [default=no]"
@umjammer
umjammer / SO-03D.sh
Last active September 3, 2015 09:08
get root for SO-03D
#・Titanium Backup がインストール済みで、同梱の sqlite3 を使う場合
$ adb shell
$ su -
% mount -o rw,remount /system /system
% dd if=/data/data/com.keramidas.TitaniumBackup/files/sqlite3 of=/system/bin/sqlite3
% chmod 4755 /system/bin/sqlite3
% sync
% mount -o ro,remount /system /system
@umjammer
umjammer / Java JNI 3D Array.c
Last active September 3, 2015 09:07
create 3d array in JNI
// Create the class
jclass floatClass1 = env->FindClass("[[F");
jclass floatClass2 = env->FindClass("[F");
// Create 1st and 2nd array
jobjectArray array1 = env->NewObjectArray(15, floatClass1, NULL);
for (int i = 0; i < 15; i++) {
jobjectArray array2 = env->NewObjectArray(16, floatClass2, NULL);
@umjammer
umjammer / quasi88sdl_macosx.patch
Last active September 3, 2015 09:06
patch for quasi88 for macosx with sdl
diff -u -r quasi88-0.6.3/Makefile ../quasi88-0.6.3/Makefile
--- quasi88-0.6.3/Makefile 2007-05-16 22:36:46.000000000 +0800
+++ ../quasi88-0.6.3/Makefile 2009-10-02 19:20:43.000000000 +0800
@@ -13,8 +13,8 @@
# X11版、SDL版のいずれかを指定します。不要な方をコメントアウトしてください。
-X11_VERSION = 1
-# SDL_VERSION = 1
+#X11_VERSION = 1
@umjammer
umjammer / iOS Unofficial Development Xcode 5.1.1 + SDK7.1.md
Last active September 3, 2015 09:06
iOS Unofficial Development Xcode + SDK
@umjammer
umjammer / Find Pirated m4a.md
Last active February 10, 2020 23:20
Find pirated m4a

Find Pirated m4a

$ find ~/Music/iTunes/iTunes\ Music -name \*.m4a -print | while read i; do AtomicParsley "$i" -t | awk '/apID/{printf "%s\t%s\n", "'"$i"'", $4}' ; done | grep -v "your apple id"

Strip iTunes Account Informations

@umjammer
umjammer / colorRows.js
Created January 6, 2015 09:17
coloring sunday and saturday on datetime columns on google spreadsheet
/**
*/
function colorRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
var range = sheet.getRange(2, 1, sheet.getLastRow());
var check = range.getValues();
for (var i = 1; i < numRows - 2; i++) {