事前にapt-get update && apt-get upgrade && apt-get autoremoveしておいてからの
$ sudo do-release-update -dでUbuntu自体は22.04に上がる。
上がるタイミングで設定ファイルに変更があったやつどうする?更新する?と聞かれるが全部No。
よくわからない。resolv.confがなんか悪さしてそうということしかわからない。
| .PHONY: gen | |
| gen: | |
| @make clean | |
| bash generate_test_client_cert.sh | |
| adb push client.pfx /sdcard/Download/client.pfx | |
| .PHONY: clean | |
| clean: | |
| @rm -rf tmp client.* | |
| @echo cleaned up! |
| fun readResourceAsText(name: String): String { | |
| return {}.javaClass.classLoader.getResource(name)!!.openStream().use { | |
| it.readAllBytes().toString(Charsets.UTF_8) | |
| } | |
| } |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "(lldb)Launch", | |
| "type": "cppdbg", | |
| "request": "launch", |
| # Release内のAssets一覧 | |
| curl -v \ | |
| -H "Authorization: token $GITHUB_TOKEN" \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/$OWNER/$REPO/releases/$RELEASE_ID/assets | |
| # Assets追加 こいつだけBaseURLが違う | |
| curl -v \ | |
| -H "Authorization: token $GITHUB_TOKEN" \ | |
| -H "Accept: application/vnd.github.v3+json" \ |
| // https://qiita.com/drken/items/ae02240cd1f8edfc86fd | |
| // https://github.com/NASU41/AtCoderLibraryForJava/blob/132179385293fd6c0d522d73f3f48435967fffcb/Math/MathLib.java | |
| fun mod(a: Long, m: Long): Long { | |
| val x = a % m | |
| return if (x < 0) x + m else x | |
| } | |
| fun extGCD(a: Long, b: Long): LongArray { | |
| if (b == 0L) { |
| Account.remote.where('id NOT IN (SELECT follows.target_account_id FROM follows WHERE follows.accoun | |
| t_id IN (SELECT accounts.id FROM accounts WHERE accounts.domain IS NULL))').where('(SELECT COUNT(*) as c FROM status | |
| es WHERE statuses.account_id = accounts.id) = 0').find_each{|e| DeleteAccountService.new.call(e,reserve_username: fa | |
| lse, reserve_email: false)} |
| import java.io.PrintWriter | |
| import java.io.InputStream | |
| fun main(){ | |
| flush() | |
| } | |
| fun println(any: Any?){stdout.println(any)} | |
| fun flush(){stdout.flush()} | |
| fun readLine() = stdin.readLine() | |
| fun readInt() = stdin.readInt() |
| //0-indexed | |
| class BIT(val n: Int){ | |
| val bit = IntArray(n) | |
| fun sum(i: Int): Int { | |
| var i = i - 1 | |
| var s = 0 | |
| while(i >= 0){ | |
| s += bit[i] | |
| //i+1(==1-indexedのときのi)の最も右の1が立っているbitを0にして-1する | |
| i = i.and(i+1) - 1 |