Skip to content

Instantly share code, notes, and snippets.

@b-wind
b-wind / job1.txt
Created September 27, 2020 09:28
COCOA JOB
JOB #u0a151/0: f55c8d6 jp.go.mhlw.covid19radar/androidx.work.impl.background.systemjob.SystemJobService
u0a151 tag=*job*/jp.go.mhlw.covid19radar/androidx.work.impl.background.systemjob.SystemJobService
Source: uid=u0a151 user=0 pkg=jp.go.mhlw.covid19radar
JobInfo:
Service: jp.go.mhlw.covid19radar/androidx.work.impl.background.systemjob.SystemJobService
Flags: 2
Internal flags: 1 HAS_FOREGROUND_EXEMPTION
Requires: charging=false batteryNotLow=true deviceIdle=true
Extras: mParcelledData.dataSize=180
Network type: NetworkRequest [ NONE id=0, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&VALIDATED Uid: 10151 AdministratorUids: [] RequestorUid: -1 RequestorPackageName: null] ]
@b-wind
b-wind / sequenceDiagram1.md
Created September 14, 2020 17:12
sequenceDiagram1
sequenceDiagram
HomePageView ->> HomePageViewModel: OnClickExposures
HomePageViewModel ->> ExposureNotificationService: GetExposureCount()
ExposureNotificationService ->> UserDataModel: ExposureInformation.Count()

Note right of UserDataModel: UserDataModel::ExposureInformationに保持される 

UserDataModel -->> ExposureNotificationService: count
ExposureNotificationService -->> HomePageViewModel: count
@b-wind
b-wind / sequenceDiagram1.svg
Created September 14, 2020 17:01
sequenceDiagram1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@b-wind
b-wind / sequenceDiagram2.svg
Created September 14, 2020 16:58
sequenceDiagram2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@b-wind
b-wind / sequenceDiagram2.md
Created September 14, 2020 16:57
sequenceDiagram2
We couldn’t find that file to show.
@b-wind
b-wind / temp.md
Created September 14, 2020 16:32
temp
<title>temp</title>

Android アプリの HTTPS をデバッグする

やること

いわゆる MITM (man-in-the-middle attack) と呼ばれる攻撃手法を応用してアプリのデバッグに使う
主に(Web)デバッギングプロキシというソフトウェアを使う方法論になる

  • アプリやOSの HTTP(S) 通信を デバッギングProxy ソフトウェアを通るように設定する
  • デバッギングProxy ソフトウェアで HTTPS を復号出来る様に自前のCAをOSにインストールする
function rgless {
less $(rg --line-number "$@" | peco | awk -F : '{print "+" $2 " " $1}')
}
$ brew update --force
fatal: Cannot update paths and switch to branch 'stable' at the same time.
Did you intend to checkout 'refs/tags/1.0.6' which can not be resolved as commit?
fatal: Needed a single revision
invalid upstream refs/tags/1.0.6
Already up-to-date.
@b-wind
b-wind / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console