Skip to content

Instantly share code, notes, and snippets.

View kphrx's full-sized avatar

kPherox kphrx

View GitHub Profile
@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'
@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
*/
// ==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/*
{"label":"TCK tests","message":"8 / 12","schemaVersion":1,"color":"hsl(80, 100%, 40%)"}
#!/bin/sh
if [ -s plc.jsonl ]; then
LATEST=$(tail -n1 plc.jsonl | jq -r '.createdAt')
echo "From: $LATEST; $(jq -s 'unique_by(.did) | length' plc.jsonl)"
curl -s https://plc.directory/export\?after\=$LATEST >> plc.jsonl
else
curl -s https://plc.directory/export >> plc.jsonl
fi

Cloudflare domains pricing

TLD Old Pricing New Pricing Updated at
.com $8.57 $9.15 2022-09-01
.biz $12.81 $13.68 2022-09-01
.design $33.18 $35.18 2022-09-01
.xyz $8.74 $9.33 2022-09-01
.academy $21.68 $25.18 2022-10-04
.accountants $66.18 $70.18 2022-10-04
#!/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',
// ==UserScript==
// @name Amazon Prime Video auto hide the next up card
// @namespace http://tampermonkey.net/
// @version 1.3.4
// @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

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example