Skip to content

Instantly share code, notes, and snippets.

@ykominami
ykominami / linux-cmd.md
Created January 16, 2026 19:51
[Linux] 現在の推奨コマンド #linux

ifconfig(net-tools) -> ip

iwconfig(WXT) -> iw(nl80211)

scp -> sftp | rsync

egrep/fgrep -> grep

netstat(net-tools) -> ss(iprout2)

route(net-tools) -> ip route

arp(net-tools) -> ip neighbor|ip neigh

@ykominami
ykominami / uv-misc.md
Created January 15, 2026 09:55
[uv-mise] uvコマンド、pyproject.md

uv add --dev ruff ty

@ykominami
ykominami / uv-add.md
Created January 15, 2026 09:40
[uv-add] uv add

Add dependencies to the project.

Dependencies are added to the project's pyproject.toml file.

If a given dependency exists already, it will be updated to the new version specifier unless it includes markers that differ from the existing specifier in which case another entry for the dependency will be added.

The lockfile and project environment will be updated to reflect the added dependencies. To skip updating the lockfile, use --frozen. To skip updating the

@ykominami
ykominami / python-for-loop.md
Created January 14, 2026 01:44
[python|forループの使い方] forループの使い方

Pythonのforループの使い方: 基本的な使い方

  1. リストをループ

基本的なforループfruits = ['apple', 'banana', 'orange']for fruit in fruits: print(fruit)

  1. インデックスと値の両方を取得(enumerate) fruits = ['apple', 'banana', 'orange']for index, fruit in enumerate(fruits): print(f"{index}: {fruit}")# 出力:# 0: apple# 1: banana# 2: orange
  2. 辞書をループ

キーをループdata = {'name': 'John', 'age': 30}for key in data: print(key)# キーと値をループfor key, value in data.items(): print(f"{key}: {value}")# 値だけをループfor value in data.values(): print(value)

  1. 範囲をループ(range)

0から9までfor i in range(10): print(i)# 5から9までfor i in range(5, 10): print(i)# 0から9まで、2ずつ増やすfor i in range(0, 10, 2): print(i) # 0, 2, 4, 6, 8

@ykominami
ykominami / git-repository.txt
Created January 11, 2026 23:13
[gitレポジトリから削除]gitレポジトリから削除 #git
https://chatgpt.com/share/6963e258-0548-8013-976b-97257b866878
@ykominami
ykominami / mise_install.md
Last active January 15, 2026 09:39
[INSTALL] install-mise-grok

install

curl https://mise.run | sh

grok-cli

npm install -g grok-cli

libsecreteが必要

‘‘‘ sudo apt update sudo apt install libsecret-1-0 libsecret-1-dev

@ykominami
ykominami / mcp_win_sqlite.txt
Last active April 14, 2025 01:14
[MCPwin|sqlite] #mcp #filesystem
{
"mcpServers": {
"sqlite": {
"command": "uvx",
"args": [
"mcp-server-sqlite",
"--db-path",
"C:\\Users\\ykomi\\cur\\AI\\MCP\\test.db"
]
}
@ykominami
ykominami / mcp-win-filesystem.txt
Last active April 14, 2025 01:15
[MCP|win|filesystem] #mcp #sqlite
{
"mcpServers": {
"sqlite": {
"command": "uvx",
"args": [
"mcp-server-sqlite",
"--db-path",
"C:\\Users\\ykomi\\cur\\AI\\MCP\\test.db"
]
}
@ykominami
ykominami / prpmt-analyze.txt
Last active April 14, 2025 01:49
[PROMPT|分析] #prompt
今の日本の、主要な都市の降水量
==========
2024年11月現在、日本の主要都市の降水量について以下の情報があります:
- **東京**の11月の平均降水量は約83.5mmです。
- **大阪**は76.4mmと比較的少ない量です。
- **札幌**では71.5mmの降水量が観測され、他の主要都市に比べるとやや多めです。
これらの数値は、各都市の11月の平均降雨量を示しており、通常の降水量の範囲内です ([アメダス実況(降水量) - 日本気象協会 tenki.jp](https://tenki.jp/amedas/precip.html)) ([過去の天気(アメダス・降水量) - 日本気象協会 tenki.jp](https://tenki.jp/past/amedas/precip/)) ([日本の気候、月別の気象、平均気温 - Weather Spark](https://ja.weatherspark.com/countries/JP))。
==========
@ykominami
ykominami / prompt-reading-sample.txt
Last active April 14, 2025 01:44
[PROMPT|英文読回サンプル生成] #prompt
「キャンプを楽しむコツ」についての300ワード程度の英文を作ってください。日本語訳もつけて下さい。最後にその中に含まれるCEFRA2レベル以上の単語のリストを、英語・日本語・発音記号の3列で、表形式で作成してください。