Collection of mostly command line tools / PHP scripts. Somewhat out of date.

โŒˆโŒ‹ โއ branch:  scripts + snippets

changed spline pacing mode: one less iteration to avert last section stuck at 1.0, reset .frame.args.delay just in case (repeat animations, e.g. fg/bg frames)
mario authored 141 days ago last checkin 483352ece
๐Ÿ“„ Makefile Reworked wrapper script to allow for piping and `-` placeholder paramโ€นโ€บ 3021 days ago
๐Ÿ“„ pipefunc.php Use array_shift for multiple positional - - - stdin/json placeholdersโ€นโ€บ 3021 days ago

php

Shell PHP function wrappers

Allow to call plain PHP functions from the command line.

  • Parameters can be passed as arguments:

    strtolower ABC
    
  • Or passed in from stdin:

    echo ABC | strtolower
    
  • And array functions can use JSON

    echo [1,2,3] | print_r
    
  • Alternatively as positional parameters

    echo '[1,2,3]' | var_dump -
    

It's most useful of course with simple string-to-string pipes:

cat file | gzencode | base64_encode | base64_decode | gzdecode | print_r

(Or something more pointful..)