Skip to content

Instantly share code, notes, and snippets.

View tsukumijima's full-sized avatar
📺
TTS & DTV

tsukumi tsukumijima

📺
TTS & DTV
View GitHub Profile
@Lesmiscore
Lesmiscore / pxu2gdl.py
Last active December 17, 2022 17:34
PixivUtil2 to galley-dl migration script
### PixivUtil2 to galley-dl migration script
# this assumes that:
# - FIRST FOUR filename format options in PixivUtil2 (i.e. filenameFormat, filenameMangaFormat, filenameInfoFormat, filenameMangaInfoFormat) are set to
# "%artist% (%member_id%)-%urlFilename%-%title%" (should be default)
# - PixivUtil2 hasn't modified, or very slight (such as fixing image ID and page number into a certain length)
# - "archive-format" options in gallery-dl for pixiv category is default
# usage: python3 pxu2gdl.py
@hyuki
hyuki / ChatWithChatGPT.md
Last active April 10, 2025 03:23
結城浩とChatGPTの対話

結城浩とChatGPTの対話

2022年12月2日

  • 「質問」は結城浩の文章です。
  • 「回答」はChatGPTの文章です。

質問

ChatGPTという対話するAIツールがあります。人間が質問を投げかけるとそれらしく対話して回答してくれるツールです。こういうツールに対してどんな質問を投げかけたらおもしろい対話になるでしょうかね。何かアイディアがあったら聞かせてください。具体的な質問を知りたいなあ。

@mala
mala / meety_vuln.md
Last active September 14, 2024 09:13
Meety脆弱性 2022-11

Meety脆弱性 2022-11

文責 mala

経緯:

  • Meety退会しようと思ったがアカウントがなかったので、退会するためにアカウントを作ることにした。

免責:

  • 気になった範囲ですぐに見つかったもののうち、悪用可能なものを記載しています。
  • 好ましくないが仕様だろうというものは書いていません。
@kazuki0824
kazuki0824 / eit_handler.md
Last active November 3, 2022 15:30
Mirakurunを活用した番組追従の仕様(かり)

最近のMirakurunの仕様(たぶん)

  1. Mirakurunは各チャンネルを定期的に巡回しEIT[schedule]を収集している
  2. MirakurunがチャンネルAを開いている(≒ユーザの指令でチャンネルAに選局されている)ときは、常にそのチャンネルのTSに含まれるEIT[schedule]とEIT[p/f]を収集している。EIT[p/f]を発見したときクライアントに通知を送ることもできる
  3. 逆に、それ以外のときはEITを捉えられない
  4. Mirakurun の Program Stream APIは少し高度な機能を持っていて、 「引数に与えられた番組が始まるまでは何もデータを返さず、始まったらデータを返し、終わったらコネクションを終了」するという挙動をする。区間を見定めるとき、EIT[p/f]も読んでいる。 ただ、イベントリレーみたいな高等処理まではしてくれない
  5. つまりPrograms Stream APIを使えば(番組がその時ちゃんと始まっていさえすれば)勝手に番組の終端まで録画してくれます。 ※ただし、放送前に時間が変更していて、かつその事実をMirakurunが捉えられていなかった場合、しばらくデータを待ったあとコネクションがタイムアウトしてしまう!
@DaniruKun
DaniruKun / whisper-transcribe.bash
Last active November 7, 2024 07:15
Transcribe (and translate) any VOD (e.g. from Youtube) using Whisper from OpenAI and embed subtitles!
#!/usr/bin/env bash
# Small shell script to more easily automatically download and transcribe live stream VODs.
# This uses YT-DLP, ffmpeg and the CPP version of Whisper: https://github.com/ggerganov/whisper.cpp
# Use `./transcribe-vod help` to print help info.
# MIT License
# Copyright (c) 2022 Daniils Petrovs
@uru2
uru2 / scan_ch_mirakc_docker.sh
Last active December 18, 2024 08:27
docker mirakcコンテナーを利用したmirakc用チャンネルスキャン
#!/bin/sh
# mirakc channel scan (using mirakc docker container image)
# by uru (https://twitter.com/uru_2)
#
# require:
# docker
# jq
set -eu
export LANG=C.UTF-8
@garfieldnate
garfieldnate / build_dict.py
Created July 14, 2022 09:42
Create custom user dictionary for use in MeCab through Fugashi
# Generate custom MeCab dictionary to be used with unidic-lite
import sys
from fugashi.fugashi import build_dictionary
import unidic_lite
args = (
sys.argv[0]
@othyn
othyn / guide.md
Last active May 12, 2025 21:59
Fix horrendously bad macOS (12.3.1 tested) SMB (Samba) performance on Unraid

Intro

Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.

Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!

May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata.

Sources

@johnspurlock-skymethod
johnspurlock-skymethod / r2-notes.md
Last active March 13, 2024 17:32
Unofficial R2 notes
@GenbuHase
GenbuHase / NegativeSpiral.md
Last active February 16, 2022 01:23
薬物依存の悪循環
graph TD
    A(気分が良くなるよ) --> B(一度だけなら...)
    B --> C(薬の効力が切れると......)

    C --> |イライライライラ| D(薬が切れた<br />薬がもうない)
    D --> E(早く薬を<br />苦しい)
    E --> |体に耐性ができて次第に使用量が増えていきます|F(もっともっと)
    F --> G(一時的に欲求は満たされます)
 G --&gt; H(薬のことしか考えられなくなります)