Skip to content

Instantly share code, notes, and snippets.

View YDX-2147483647's full-sized avatar
🏠
ε•Šε•Šε•Šβ€”β€”οΌ

Y.D.X. YDX-2147483647

🏠
ε•Šε•Šε•Šβ€”β€”οΌ
View GitHub Profile
@YDX-2147483647
YDX-2147483647 / GitHub-info-on-Typst-Universe.user.js
Last active June 30, 2025 16:41
Show info of the GitHub repo on typst.app/universe
// ==UserScript==
// @name GitHub info on Typst Universe
// @name:zh-CN 在 Typst Universe 上显瀺 GitHub 俑息
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @description Display information about the GitHub repository on typst.app/universe
// @description:zh-CN 在 typst.app/universe 上显瀺 GitHub δ»“εΊ“ηš„δΏ‘ζ―
// @author Y.D.X.
// @match https://typst.app/universe/package/*
// @icon https://simpleicons.org/icons/typst.svg
@YDX-2147483647
YDX-2147483647 / serge-goodbye-linux.md
Created October 24, 2024 12:14
linux: Goodbye from a Linux community volunteer - Serge Semin

Archived from linux-mips.vger.kernel.org archive mirror with minor style fixes.

  • From: Serge Semin
  • Subject: linux: Goodbye from a Linux community volunteer
  • Date: Thu, 24 Oct 2024 07:27:41 +0300

Hello Linux-kernel community,

@YDX-2147483647
YDX-2147483647 / podcast-ffprobe.md
Created July 5, 2024 06:23
Extract chapters from an audio using ffprobe.

Extract chapters from an audio using ffprobe.

Basic example

$ curl -LO https://static.thetype.cloud/typechat/typechat157.mp3
$ ffprobe typechat157.mp3
…
  Metadata:
    album           : ε­—θ°ˆε­—η•…
@YDX-2147483647
YDX-2147483647 / typst-equation-numbering-rules.typ
Last active July 17, 2025 05:27
Make equations numbered by chapters in Typst.
/// Make equations numbered by chapters (heading level 1)
///
/// Only works if headings are numbered.
///
/// # Usage
///
/// ```
/// #show: equation-numbering-rules
/// #set heading(numbering: "1.")
///
@YDX-2147483647
YDX-2147483647 / tlmgr-pkg.md
Last active March 20, 2025 04:06
(La)TeX packages installed by tlmgr (TeX Live Manager).

tlmgr packages

(La)TeX packages installed by tlmgr (TeX Live Manager).

1.1 GiB, based on the scheme minimal.

Collections

collection-xetex
@YDX-2147483647
YDX-2147483647 / get-changelog-scoop.md
Last active December 24, 2023 10:23
Get changelog of an app in scoop.

This is a simple script to get changelog of an app in scoop. It fetches changelog from GitHub releases or CHANGELOG.md.

Add the following to your PowerShell $PROFILE, and try Get-Changelog <App>.

<#
.SYNOPSIS
    Get changelog of an app in scoop
.NOTES
    Prerequisites:
@YDX-2147483647
YDX-2147483647 / submit-educg.sh
Last active September 4, 2023 12:33
提亀作业到 course.educg.net
#!/usr/bin/env bash
set -euo pipefail
help() {
cat <<'EOF'
提亀作业到 course.educg.net
Usage
submit PROBLEM_ID ASSIGN_ID FOLDER
@YDX-2147483647
YDX-2147483647 / mkdocs-tasks.json
Created July 18, 2023 13:31
VS Code `tasks.json` for mkdocs serve with a problem matcher
{
"version": "2.0.0",
"tasks": [
{
"label": "Serve",
"command": "mkdocs",
"type": "process",
"args": [
"serve",
],
#!/bin/bash
status=`bitsrun status --json | jq '.error' --raw-output`
if [[ $status != 'ok' ]]; then
echo "Status: $status. Relogin…"
bitsrun logout
bitsrun login
fi
@YDX-2147483647
YDX-2147483647 / batman-pwsh.md
Last active December 24, 2023 09:24
Help or see manual with bat.

Help or see manual with bat.

Add the following to your PowerShell $PROFILE, and try batman pip install.

<#
.SYNOPSIS
    Help or see manual with bat

.NOTES