Skip to content

Instantly share code, notes, and snippets.

View yukihane's full-sized avatar

DEWA Kazuyuki/出羽和之 yukihane

View GitHub Profile
docker run --rm -it -v ~/.mitmproxy:/home/mitmproxy/.mitmproxy -p 9080:9080 -p 9081:9081 mitmproxy/mitmproxy mitmweb --listen-port 9080 --web-port 9081 --web-host 0.0.0.0
title date draft tags
Project Valhalla Memo
2022-10-23 18:28:19 +0900
true
java
kotlin

用語

事象説明

Ubuntu 22.04.1 へのアップグレード sudo do-release-upgrade 中に発生したエラーのメモ。

アップデート中に問題が発生しました。通常、これはネットワークにおける何らかの問題です。ネットワーク接続が可能であることをチェックし、あらためて試してください。

W:このようなリポジトリから更新を安全に行うことができないので、デフォルトでは更新が無効になっています。,
W:リポジトリの作成とユーザ設定の詳細は、apt-secure(8) man ページを参照してください。, W:GPG エラー:
@yukihane
yukihane / plot.txt
Last active September 4, 2022 22:51
「までごとに」
# https://twitter.com/hatsunetsu7/status/1566376520184000512
# を書く gnuplot スクリプト
# 2時間(120分)分描画
set xrange [0:120]
max(x,y) = x > y ? x : y
# 20分まで毎 => ceil(x/20)
# 40分まで無料 => x-40
Warning: Your Homebrew's prefix is not /usr/local.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/usr/local).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.
https://qiita.com/usamik26/items/601f5612bd3f8a21cc41
https://docs.mitmproxy.org/stable/howto-install-system-trusted-ca-android/
作業はWindows10, Git-for-Windows インストールしたときの Git Bash 上で行っている。
mitmproxyをインストールして1度起動しておく
scoop install mitmproxy
起動すると、証明書が ~/.mitmproxy/ に生成される
Android Studio をインストールする
元々 JetBrain Toolbox を利用していたのでそこからインストールした
@yukihane
yukihane / SampleTest.kt
Last active January 12, 2022 00:30
Kotest の data driven testing, forAll と withData の違い
import io.kotest.core.spec.style.FunSpec
import io.kotest.data.forAll
import io.kotest.data.row
import io.kotest.datatest.withData
class SampleTest : FunSpec({
beforeAny { println("before any") }
beforeContainer { println("before container") }
beforeEach { println("before each") }
@yukihane
yukihane / AltForwardedHeaderFilter.java
Last active July 28, 2021 03:03
X-Forwarded-Proto, Port 書き換え
import java.io.IOException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;