|||

IMAGEMAGICK

Convert all HEIC files in current directory to jpg:

magick mogrify -format jpg *.HEIC

Convert all HEIC files in current directory and any/all subdirectories to jpg:

(Following is given for Windows, check on bash/zsh for-in loop syntex.)

FOR /R %a IN (*.heic) DO magick mogrify -format jpg "%~a"

Imagemagick shrink pdf:

convert -density 120 -quality 10 -compress jpeg original.pdf output.pdf

Other pdf conversions

Super simple ps2pdf:

ps2pdf input.pdf output.pdf

Ghostscript:

gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/printer \ -sOutputFile=outputfilename.pdf inputfilename.pdf

pdfsizeopt installed via Homebrew did not work for me

FFMPEG

Convert an input media file to a different format, by re-encoding media streams:

ffmpeg -i input.avi output.mp4

Set the video bitrate of the output file to 64 kbit/s:

ffmpeg -i input.avi -b:v 64k -bufsize 64k output.mp4

###Force the frame rate of the output file to 24 fps:

ffmpeg -i input.avi -r 24 output.mp4

Force the frame rate of the input file (valid for raw formats only) to 1 fps and the frame rate of the output file to 24 fps:

ffmpeg -r 1 -i input.m2v -r 24 output.mp4

The format option may be needed for raw input files.

Sample from ShotStack that reduces size too:

ffmpeg -i input.mov -c:v libx264 -pix_fmt yuv420p -crf 28 -vf scale=-1:720 output.mp4

-i input.mov: - specifies the input video file.
-c:v libx264: - sets the video compression codec to H.264 (libx264).
-pix_fmt yuv420p - changes the ProRes pixel format (4:2:2) to H.264 compatible pixel format (4:2:0).
-output.mp4 - the name of the output file.

REGEX

using capture groups () :the value in first group is \1

%s/\s\(\d\)/\r\1/g

Option 1 would be achieved by :set textwidth=30 Then you can reformat your text by highlighting it (in visual mode) and typing gq. Textwidth can be abbreviated as tw, thus :set tw=30.

Things afoot or to try:
ohmyzsh: have it, colorful
pass: password manager, still using Google and Apple happily
terminal: not sure what this means, am happy with MacOSTerminal neovim: no noticeable benefit except maintenance by a group
kitty: tried it but meh, can’t remember what it did
fzf: also have, can be useful
tldr: this is great

To be sure: \[x=\]

Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1
Up next Declaration DECLARATION OF CONDOMINIUM 1. Description of Land 2. Creation of Units 3. Unit Numbers and Boundaries 4. Common Elements. 5. Limited Common Treasurer Report Guidelines A Treasurer’s Report for a Homeowners Association (HOA) board meeting typically provides a financial overview of the HOA’s finances and addresses
Latest posts Cash Accounts Treasurer Report Guidelines IMAGEMAGICK Declaration MECondoInsurance BY-LAWS 1 ETW 9-11 ETW Accounting Outline World Cup Schedule Yogurt Google drive World Cup Groups A Mortgage Story KaTeX sans Crostini maps-2 Long Trail part 1 A Good Idea LT21Scorched2 LT21beaverDam AT Happy Hill A Gear Graphic Wildfire Crouton