Skip to content

Instantly share code, notes, and snippets.

View aoirint's full-sized avatar
🐱

aoirint aoirint

🐱
View GitHub Profile
@aoirint
aoirint / Dockerfile
Last active April 19, 2025 03:54
uvを使ったPythonプロジェクトのDockerイメージ構築例
# License: CC0-1.0
# syntax=docker/dockerfile:1.14
ARG BASE_IMAGE="ubuntu:22.04"
# Pythonバイナリをダウンロードするステージ
FROM "${BASE_IMAGE}" AS download-python-stage
# ダウンロードに必要なwgetとルート証明書をインストール
ARG DEBIAN_FRONTEND="noninteractive"
@aoirint
aoirint / lint.yml
Last active December 7, 2024 05:12
Poetry + Ruff + Mypy Lint CI Workflow
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
@aoirint
aoirint / Program.cs
Last active November 7, 2024 14:49
Lethal Company v68 Meteor Shower seeds at the start of day
bool CheckMeteorShowerChance(int seed) {
var meteorShowerChance = 7;
var random = new Random(seed + 28);
return random.Next(0, 1000) < meteorShowerChance;
}
bool CheckMeteorShowerTime(int seed, int minTime, int maxTime) {
var random = new Random(seed + 28);
random.Next(0, 1000);
person_index person_name gifter_person_index is_primary game_name game_url
1 なりす 20 NIPPON MARATHON https://store.steampowered.com/app/746940/Nippon_Marathon/
1 なりす 20 Untitled Goose Game 〜いたずらガチョウがやって来た! https://store.steampowered.com/app/837470/Untitled_Goose_Game/
1 なりす 20 ロック・オブ・エイジス: メイク&ブレイク https://store.steampowered.com/app/1101360/_/
1 なりす 20 毛笔模拟器 / Chinese Brush Simulator https://store.steampowered.com/app/1222160/__Chinese_Brush_Simulator/
1 なりす 20 Fat Prisoner Simulator https://store.steampowered.com/app/1037560/Fat_Prisoner_Simulator/
1 なりす 20 LOST EGG https://store.steampowered.com/app/1098510/LOST_EGG/
1 なりす 20 かぞえ飯 https://store.steampowered.com/app/2500760/_/
1 なりす 20 Meat Beating: No More Horny https://store.steampowered.com/app/1583390/Meat_Beating_No_More_Horny/
2 tlozoote 1 x The Henry Stickmin Collection https://store.steampowered.com/app/1089980/The_Henry_Stickmin_Collection/
from pathlib import Path
import httpx
import time
import logging
from logging import getLogger
logger = getLogger(__name__)
def main() -> None:
// ==UserScript==
// @name niconico_live_user_live_program_user_script
// @namespace Violentmonkey Scripts
// @match https://live.nicovideo.jp/embed/broadcast-history
// @grant none
// @version 0.1.0
// @author aoirint
// @description 2023-12-08T00:07:54+09:00
// ==/UserScript==
@aoirint
aoirint / niconico_point_book_user_script.user.js
Last active December 7, 2023 15:07
ニコニコポイント通帳をTSV出力するUserScript
// ==UserScript==
// @name niconico_point_book_user_script
// @namespace Violentmonkey Scripts
// @match https://point.nicovideo.jp/index/bank/
// @grant none
// @version 0.1.0
// @author aoirint
// @description 2023-12-07T23:37:39+09:00
// ==/UserScript==
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\ClassIndex\{A9B7A1B9-0671-405C-95F1-E0612CB4CE7E}]
@aoirint
aoirint / devtool_niconico_user_live_program_list.js
Last active October 24, 2023 02:36
ニコニコ動画のユーザー別生放送一覧(/live_programs)から動画ID・開始時間・終了時間・タイトルをTSVとして抽出するDevTools用スクリプト(2023-10-24版)
s = ""
for (const programCardElement of [...document.querySelectorAll(".program-card")]) {
// ライブ公開を除外
if (programCardElement.querySelector(".video-premiere-label") != null) continue;
s += [
new URL(programCardElement.querySelector(".program-title a").href).pathname.slice(7),
programCardElement.querySelector(".start-at").getAttribute("datetime").replace(" ", "T") + "+09:00",
programCardElement.querySelector(".end-at").getAttribute("datetime").replace(" ", "T") + "+09:00",
programCardElement.querySelector(".program-title").innerText,
@aoirint
aoirint / 起動引数と環境変数.md
Last active October 8, 2023 07:37
VOICEVOX ENGINEの起動引数と環境変数に関するドキュメントのたたき台(docs/起動引数と環境変数.md)