`pbcopy` and `pbpaste` are one of my most-loved in the list. Dealing with some minified json, switching to iTerm, doing `pbpaste | json_pp | pbcopy` and having a clean output is _so_ nice.
Since you mention both pbcopy and iTerm - I love https://github.com/skaji/remote-pbcopy-iterm2 . I do most of the work on a remove Linux server, treating my MacBook as mostly a dumb terminal, and being able to transparently copy from the remove to my local clipboard is so nice.
macOS command-line tools you might not know about
71–80 of 454 posts
Re: macOS command-line tools you might not know about
#72Not a command-line tool but the network link conditioner is also really great. Never seen such a tool on another OS You can simulate a really bad network. Latency, bandwidth, packet loss etc. Great for testing but also if people insist on cameras being on. Just screw up the connection so bad that everyone gets annoyed with your blocky image and robot voice and suggest you turn off video and then you make it 'magicall…
Re: macOS command-line tools you might not know about
#73Re: macOS command-line tools you might not know about
#74Re: macOS command-line tools you might not know about
#75Is there any easy shortcut to resizing an image by percentage or fitting to a specific size? Many a times, a website says "file needs to be no bigger than 2 MB", and I need to scramble with Preview app to resize teh app until it falls below that limit. A cli tool for that action would be very handy.
You can even do bulk cmds with cli on images:
for x in ls *.webp; do ffmpeg -i $x ${x%.webp}.png; done
reformats images from webp to png in a directory. magick mogrify -monitor -format jpg *.png -compress 70
reformats and compresses pngs to be jpg in a directoryRe: macOS command-line tools you might not know about
#76Re: macOS command-line tools you might not know about
#77`pbcopy` and `pbpaste` are one of my most-loved in the list. Dealing with some minified json, switching to iTerm, doing `pbpaste | json_pp | pbcopy` and having a clean output is _so_ nice.
If I had a nickel for each `cat foo.json | jq | pbcopy`, I'd be a rich man :)
Re: macOS command-line tools you might not know about
#78Re: macOS command-line tools you might not know about
#79`pbcopy` and `pbpaste` are one of my most-loved in the list. Dealing with some minified json, switching to iTerm, doing `pbpaste | json_pp | pbcopy` and having a clean output is _so_ nice.
I love this flow! Such a powerful and clean way to solve text issues. # This will remove Windows double-spaced empty lines from your copy/paste buffer alias winlines="sed '/^$/{$!{N;s/\n//;};}'" # pbw = [P]aste [B]uffer to fix [W]indows line endings alias pbw="pbpaste | winlines | pbcopy" Also - if you want `pbpaste` and `pbcopy` on Linux... # imitate MacOS's paste buffer copy/paste: alias pbcopy='xsel --clipboard --…
alias pbcopy="xclip -selection clipboard"
alias pbpaste="xclip -selection clipboard -o"Re: macOS command-line tools you might not know about
#80`pbcopy` and `pbpaste` are one of my most-loved in the list. Dealing with some minified json, switching to iTerm, doing `pbpaste | json_pp | pbcopy` and having a clean output is _so_ nice.