Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name arXiv quick read utilities (WIP)
// @match https://arxiv.org/abs/*
// @version 1
// @grant none
// ==/UserScript==
document.addEventListener("keydown", (e) => {
if (e.code === "Period") {
window.location = window.location.toString().replace('arxiv.org','ar5iv.org');
// ==UserScript==
// @name Radio FM4 Player (WIP)
// @match https://fm4.orf.at/player/*
// @version 1
// @grant none
// ==/UserScript==
const themeColor = document.querySelector('meta[name="theme-color"]');
themeColor.setAttribute('content', '#000');

Marp on vscode など, physics パッケージが使えない mathjax で physcis のコマンドが使いたいとき用 (参考)

\def\quantity#1{\left\{ #1 \right\}}
\def\qty#1{\left\{ #1 \right\}}
\def\pqty#1{\left( #1 \right)}
\def\bqty#1{\left[ #1 \right]}
\def\vqty#1{\left\vert #1 \right\vert}
\def\Bqty#1{\left\{ #1 \right\}}
\def\absolutevalue#1{\left\vert #1 \right\vert}
@xiupos
xiupos / d-ribbon.json5
Last active May 14, 2023 03:37
"Ribbon Dark" a dark theme for Misskey v13
{
id: '4f36ff7f-f087-45bd-bbbe-83b9a8e412d8',
base: 'dark',
name: 'Ribbon Dark',
props: {
X2: ':darken<2<@panel',
X3: 'rgba(255, 255, 255, 0.05)',
X4: 'rgba(255, 255, 255, 0.1)',
X5: 'rgba(255, 255, 255, 0.05)',
X6: 'rgba(255, 255, 255, 0.15)',
#EXTM3U
#EXT-X-RATING:0
#EXTINF:-1,BBC Radio Cambridgeshire
http://stream.live.vc.bbcmedia.co.uk/bbc_radio_cambridge
#EXT-X-RATING:0
#EXTINF:-1,Radio SRF 3
http://stream.srg-ssr.ch/m/drs3/mp3_128
#EXT-X-RATING:0
#EXTINF:-1,BR-Klassik
https://dispatcher.rndfnk.com/br/brklassik/live/mp3/high
@xiupos
xiupos / manjaro.md
Last active February 18, 2023 06:18

sudo without password

sudo bash -c "echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers"

logout & login

yay

Keybase proof

I hereby claim:

  • I am xiupos on github.
  • I am xiupos (https://keybase.io/xiupos) on keybase.
  • I have a public key ASB-fY0z2cNx9LuSB2tB6gIM1b0NB-CMKbaxO1qzwHXyBgo

To claim this, I am signing this object:

@xiupos
xiupos / en.md
Last active September 30, 2023 01:44
Monoarkhism

EN / JA

Monoarkhism

Experimental faith for the modern age

Bible

In the beginning they created the principle. Now the world was derived from it.