Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# ppc: Password PGP CLI - Simple password-based encryption/decryption tool
# Usage:
# export PPC_PASSWORD='secret' && cat .env | ppc -e > enc.env
# export PPC_PASSWORD='secret' && cat enc.env | ppc -d > .env
#
# LICENSE: MIT
# IntentScript specification for this tool:

Grok による記事レビュー

全体の感想

おお、めっちゃ面白い実験!Claude CodeとIntentScriptの組み合わせを試した結果、めっちゃ示唆に富んでるね!特に、AIが技術レビューや自己評価までやってくれるってのは、未来の開発スタイルの片鱗を見た感じ。以下、感想と考察をまとめてみるよ。長くなるけど、熱量高めでいくぜ!

実験の着眼点がナイス

割り勘アプリという「ほどよい複雑さ」の題材を選んだのは絶妙。単純すぎず複雑すぎないから、IntentScriptの強みと課題がクリアに見える。主催者・社会人・学生のルールも、実世界のビジネスロジックっぽくてリアリティあるね。

AIの技術レビューがスゴい

claude.md

割り勘アプリ仕様書

# IntentScript 仕様読み込み
include: https://github.com/yosugi/intent-script

warikan_app:
 calculation_rule: |
<?php
namespace DataRenovationBundle\Util;
use ArrayObject;
/**
* DataRenovationBundle\Utils\ArrayUtil
*
* 配列に関わるユーティリティ
*/
"" options {{{1 ------------------------------------------------------------------------------------
" indent
set autoindent
set expandtab
set shiftwidth=4
set smarttab
set tabstop=4
" search
@yosugi
yosugi / with-subcommand.zsh
Last active September 19, 2019 01:57
Add custom subcommand into any command
#!/bin/zsh
#
# with-subcommand.zsh
#
# Description:
#
# Add custom subcomand into any command
#
# Installation:
#
@yosugi
yosugi / tmux-multi-ssh
Created June 21, 2016 05:44 — forked from nikushi/tmux-multi-ssh
tmuxで複数にsshしてコマンドシンクするスクリプト by @mikeda
#!/bin/bash
#
# http://tech.naviplus.co.jp/2014/01/09/tmuxで複数サーバの同時オペレーション/
#
if [ -n "$SESSION_NAME" ];then
session=$SESSION_NAME
else
session=multi-ssh-`date +%s`
fi
@yosugi
yosugi / git-diff-test
Created October 4, 2015 06:06
git-diff-test
#!/usr/bin/env perl
use strict;
use warnings;
sub checkPhp {
my ($file) = @_;
return if ($file !~ /\.php$/);
<h1>ページのタイトルと URL をコピーするブックマークレット</h1>
<a href=
"javascript:void(window.clipboardData.setData('text', '[' + document.title+']('+document.location + ')'))">
URLコピー</a>
<a href=
"javascript:window.prompt('','['+ document.title +']('+ location.href + ')');void(0);">
URLコピーMarkdown</a>
  • ssh
    • host1 - (FW) - host2 - host3
      • host2, 3 は同じネットワークにあるが host1 からは host2 しか見えない
    • host1:2034 に host3 の22をつなげる(host2 を経由)。 host1 で以下を実行する
      • ssh -i <キーのパス> -f -o ServerAliveInterval=60 -g -L 2034(ローカルのポート):host3:22 <host2 のユーザ>@host2
      • mysql にも使えます
      • ssh -N -i <キーのパス> -f -o ServerAliveInterval=60 -g -L 2306:host3:3306 <host2 のユーザ>@host2
    • host3 から host1 にログインする host1 の .ssh/config Host 2ndProxy Hostname Host3