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
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
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.
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 |