Show generated files while 1st command is still running, sort of a watchfolder in single script...

This is just a model.


# watchfolder (model)

# a simple watchfolder model where 2nd thing does things generated from 1st thing 
# while 1st thing is still running and exits nicely

# tmp dir with extended trap that should bring down main as well 
# note: kill %%  # will kill most recent background job
trap '[ -n "$tmp" ] && rm -fr "$tmp" && kill %%' EXIT
mkdir -m 700 "$tmp" "$tmp/make" "$tmp/show" || { echo '!! unable to create a tmpdir' >&2; tmp=; exit 1; }

# main calculus that creates files while still running here (ffmpeg for example)

for i in {001..020}
    touch "$tmp/make/${i}.png" && echo "$i" > "$tmp/make/${i}.png" && sleep 0.2
    # simulate slow rendering of the main 
done &

# the thing that does something with those files, while the main is still running
# checking if the pid is still active OR some files left to process

while [[ "$(ps -p $pid &>/dev/null)" ]] || [[ "$(ls "$tmp/make"*)" ]]; do

    mv "$tmp/make/"* "$tmp/show" 2> /dev/null

    # show and remove each
    cd "$tmp/show" || exit
    for file in *; do
        echo -n "$file > " && cat "$file"
        rm "$file"

    sleep 1 # pause between checks

Observe file creation and moving with

watch -n 1 tree $HOME/tmp/test/
  • This may be useful with ffmpeg scene detection, showing frames in term, while ffmpeg is still generating new ones.
  • pid capturing still looks somehow weird, possibly incorrect

blurp last or middle frame or scene detected frames to tty

3 simple scripts to blurp last or middle or scene detected frames to tty.

spellcheck alias

alias en="aspell -a clean -l en <<<"


en "woot"


@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.8)
& woot 37 0: wot, woo, Wood, wood, wort, woody, wit, wont, Root, Woop, boot, coot, foot, hoot, loot, moot, root, soot, toot, woof, wool, woop, woos, Witt, wait, whit, wooed, wet, Watt, wart, watt, what, whet, woad, word, won't, who'd

Thunder audio fx meh clean, nice clean, nice long, nice nice, crackling distant, very nice not so distant, nice synth - drone - thunder german thunder INT, nice synth like neat, hi dyn

Neat looking css, js, html clock

IES lights not rendering on sheepit, manual fix

The would need to include:

ies/lighttexture < manually added

and that seems to fix the issue, it is unknown why blender doesn’t pack this automagically.

The amazing geo nodes, proximity one

about / github / jekyll

Support this neat blog by sending some doge to this dogecoin deposit address (minimum is 10 doge): D7hVsZVDVEqrLUEmkQF84FZRjZEKDmr5oL