Live data from Hacker News

OS X Command Line Utilities

mitchchn.me

81–90 of 210 posts

Re: OS X Command Line Utilities

#81
post #39
post #26

Earlier quoted context omitted.

I must say...being a sysadmin with the ability to ssh into developers' laptops remotely in our domain...this is one of the more fun commands ;)

I hope that ssh'ing into anyone's laptop using your sysadmin credentials in order to play a prank is a fireable offense at your company.

I, for one, neither wish ill will on people I don't know, nor do I wish a miserable workplace with uptight, excessively punitive policies on anyone.

Re: OS X Command Line Utilities

#82
post #18

I would add caffeinate, which prevents the Mac from going to sleep. It can do this indefinitely, for a fixed period of time, or after a process is done running. You can even specify that process either as the PID of an existing process or by invoking it through caffeinate itself.

Recommend "Amphetamine" as an alternative. More features and kept up to date with bug fixes and improvements. I am not affiliated, just a happy user.

Can you explain why one might use this, versus just setting the machine to not sleep in System Preferences, in combination with not turning off hard disks, etc?

I still set my display to sleep, however. Am I missing something?

Re: OS X Command Line Utilities

#83

As a longtime Mac user (as early as System 7) and aficionado of UNIX, I love OS X's CLI and its affordances. The linked article provides several well-packaged tidbits that might encourage users of other CLI-replete OS's to check out OS X. More power. However, I'm not a fan of the soft recommendation for Homebrew. I understand Homebrew places everything in `/usr/local` but software installs on Mac should generally con…

I don't like putting homebrew into /usr/local, because many other installers put stuff in there, often incorrectly, and it sort of acts as a bit of a dumping ground. I install to /homebrew and it works fine. homebrew bitches and moans about not being installed to /usr/local, but it's never been an issue for me -- probably because I use application level package managers (emacs cask, python, opam, &c.) rather than homebrew for those sorts of things.

I still hate homebrew, of course, because it doesn't handle dependencies well at all, but I'm not 100% ready to switch to nix. Maybe that can be my project for the week, actually.

Re: OS X Command Line Utilities

#84
post #75

Great list, not a big fan of homebrew personally, or its creator who seems to be full of himself. I'd recommend pkg_src from joyent[0]. homebrew seems to have a lot of the hip webdev packages, but pkg_src and joyent's repository is the real deal when it comes to hardcore UNIX package management. Some friends have a nice bootstrap for pkg_src on OS X called saveosx[1], too. [0]: https://pkgsrc.joyent.com/install-on-os…

This seems to be somewhat ad hominem. Shouldn't software be judged by its own merits as opposed to those of its creator? (even if this is a big deal to you, Homebrew's creator seems to be not nearly as involved as he was initially).

I must disagree with your assessment that Homebrew is focused primarily on webdev. There is rarely any package (webdev-related or not) that I haven't been able to install with it. I'd venture to say that not once over the past 12 months have I had a single problem installing anything.

I'm also curious what pkg_src offers over Homebrew (and vice versa).

Re: OS X Command Line Utilities

#85
A key command is missing: textutil.

textutil is a general purpose front end to the core text engine and is one of the cleanest docx-to-html converters I've run across, with a bunch of file formats supported and charset encoding translations, metadata manipulation commands, and assorted juicy goodness for people who have to mess with word-processed text.

Ironically the only common-on-Apple document format it can't do anything with is that of Apple's Pages word processor ...

Re: OS X Command Line Utilities

#86
post #78

Earlier quoted context omitted.

This is great, and the voices apparently only know how to speak English, and their own language! That is, typing say -v Milena "Здравствуйте, меня зовут Milena. Actually says, "Zdravstvuyte...", while typing say -v Bruce "Здравствуйте, меня зовут Milena. Results in "Cyrillic capital letter 'Z'. Cyrillic small leter 'd'.", etc.

"Bruce" triggered the English response? That's a weird ML algorithm.

No, "-v Bruce" did (forcing the use of the "Bruce" voice, which is in English).

Re: OS X Command Line Utilities

#87
"Many a Linux power user has tried to use locate to search for files on a Mac and then quickly discovered that it didn’t work."

Rather, that it gives you instructions for getting it to work. How's a Linux power user getting by without following such instructions to turn on one of their favorite utilities?

Re: OS X Command Line Utilities

#88
post #49
post #39

Earlier quoted context omitted.

I hope that ssh'ing into anyone's laptop using your sysadmin credentials in order to play a prank is a fireable offense at your company.

And I hope that I would get fired for a little rare, light-hearted humor as I wouldn't want to work there anyways. Chill out, winston.

> Chill out, winston

Please don't. This comment would be fine with just the first sentence.

Post reply on HN