Skip to content

Instantly share code, notes, and snippets.

View n0mimono's full-sized avatar

Ryota Yokote n0mimono

View GitHub Profile
@n0mimono
n0mimono / config
Created January 9, 2026 04:47
Ghostty
font-feature = -dlig
font-size = 13
keybind = shift+enter=text:\n
#!/bin/bash
input=$(cat)
EVENT=$(echo "$input" | jq -r '.hook_event_name')
NOTIF_TYPE=$(echo "$input" | jq -r '.notification_type // empty')
case "$EVENT" in
"Stop")
terminal-notifier -title "Claude Code" -message "処理が完了しました" -sound "Glass"
;;
@n0mimono
n0mimono / youtube.js
Last active March 13, 2025 09:22
YouTubeLiveChat with Chromium
const puppeteer = require("puppeteer");
const VIDEO_ID = "VIDEO_ID";
const YOUTUBE_LIVE_URL = `https://www.youtube.com/watch?v=${VIDEO_ID}`;
const INTERVAL_MS = 2000;
(async () => {
console.log("🟢 Launching browser...");
const browser = await puppeteer.launch({
headless: true,
@n0mimono
n0mimono / background.js
Last active March 13, 2025 07:17
YouTubeLiveChat for Chrome extension
const background = {
store: {
messages: [],
},
interval: 1000,
update: function () {
console.log(this.store.messages)
if (this.store.messages.length > 0) {
chrome.action.setBadgeText({ text: this.store.messages.length.toString() });
@n0mimono
n0mimono / YouTubeLiveChat.cs
Last active December 12, 2024 09:00
YouTubeLiveChat for Unity
using System;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.Networking;
using System.Linq;
using System.Threading;
using System.Text;
@n0mimono
n0mimono / Cat.cs
Last active September 27, 2024 11:09
using UnityEngine;
public class Cat : MonoBehaviour
{
[SerializeField] GameObject left;
[SerializeField] GameObject right;
[SerializeField] float radius;
[SerializeField] float velocity;
[SerializeField] float theta;
@n0mimono
n0mimono / content.js
Created August 8, 2024 09:50
Script Injection
const _addEventListener = addEventListener
EventTarget.prototype.addEventListener = function (type, listener) {
switch (type) {
case 'visibilitychange':
_addEventListener.apply(this, [
type,
() => console.log(`${type} is disabled`)
])
break
ffmpeg -re -loop 1 -f image2 -i path/to/your/image.jpg -r 10 -f lavfi -i anullsrc -c:v libx264 -preset ultrafast -tune stillimage -pix_fmt yuv420p -b:v 100k -maxrate 100k -bufsize 200k -g 40 -c:a aac -ar 44100 -b:a 64k -f flv rtmp://a.rtmp.youtube.com/live2/your_stream_key

Controlnet with Colaboratory

!nvidia-smi

# download web-ui
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui

# download controlnet as extensions
!git clone https://github.com/Mikubill/sd-webui-controlnet /content/stable-diffusion-webui/extensions/sd-webui-controlnet
@n0mimono
n0mimono / note.md
Last active June 15, 2022 20:38
相談的なやつのメモ

概要

「CTO採用したいんやがどんな人採用すればいいかわからん」と聞かれることあるので、自分のスタートアップのCTO感をここにふらっとまとめてみる。

CTO

そもそもCTOは

  • 経営チームのメンバーである
  • すなわち経営職である