Skip to content

Instantly share code, notes, and snippets.

View sudotac's full-sized avatar

sudotac

  • Asia/Tokyo
  • 10:18 (UTC +09:00)
View GitHub Profile
@sudotac
sudotac / uacme-mydns-hook.sh
Last active July 5, 2025 16:49
DNS-01 challenge hook script of uacme for MyDNS.jp
#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This script is originally derived from uacme:
# https://github.com/ndilieto/uacme/blob/0fc608d380b51a5228a6e3214e6868490340990c/nsupdate.sh
#
# This script is licensed under the GNU General Public License <http://www.gnu.org/licenses/>.
#
# shellcheck disable=SC3043
MYDNSJP_URL='https://www.mydns.jp/directedit.html'
@sudotac
sudotac / aoba.svg
Created May 29, 2025 14:06
内海アオバさんのヘイローです
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sudotac
sudotac / uacme-cloudflare-hook.sh
Last active April 23, 2025 11:26 — forked from Gowee/uacme-cloudflare-hook.sh
DNS-01 challenge hook script of uacme for Cloudflare
#!/bin/sh
# shellcheck disable=SC3043
# Copyright (C) 2020 Michel Stam <[email protected]>
# Copyright (C) 2021 Hung-I Wang <[email protected]>
#
# The script is adatped from:
# https://github.com/ndilieto/uacme/blob/5edec0eea1bcf6f454ec1787297c2408c2f2e97a/nsupdate.sh
# https://gist.github.com/Gowee/e756f925cfcbd5ab32d564ee3c795786
#
# Licensed under the the GNU General Public License <http://www.gnu.org/licenses/>.
@sudotac
sudotac / stars-in-bluesky.user.css
Last active April 19, 2025 06:17
Stars in bluesky
/* ==UserStyle==
@name Stars in bluesky
@namespace https://gist.github.com/sudotac
@version 0.0.2
@description This style makes stars twinkle in the bluesky.
@author sudotac <[email protected]>
@homepageURL https://gist.github.com/sudotac/1dbb2aa69e6d65671dc009ab8e7a8c9f
@updateURL https://gist.githubusercontent.com/sudotac/1dbb2aa69e6d65671dc009ab8e7a8c9f/raw/stars-in-bluesky.user.css
@license CC0-1.0
==/UserStyle== */
@sudotac
sudotac / dark-aozora.user.css
Last active August 13, 2023 03:18
やる気のないダークモードスタイルシート for 青空文庫
dark-aozora.user.css
@sudotac
sudotac / cgit-dark-mode.user.css
Last active March 28, 2025 16:09
dark mode UserCSS for cgit
cgit-dark-mode.user.css
@sudotac
sudotac / Asciidoctor-extension-temml.rb
Last active February 16, 2025 07:07
Asciidoctor Extension for rendering LaTeX equations with Temml
# Asciidoctor-extension-temml.rb
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
require 'asciidoctor/extensions'
require 'temml'
class TemmlInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor
use_dsl
named :temml
@sudotac
sudotac / Asciidoctor-extension-katex.rb
Last active August 8, 2023 13:08
Asciidoctor Extension to use KaTeX
Asciidoctor-extension-katex.rb
@sudotac
sudotac / Asciidoctor-extension-footnote-tooltip.rb
Last active August 4, 2024 10:06
footnoteにtooltipをつけるAsciidoctorのExtension
# Asciidoctor-extension-footnote-tooltip.rb
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
require 'asciidoctor/extensions'
require 'nokogiri' # should be v1.12.0 or later
class FootnoteTooltipConverter < (Asciidoctor::Converter.for 'html5')
register_for 'html5'
@sudotac
sudotac / thbgm.pl
Last active May 22, 2019 14:35
thbgm.datを読んでwaveファイルを出力するPerlスクリプト。東方風神録(th10)、東方天空璋(th16)でのみ動作確認済み。東方妖々夢以降の他の作品でも動くかもしれません。
#!/usr/bin/env perl
use strict;
use warnings;
use Getopt::Long;
my $num_loop = 2; # default
my $artist = '上海アリス幻樂団';
my ($bgmfile, $outdir, $titlefile);
GetOptions(