| title | Nixの評価がref-format: reftableなGitリポジトリーで失敗する | ||||||
|---|---|---|---|---|---|---|---|
| description | Nix 2.28.5では nix flake {subcommand} . がreftableなGitリポジトリー( extensions.refstorage=reftable )で失敗する場合がある。回避策としてflake-urlを path: で指定する(e.g. nix flake show path:.)。 | ||||||
| tags |
|
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
| // @ts-check | |
| "use strict"; | |
| /** | |
| * @template TSuccessValue | |
| * @template {'success' | 'error'} [TStatus='success' | 'error'] | |
| */ | |
| export class Result { | |
| /** | |
| * @readonly |
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
| // @ts-check | |
| "use strict"; | |
| const INITIAL = Symbol("INITIAL"); | |
| /** | |
| * @template T | |
| * @param {() => T} computation | |
| */ | |
| export const memoize = (computation) => { | |
| /** @type {typeof INITIAL | T} */ let cache = INITIAL; |
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
| // @ts-check | |
| "use strict"; | |
| const EVIL_DOMAINS = /** @type {const} */ ([ | |
| "error-report.com", | |
| "html-load.com", | |
| "content-loader.com", | |
| ]); | |
| /** | |
| * @param {string} urlString |
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
| function ばかげる( | |
| normals: Readonly<TemplateStringsArray>, | |
| ...embededs: readonly unknown[] | |
| ): string { | |
| /* | |
| * NOTE: テンプレートリテラルによる呼び出しと各パラメーターの対応 | |
| * - `normals[0]${embededs[0]}normals[1]` | |
| * - `normals[0]` (embededs => []) | |
| * - `${embededs[0]}` (normals[0] => "", normals[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
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| listen 443 default_server; | |
| listen [::]:443 default_server; | |
| server_name _; | |
| # Reject SSL handshake on port 443 | |
| ssl_reject_handshake on; |
https://www.postgresql.org/docs/16/upgrading.html
dbOldに新しめのpostgresql-clientをインストールdbNewインスタンスの作成
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| on_some_job_error() { | |
| kill "$(jobs -pr)" | |
| exit 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
| // ${localWorkspaceFolder}/frontend/.dockerignore | |
| node_modules | |
| .next |
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
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
| // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | |
| { | |
| "name": "Existing Dockerfile", | |
| "build": { | |
| // Sets the run context to one level up instead of the .devcontainer folder. | |
| "context": "..", | |
| // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | |
| "dockerfile": "../Dockerfile", | |
| // "target": "devcontainer" |
NewerOlder