Skip to content

Instantly share code, notes, and snippets.

@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
(function(){var h,n=this,p=function(a){return void 0!==a},aa=function(){},ba=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=
typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},q=function(a){return"array"==ba(a)},ca=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length},u=function(a){return"string"==typeof a},da=function(a){return"boolean"==typeof a},v=function(a){return"number"==typeof a},ea=function(a){retu
@critical-bug
critical-bug / mlratio.user.js
Last active December 27, 2015 09:09
ニコニコ動画でプレーヤー下部のプレイリストに各動画のマイリス率を表示する userscript。Chrome で動く版。
// ==UserScript==
// @license magnet:?xt=urn:btih:5305d91886084f776adcf57509a648432709a7c7&dn=x11.txt
// @name mlratio
// @description put Mylist ratio (= # of lists the video saved / # of video views) in playlist
// @namespace http://twitter.com/criticabug
// @include http://www.nicovideo.jp/watch/*
// @grant none
// @run-at document-end
// @version 1.10
// ==/UserScript==