Skip to content

Instantly share code, notes, and snippets.

View ThinaticSystem's full-sized avatar
🤖
キョン!資本主義の誘惑に負けて粗悪品を濫造するわよ!

しなちくシステム ThinaticSystem

🤖
キョン!資本主義の誘惑に負けて粗悪品を濫造するわよ!
View GitHub Profile
@ThinaticSystem
ThinaticSystem / html-unload.js
Last active January 22, 2026 14:12
html-unload.js (Disable html-load.com)
// @ts-check
"use strict";
const EVIL_DOMAINS = /** @type {const} */ ([
"error-report.com",
"html-load.com",
"content-loader.com",
]);
/**
* @param {string} urlString
@ThinaticSystem
ThinaticSystem / memoize.js
Last active May 16, 2026 05:57
memoize.js
// @ts-check
"use strict";
const INITIAL = Symbol("INITIAL");
/**
* @template T
* @param {() => T} computation
*/
export const memoize = (computation) => {
/** @type {typeof INITIAL | T} */ let cache = INITIAL;
@ThinaticSystem
ThinaticSystem / result.js
Last active May 16, 2026 05:49
result.js
// @ts-check
"use strict";
/**
* @template TSuccessValue
* @template {'success' | 'error'} [TStatus='success' | 'error']
*/
export class Result {
/**
* @readonly
@ThinaticSystem
ThinaticSystem / nix-fails-evaluation-on-reftable-repository.md
Last active July 5, 2026 05:35
Nix 2.28.5では nix flake {subcommand} . がreftableなGitリポジトリー( extensions.refstorage=reftable )で失敗する場合がある。回避策としてflake-urlを path: で指定する(e.g. nix flake show path:.)。
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
troubleshooting
nix
git
reftable
ref-format
ref-storage

Nixの評価が ref-format: reftable なGitリポジトリーで失敗する

事象