== 20260907T080523Z 20260907T100523+0200 qwenix f6bb931f #!/data/data/com.termux/files/usr/bin/bash # feppp [brain] [note] — append clipboard dump to the fflog ledger set -u brain="${1:-qwenix}" note="${2:-}" utc=$(date -u +"%Y%m%dT%H%M%SZ") loc=$(date +"%Y%m%dT%H%M%S%z") dir="$HOME/downloads/cognix/fflog" log="$dir/fflog.txt" mkdir -p "$dir" text=$(termux-clipboard-get) if [ -z "$text" ]; then termux-toast "feppp: empty clipboard"; exit 1; fi hash=$(printf '%s' "$text" | sha256sum | cut -c1-8) if grep -q -- " $hash$" "$log" 2>/dev/null; then termux-toast "feppp: dupe skipped $hash"; exit 0 fi { printf '\n== %s %s %s %s\n' "$utc" "$loc" "$brain" "$hash" [ -n "$note" ] && printf 'note: %s\n' "$note" printf '%s\n' "$text" } >> "$log" termux-toast "feppp: +$brain $hash" == 20260907T081242Z 20260907T101242+0200 qwenix 1dc2ae5d note: test v2 set +u t="$HOME/bin/feppp.new.$$" cat > "$t" <<'EOF' #!/data/data/com.termux/files/usr/bin/bash # feppp [brain] [note] — append clipboard dump to the fflog ledger set -u brain="${1:-qwenix}" note="${2:-}" utc=$(date -u +"%Y%m%dT%H%M%SZ") loc=$(date +"%Y%m%dT%H%M%S%z") dir="$HOME/downloads/cognix/fflog" log="$dir/fflog.txt" mkdir -p "$dir" text=$(termux-clipboard-get) if [ -z "$text" ]; then termux-toast "feppp: empty clipboard"; exit 1; fi hash=$(printf '%s' "$text" | sha256sum | cut -c1-8) if grep -q -- " $hash$" "$log" 2>/dev/null; then termux-toast "feppp: dupe skipped $hash"; exit 0 fi { printf '\n== %s %s %s %s\n' "$utc" "$loc" "$brain" "$hash" [ -n "$note" ] && printf 'note: %s\n' "$note" printf '%s\n' "$text" } >> "$log" termux-toast "feppp: +$brain $hash" EOF chmod 700 "$t" mv -f "$t" "$HOME/bin/feppp" hash -r feppp qwenix "test v2"