Not 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…
Never had heard of this before. Some other cool tools in the "additional tools for X-Code" package which I had also never heard of. https://developer.apple.com/download/all/ Thanks for sharing.
macOS command-line tools you might not know about
261–270 of 454 posts
Re: macOS command-line tools you might not know about
#262Earlier quoted context omitted.
Also for things like sharing public ssh keys. Instead of "can you send me your public key" and getting something with random line breaks depending on the users text editor I just have to ask them to "cat ~/.ssh/id_rsa.pub | pbcopy". I also alias pbcopy / pbpaste on Linux too, so useful!
The random linebreaks are ok - SSH can handle them. (that's how Userify does it I think, too. it replicates whatever the user provides.. no judgment :)
Re: macOS command-line tools you might not know about
#263`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.
On Linux I have these wrap xsel or xclip, and likewise open to xdg-open. Now, for your Mac example — if that's a specific pipeline you often use, you can write a Service menu entry to do it in place, without switching to a terminal.
Re: macOS command-line tools you might not know about
#264Re: macOS command-line tools you might not know about
#265Earlier quoted context omitted.
That's a useless use of cat. You can use `jq . foo.json | pbcopy` or `jq < foo.json | pbcopy`.
The “useless cat” meme needs to die. Everyone is aware that most commands accept a file argument, but looking up the arguments and their ordering is annoying and using cat for things like this is just fine.
> but looking up the arguments and their ordering is annoying
you seem to be arguing for complacency. taking your idea to an extreme, why learn to do _anything_ well?
Re: macOS command-line tools you might not know about
#266Earlier quoted context omitted.
> cat textfile.txt > looks like its comma delimited. Interesting; why wouldn't you use `head`? Who knows how big textfile.txt is?
Don't forget to pipe head into 'cat -v'... that text file could contain _anything_!
I still uselessly use cat though, it's such a nice way to build a pipeline.
Re: macOS command-line tools you might not know about
#267[flagged]
Re: macOS command-line tools you might not know about
#268Re: macOS command-line tools you might not know about
#269You can use `say` to recreate your own Serial Experiments Lain intros. say -v Whisper "Weird: Layer zero one"
Re: macOS command-line tools you might not know about
#270I just freaked out my cat using `say`. I'm going to enjoy this too much.
try it out with different voices, for starters try say "process failure" -v trinoids you can find all the available voices with say -v '?' or from Accessibility>Spoken-Content>System-voice>Manage-voices