Skip to content

Instantly share code, notes, and snippets.

View eai04191's full-sized avatar
🦀

y.takahashi eai04191

🦀
View GitHub Profile
@eai04191
eai04191 / README.md
Last active October 15, 2026 17:44
Toggle the iOS Simulator software keyboard / "Connect Hardware Keyboard" from the command line (simctl and devicectl have no option for it). Works with Xcode 27 Device Hub. Uses private CoreSimulator API SimDevice setHardwareKeyboardEnabled:keyboardType:error: / シミュレーターのハードウェアキーボードの接続を切り替えるCLI

sim-keyboard

Toggle the iOS Simulator software keyboard ("Connect Hardware Keyboard") from the command line, without rebooting the simulator.

simctl and devicectl have no option for this, and Xcode 27 replaced Simulator.app with Device Hub, whose "Simulate hardware keyboard" setting has no command-line or AppleScript interface. This script calls the private CoreSimulator API that controls the hardware keyboard connection: SimDevice setHardwareKeyboardEnabled:keyboardType:error:.

Useful when the software keyboard is not showing in the simulator, for example after an automation tool typed text and the simulator switched to the hardware keyboard.

Usage

@eai04191
eai04191 / national-ff.md
Last active August 1, 2026 09:35
ナショナルFF式石油暖房機リコールCM書き起こし

ナショナルでは古い年式のFF式石油暖房機を探しています
万一の場合死亡事故に至る恐れがあります
給排気筒の付いた商品をお持ちの方は至急ご連絡をお願い申し上げます

https://youtu.be/DAm6bvj6EZE?t=234

ナショナルから重ねてお願い申し上げます
13年以上前に製造されたナショナルFF式石油暖房機を探しています
屋外に給排気筒や煙突のあるタイプで、ご覧の品番の製品の、引き取りや点検修理を行っています
未点検のままご使用になりますと、一酸化炭素を含む排気ガスが室内に漏れ出し、万一の場合死亡事故に至る恐れがあります

@eai04191
eai04191 / node-project-scaffold.md
Last active June 13, 2026 01:29
claude codeに適当にツール作らせる時の指示

caution

  • tsxは使わないでください: node 22.7から.tsを直接実行できます
  • dotenvは使わないでください: node 20からは--env-file, --env-file-if-existsを使用してください
  • axiosは使わないでください: node, ブラウザともにfetchを使用してください
  • npxを常用しないでください: npm scriptを使用してください。npxを使うのは1回限りのコマンドを実行するときだけにしてください
    • typecheck, format, format:check, lint, testはnpm scriptにしてください
    • 必要あればgenerate, build, devなどもnpm scriptにしてください

node

// ==UserScript==
// @name Gemini Auto Switch to Pro (Optimized)
// @namespace http://tampermonkey.net/
// @version 2.1
// @description Geminiの新規チャット時にdata-test-idを使用してProモードへ自動切り替えし、入力欄にフォーカスする
// @author You
// @match https://gemini.google.com/*
// @grant none
// @run-at document-idle
// ==/UserScript==
// ==UserScript==
// @name bm2dxinf rel/trial 別リロード後再クリック
// @namespace http://tampermonkey.net/
// @version 1.2
// @description bm2dxinf://login?...&rel= または &trial= を押したらリロードして同じ種別を再クリック
// @match https://p.eagate.573.jp/game/infinitas/2/api/login/login.html
// @grant none
// ==/UserScript==
(function () {
// ==UserScript==
// @name Mastodon Share via MenuCommand
// @namespace net.mizle
// @version 1.0.0
// @description Share current page to Mastodon via GM_registerMenuCommand
// @match *://*/*
// @grant GM_registerMenuCommand
// ==/UserScript==
const SERVER = "stellaria.network";
  • list item
  • list item
    • rm -rf /
    • Details hello details

rm -rf /

// ==UserScript==
// @name GitHub | Rich Link Copy
// @namespace net.mizle
// @version 1.0.0
// @description GitHubのIssue/PRページで番号とタイトルをHTMLリンクとしてコピーする
// @match https://github.com/*
// @grant GM_registerMenuCommand
// @grant GM_addStyle
// @grant GM_getResourceText
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/shortcut@1

GitHub Organization Outside Collaborators Report Generator

This script generates a Markdown report of all outside collaborators with access to private repositories in a GitHub organization.

Features

  • Lists all outside collaborators in your organization
  • Shows which private repositories each collaborator has access to
  • Displays permission levels (read/write/admin)
  • Creates clickable links to repositories and user profiles