Skip to content

Instantly share code, notes, and snippets.

View jmgao's full-sized avatar
☢️
ͬͤ ͬͬͤ ͦͬͬͤ ͬͦͬͬͤ ͤͬͦͬͬͤ ͬͤͬͦͬͬͤ ͬͬͤͬͦͬͬͤ ͦͬͬͤͬͦͬͬͤ ͬͦͬͬͤͬͦͬͬͤ ͤͬͦͬͬͤͬͦͬͬͤ ͬͦͬͬͤ

Josh Gao jmgao

☢️
ͬͤ ͬͬͤ ͦͬͬͤ ͬͦͬͬͤ ͤͬͦͬͬͤ ͬͤͬͦͬͬͤ ͬͬͤͬͦͬͬͤ ͦͬͬͤͬͦͬͬͤ ͬͦͬͬͤͬͦͬͬͤ ͤͬͦͬͬͤͬͦͬͬͤ ͬͦͬͬͤ
View GitHub Profile
function mmmma()
{
if [ "$MMMMA_TPUT_RESET" = 1 ] && [ ! -x `which tput` ]; then
echo "tput not found, install ncurses-bin"
return 1
fi
if [ ! -x `which inotifywait` ]; then
echo "inotifywait not found, install inotify-tools"
return 1
@jmgao
jmgao / gist:23b50330c1800a61efac704538f7ae9b
Last active February 21, 2018 06:06
dialer.apk build rule (spaces replaced with newlines to keep chrome from imploding when pasting)
build out/target/product/walleye/obj/APPS/Dialer_intermediates/package-res.apk | out/target/common/obj/APPS/Dialer_intermediates/src/R.stamp out/target/common/obj/APPS/Dialer_intermediates/proguard_options: rule23575
out/target/common/obj/APPS/Dialer_intermediates/flat-res/packages/apps/Dialer/java/com/android/voicemail/impl/res/values-af_strings.arsc.flat
out/target/common/obj/APPS/Dialer_intermediates/flat-res/packages/apps/Dialer/java/com/android/voicemail/impl/res/values-am_strings.arsc.flat
out/target/common/obj/APPS/Dialer_intermediates/flat-res/packages/apps/Dialer/java/com/android/voicemail/impl/res/values-ar_strings.arsc.flat
out/target/common/obj/APPS/Dialer_intermediates/flat-res/packages/apps/Dialer/java/com/android/voicemail/impl/res/values-az_strings.arsc.flat
out/target/common/obj/APPS/Dialer_intermediates/flat-res/packages/apps/Dialer/java/com/android/voicemail/impl/res/values-b+sr+Latn_strings.arsc.flat
out/target/common/obj/APPS/Dialer_intermediates/flat-res/packages/apps/Dialer/java/com/and
rule rule274
description = host C++: libadb <= system/core/adb/adb.cpp
depfile = out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates/adb.d
deps = gcc
command = /bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4579689/bin/clang++ -I system/core/adb -I out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates -I out/host/linux-x86/gen/STATIC_LIBRARIES/libadb_intermediates -I libnativehelper/include_deprecated \$$(cat out/host/linux-x86/obj/STATIC_LIBRARIES/libadb_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -Wa,--noexecstack -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuil

Keybase proof

I hereby claim:

  • I am jmgao on github.
  • I am jmgao (https://keybase.io/jmgao) on keybase.
  • I have a public key whose fingerprint is 509E 4B88 7B86 A2CF 20D4 91B1 9277 4411 0D2F 46FB

To claim this, I am signing this object:

var real_docwrite = document.write,
body = $('body');
(function insertGists(a_tags) {
if (a_tags.length > 0) {
a_tag = a_tags.shift()
document.write = function(stylesheet) {
$('head').append(stylesheet);

Keybase proof

I hereby claim:

  • I am jmgao on github.
  • I am jmgao (https://keybase.io/jmgao) on keybase.
  • I have a public key whose fingerprint is 37F9 4E01 0690 C7CF 5C40 80BB 992B 4CB4 669B 1353

To claim this, I am signing this object: