Skip to content

Instantly share code, notes, and snippets.

View kphrx's full-sized avatar

kPherox kphrx

View GitHub Profile
@kphrx
kphrx / youtube-comment-block.meta.js
Last active April 21, 2026 07:48
YouTubeのコメント欄から特定のユーザーの会話を消す
// ==UserScript==
// @name YouTube block user comments
// @namespace https://kpherox.dev
// @version 1.3.3
// @downloadURL https://gist.github.com/kphrx/eb4290150bc7556af95eac2c89965cbe/raw/youtube-comment-block.user.js
// @updateURL https://gist.github.com/kphrx/eb4290150bc7556af95eac2c89965cbe/raw/youtube-comment-block.meta.js
// @author kPherox
// @description hide user comments and conversations
// @noframes
// ==/UserScript==
@kphrx
kphrx / niconico-user-page-dark-theme.user.css
Last active November 25, 2025 06:43
ニコニコ動画のマイページとユーザーページを暗くするやつ。niconico Darkmode がベース
/* ==UserStyle==
@name niconico user page dark theme
@namespace https://kpherox.dev/
@version 2.0.4
@description ニコニコ動画のマイページとユーザーページを暗くするやつ。niconico Darkmode がベース
@author kPherox <kphrx@kpherox.dev> (https://kpherox.dev)
@updateURL https://gist.github.com/kphrx/01845381660b7b90e5928d83fa9964b8/raw/niconico-user-page-dark-theme.user.css
@license MIT
==/UserStyle== */
/*
// ==UserScript==
// @name Amazon Prime Video auto hide the next up card
// @namespace https://kpherox.dev/
// @version 1.4.0
// @author kPherox
// @match https://www.amazon.co.jp/gp/video/*
// @match https://www.amazon.co.jp/Amazon-Video/*
// @updateURL https://gist.github.com/kphrx/2d7c91067c42453ec88a65e2202c2144/raw/primevideo-autohide-nextupcard.user.js
// @downloadURL https://gist.github.com/kphrx/2d7c91067c42453ec88a65e2202c2144/raw/primevideo-autohide-nextupcard.user.js
// @grant none
{"label":"TCK tests","message":"9 / 13","schemaVersion":1,"color":"hsl(83, 100%, 40%)"}
# coding: utf-8
import sys
#import os
import itertools
import pypuzzle
from glob import glob
puzzle = pypuzzle.Puzzle()
@kphrx
kphrx / compose.yml
Last active September 26, 2024 21:49
nginx and letsencrypt dns-01
services:
nginx:
image: nginx:mainline-alpine
restart: always
command: nginx -g "daemon off;"
labels:
- 'nginx-container'
ports:
- '80:80'
- '443:443/tcp'
// ==UserScript==
// @name core-js for ZenzaWatch matches
// @namespace https://gist.github.com/kphrx/
// @description ZenzaWatch対象サイトでcore-jsを読み込むスクリプト
// @match *://www.nicovideo.jp/*
// @match *://ext.nicovideo.jp/
// @match *://ext.nicovideo.jp/#*
// @match *://blog.nicovideo.jp/*
// @match *://ch.nicovideo.jp/*
// @match *://com.nicovideo.jp/*
@kphrx
kphrx / a11y-shields-badge-worker.js
Last active December 29, 2023 20:01
shields badge modify a11y color contrast ratio https://a11y-shields-badge.kphrx.workers.dev/
const RED = 2126;
const GREEN = 7152;
const BLUE = 722;
/**
* @typedef {Object} hueValue
* @property {'hue'} type
* @property {number} value
*/
echo 'APT::Install-Recommends "false";
APT::Install-Suggests "false";' | sudo tee /etc/apt/apt.conf.d/00install-recommends > /dev/null
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce nftables
sudo update-alternatives --set iptables $(which iptables-nft)
sudo update-alternatives --set ip6tables $(which ip6tables-nft)
sudo usermod -aG docker $(whoami)
#!/usr/bin/env perl
my $current = `docker buildx version`;
use POSIX qw(uname);
my @uname = uname();
my $os = lc($uname[0]);
my $arch = $uname[4];
my %arch_map = (
aarch64 => 'arm64',