Skip to content

Instantly share code, notes, and snippets.

View ds-hwang's full-sized avatar

Dongseong Hwang ds-hwang

View GitHub Profile
@ds-hwang
ds-hwang / gist:6424868
Created September 3, 2013 14:42
strace wrt-install -i 000.wgt
execve("/usr/bin/wrt-installer", ["wrt-installer", "-i", "./Calculator_0.0.1_2013-09-03_17"...], [/* 20 vars */]) = 0
brk(0) = 0x9988000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb77a8000
access("/etc/ld.so.preload", R_OK) = 0
open("/etc/ld.so.preload", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
mmap2(NULL, 26, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb77a7000
close(3) = 0
open("/usr/lib/libsys-assert.so", O_RDONLY) = 3
@ds-hwang
ds-hwang / gist:8439180
Created January 15, 2014 16:18
fix for component build
diff --git a/content/browser/vibration/vibration_message_filter.cc b/content/browser/vibration/vibration_message_filter.cc
index 3855aca..4ba86fc 100644
--- a/content/browser/vibration/vibration_message_filter.cc
+++ b/content/browser/vibration/vibration_message_filter.cc
@@ -60,10 +60,8 @@ void VibrationMessageFilter::OnCancelVibration() {
provider_->CancelVibration();
}
-#if !defined(OS_ANDROID) && !defined(OS_TIZEN_MOBILE)
// static
@ds-hwang
ds-hwang / gist:9638319
Created March 19, 2014 09:23
icecc gcc
diff --git a/build/common.gypi b/build/common.gypi
index 03ec5df..2b4c302 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3109,7 +3109,7 @@
}],
# http://gcc.gnu.org/wiki/DebugFission
# Requires gold and gcc >= 4.8 or clang.
- ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and binutils_version>=223', {
+ ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=49) and binutils_version>=223', {
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
</style>
export GYP_GENERATOR_FLAGS="output_dir=out_android"
export GYP_DEFINES='werror= dcheck_always_on=1 OS=android fastbuild=1 clang=1 component=shared_library'
ninja -C out_android/Release $option chrome_shell_apk libwebviewchromium android_webview_apk content_shell_apk blink_tests
@ds-hwang
ds-hwang / gist:26e765892240aeb6e56b
Last active August 29, 2015 14:03
Data and code to measure CopyTextureChromium vs CopyTexImage2D
Measure time of coping texture by 1000x times between CopyTextureChromium (i.e. GL Drawing) and CopyTexImage2D
Linux (Intel IvyBridge i7-3520M)
GL Drawing TexImage2D
14060 5107
14110 5568
14837 5614
14963 5636
14997 5713
15015 5726

Sublime Text 2 – Useful Shortcuts (Ubuntu)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command palette
Ctrl+` python console
Ctrl+N new file

Editing

@ds-hwang
ds-hwang / gist:63cedc82019320584a0d
Last active August 29, 2015 14:15
chromeos gbm error log
[29053:29053:0217/122136:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Failed to create secure directory (/run/user/1000/pulse): Permission denied
[29053:29053:0217/122136:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
[29053:29064:0217/122136:ERROR:owner_key_util_impl.cc(27)] Could not get size of /home/dshwang/.config/chromium/stub_owner.key
[29053:29053:0217/122136:ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/*
LaunchProcess: failed to execvp:
[29053:29061:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event2: Permission denied
[29053:29062:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event8: Permission denied
[29053:29061:0217/122136:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event0: Perm
@ds-hwang
ds-hwang / gist:7ee43f9dffe3ba270be3
Created February 17, 2015 10:32
embedded gbm error log
[29199:29199:0217/122203:325687003945:ERROR:browser_main_loop.cc(171)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[29199:29199:0217/122203:325687012361:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
[29199:29206:0217/122203:325687061119:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event2: Permission denied
[29199:29206:0217/122203:325687061279:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event8: Permission denied
[29199:29206:0217/122203:325687061299:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event0: Permission denied
[29199:29206:0217/122203:325687061315:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event1: Permission denied
[29199:29206:0217/122203:325687061331:ERROR:input_device_factory_evdev.cc(212)] Cannot open '/dev/input/event6: Permissio
@ds-hwang
ds-hwang / gist:8d6173b3ed43dff734e4
Created March 2, 2015 08:14
my yocto conf for chromium
diff --git a/bblayers.conf b/bblayers.conf
index 4513d30..1ef46c7 100644
--- a/bblayers.conf
+++ b/bblayers.conf
@@ -9,6 +9,9 @@ BBLAYERS ?= " \
/d/workspace/yocto/poky/meta \
/d/workspace/yocto/poky/meta-yocto \
/d/workspace/yocto/poky/meta-yocto-bsp \
+ /d/workspace/yocto/meta-browser \
+ /d/workspace/yocto/meta-openembedded/meta-oe \