This file contains 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
# "when did i star {REPO}?" | |
# 1. Make sure you have installed `gh` and have `gh auth login`, so that I don't ask you for the token | |
# 2. Fetch https://docs.github.com/en/rest/activity/starring for all starred history | |
# 3. Run 2 until we found the repo | |
unless repo = ARGV[0] | |
puts "usage: ruby #$0 <repo>" | |
exit 0 | |
end |
This file contains 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 { build } from "esbuild"; | |
import { readFileSync } from "fs"; | |
build({ | |
entryPoints: ["main.js"], | |
bundle: true, | |
platform: "node", | |
format: "esm", | |
outfile: "bundle.js", | |
plugins: [ |
This file contains 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
%YAML 1.2 | |
--- | |
# - https://www.sublimetext.com/docs/syntax.html | |
# - https://typst.app/docs/reference/syntax | |
name: Typst | |
scope: source.typ | |
version: 2 | |
file_extensions: | |
- typ |
This file contains 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
/* ==UserStyle== | |
@name bilibili no adblocks tip | |
@namespace hyrious/bilibili-no-adblock | |
@version 1.0.0 | |
@description hide adblock tips on bilibili | |
@author hyrious | |
==/UserStyle== */ | |
@-moz-document domain("www.bilibili.com") { | |
.adblock-tips { display: none !important } | |
} |
This file contains 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
/* ==UserStyle== | |
@name Dark Sublime Text Doc | |
@namespace sublime-doc.hyrious.me | |
@version 1.0.0 | |
@description Please my eyes | |
@author hyrious | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://www.sublimetext.com/docs/") { | |
@media (prefers-color-scheme: dark) { | |
html { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test</title> | |
<link rel="stylesheet" href="https://unpkg.com/heti@0.9.3/umd/heti.min.css"> | |
</head> | |
<body> | |
<button onclick="run()">Run Heti</button> |
This file contains 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
git show --pretty="" --name-only HEAD | rg .svg | xargs pnpm svgo |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> |
This file contains 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
// ==UserScript== | |
// @name 自动填写输入框 | |
// @namespace autoinput.miku.tools | |
// @match https://tools.miku.ac/* | |
// @grant none | |
// @version 0.1.1 | |
// @author hyrious | |
// @description 在地址栏输入 ?input1;input2 就会自动为搜索到的输入框设置 value | |
// ==/UserScript== | |
onNuxtReady(() => ((inputs, searches) => searches.forEach((a, i) => |
This file contains 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
// ==UserScript== | |
// @name 关掉灰阶效果 | |
// @namespace no-grayscale.hyrious.me | |
// @match *://*/* | |
// @grant none | |
// @version 1.0 | |
// @author hyrious | |
// @description 尝试一键消除全站 { filter: grayscale } | |
// ==/UserScript== | |
void function(){ |