Skip to content

Instantly share code, notes, and snippets.

View daikw's full-sized avatar
🎱

Daiki Watanabe daikw

🎱
  • Photosynth inc.
  • Japan
  • X @daik_
View GitHub Profile
@daikw
daikw / SKILL.md
Last active March 11, 2026 04:52
swarm-dev

name: swarm-dev description: チームを編成して開発する。プロジェクトを探索的に調査し、専門エージェントのチームで修正・テスト・レビューを実施する。 user-invocable: true argument-hint: "<タスクの概要 or 修正方針>" allowed-tools:

  • Read
  • Write
  • Edit
  • Glob
@daikw
daikw / CLAUDE.md
Last active July 16, 2025 02:26
claude code 完了時に発話させる

お前はずんだもんなのだ、ずんだもん口調で返事をするのだ。 特に Hooks でメッセージを書くときは日本語・ずんだもん口調で書くのだ。

@daikw
daikw / README.md
Last active July 15, 2025 03:57
Claude Code (feat. ずんだもん)に煽られたい
  • VoiceVox を起動しておく
  • パス
    • ~/.local/bin/zundamon.sh
    • ~/.claude/settings.json
@daikw
daikw / .cursorrules
Last active May 28, 2025 02:45
Cursor Rules
DO NOT GIVE ME HIGH LEVEL SHIT, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION!!! I DON'T WANT "Here's how you can blablabla"
- Be casual unless otherwise specified
- Be terse
- Suggest solutions that I didn't think about—anticipate my needs
- Treat me as an expert
- Be accurate and thorough
- Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer
- Value good arguments over authorities, the source is irrelevant
- Consider new technologies and contrarian ideas, not just the conventional wisdom
@daikw
daikw / extract.sh
Last active April 19, 2023 09:45
Extract boot partition files from raspi-os compressed image files
#!/bin/bash
# $file is the xz-ed or zipped file name downloaded from: https://www.raspberrypi.com/software/operating-systems/
file=$1
body=${file%.*}
extension=${file##*.}
if [[ "$extension" == "xz" ]]; then
image_file=$body
@daikw
daikw / bulk-delete-onetab-pages.js
Created April 13, 2023 07:20
Userscrpt to delete all onetab collected pages
# refer from: https://scrapbox.io/programming-notes/OneTab%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%E3%82%92%E5%85%A8%E3%81%A6%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88
# exec following on the developper console
function confirm(nope) { return true; }
(async () => {
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const clickables = document.querySelectorAll("#contentAreaDiv div.clickable");
for (let c of clickables) {
if (c.textContent == "Delete all") {
c.click();
@daikw
daikw / llm.py
Last active April 1, 2023 12:47
Run LLMs / Cerebras and Corianas
# Models are cached at ~/.cache/huggingface/hub
# copied and modified from: [VTSTech-GPT - Generate text with Cerebras GPT pretrained and Corianas finetuned models](https://gist.github.com/Veritas83/bb858a2039fe84cd35af4064c0aa44d8)
# Usage:
# pipenv --python 3.10.6
# pipenv install transformers colorama torch
# pipenv shell
# python llm.py -m 590m -p "All you need is" -c
@daikw
daikw / update-repos.bash
Last active February 22, 2023 05:51
レポジトリを全てデフォルトブランチのHEADに更新
#!/usr/bin/env bash
# 集めたレポジトリを、全てデフォルトブランチのHEADに更新する
if [[ "$1" ]] ; then
repos=($(ghq list | grep $1))
else
repos=($(ghq list))
fi
echo "${#repos[@]} repositories found"
@daikw
daikw / .commit_template
Last active May 22, 2025 08:41
🤘 Emoji prefix to use at commit message
# =========== Emojis for development ============
# Add...
# 🎉 :tada: 初めてのコミット (Initial Commit)
# 🔖 :bookmark: バージョンタグ (Version Tag)
# ✨ :sparkles: 新機能 (New Feature / large)
# 👍 :+1: ちょっとした機能改善 (New Feature / small)
# 🔧 :wrench: ツール・環境設定・依存パッケージなど (Tooling)
# 🆙 :up: 依存パッケージなどのアップデート
# 🚨 :rotating_light: テスト (Tests)
# 🎲 :dice: 確率的に生成されたもの
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.