mkdir -p out
cd out
cat <<EOF > db.cfg
[req]
default_bits = 4096
default_keyfile = db.key
distinguished_name = req_distinguished_namexzにバックドアが見つかったため、自分のNixOSからxz-5.6.xを削除する。 NixOSは影響を受けないようだが念の為&練習だと思って削除しておく。
愚直にfdで/nix/storeを検索する。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class Example { | |
| private final String name; | |
| private final Integer age; | |
| private final String address; | |
| private Example(Builder<Filled, Filled> builder) { | |
| this.name = builder.name; | |
| this.age = builder.age; | |
| this.address = builder.address; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script setup lang="ts" generic="T"> | |
| import { reactive, ref } from "vue"; | |
| import type { Row, TableDef } from "./types"; | |
| import { AdjustmentsHorizontalIcon, XMarkIcon } from "@heroicons/vue/24/solid"; | |
| const { columns, body, rowError, colError } = defineProps<TableDef<T>>(); | |
| // FIXME 効率悪い | |
| const hasAnyError = (row: Row<T>) => { | |
| if (rowError(row)) return true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GitHubのUIではrebaseすると未解決スレッドを参照するのがとても難しくなるので、コメントに一覧を表示しておく | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| pull_request_review_comment: | |
| types: | |
| # TODO コメント追加の度に走るのはまずいかな?2秒で終わっても課金上は1分で計算されるらしい |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module(load="imudp") | |
| module(load="imtcp") | |
| module(load="mmjsonparse") | |
| # Listen on port 514 | |
| input(type="imudp" port="514") | |
| input(type="imtcp" port="514") | |
| template(name="Identity" type="list") { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| comm -23 \ | |
| <(seq "1" "65535" | sort) \ | |
| <(ss -tan | awk '{print $4}' | cut -d: -f2 | tail -n+2 | grep -v '^$' | sort | uniq -u) \ | |
| | shuf -n 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- [Control.Monad.IO.Unlift](https://hackage.haskell.org/package/unliftio-core-0.2.1.0/docs/Control-Monad-IO-Unlift.html#t:MonadUnliftIO) | |
| -- 定義はできるがInverse lawが成り立たないのでダメ | |
| -- withRunInIO (\_ -> throwIO e) === liftIO (throwIO e) | |
| -- にならないといけないが、pure (Left e)になってしまう。 | |
| -- たぶんjoinの保存則も成り立たないんじゃないかな。 | |
| -- | |
| -- あと、askUnliftIOを使うとtryのスコープを抜けてしまって酷いバグになりそう。 | |
| -- askUnliftIO = withRunInIO (\run -> return (UnliftIO run)) | |
| instance (MonadUnliftIO m, Exception e) => MonadUnliftIO (ExceptT e m) where | |
| withRunInIO inner = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- | | |
| -- import文の後に | |
| -- @ | |
| -- -- $setup | |
| -- -- >>> import DoctestUtil | |
| -- @ | |
| -- と書いておくと便利 | |
| module DoctestUtil | |
| ( pretty | |
| , capture |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Place your key bindings in this file to override the defaultsauto[] | |
| [ | |
| { | |
| "key": "ctrl+n", | |
| "command": "workbench.action.files.save" | |
| }, | |
| { | |
| "key": "ctrl+s", | |
| "command": "-workbench.action.files.save" | |
| }, |