Skip to content

Instantly share code, notes, and snippets.

View aoirint's full-sized avatar
🐱

aoirint aoirint

🐱
View GitHub Profile
@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)
@aoirint
aoirint / devtool_list_youtube_video.js
Last active October 8, 2023 03:35
YouTubeの投稿動画一覧(/videos OR /streams)から動画ID・タイトルをTSVとして抽出するDevTools用スクリプト(2023-10-08版)
// 最初に以下を実行
videoIdList = []
rowList = []
setInterval(() => {
for (let videoElement of [...document.querySelectorAll("#video-title-link")]) {
// if (videoElement.innerText.indexOf("MY KEYWORD") == -1) continue;
const videoId = new URL(videoElement.href).searchParams.get("v")
const videoTitle = videoElement.title
@aoirint
aoirint / fetch_hasura_graphql_schema.py
Last active September 25, 2023 10:19
HasuraからAdmin SecretでGraphQL Schema (schema.graphql)を取得するスクリプト(mirumee/ariadne-codegen用), requirements: hasura/graphqurl, python-dotenv, pydantic V2
# License: CC0-1.0
import os
import subprocess
from argparse import ArgumentParser
from pathlib import Path
from dotenv import load_dotenv
from pydantic import BaseModel