Show HN: Swiss Army Knife for Mac OS X
github.com
github.com
This one seems to get the balance a lot more right, with a lot of things that the average OS X admin wouldn't know off the top of their head.
- 'm lock': That's a lot better than whichever arcane key combination does it by default (my laptop stays closed most of the time, so the power button isn't an option).
- 'm nosleep': I would have to look that one up.
- 'm finder showhiddenfiles': It beats Googling for the proper 'defaults write' invocation.
Related to that is `pmset -g assertions` which will list all the various things that are keeping your machine from sleeping.
HNews discussion about it 3 weeks ago:
https://news.ycombinator.com/item?id=11977162
But I too wonder why I should use this instead of Mac-CLI?
I like the exclusive focus of this tool to only mac administration tasks which are specific to mac OS X and that I would not know off the top of my head.
The volume plugin has a more fine-grained control for adjusting the volume. The keyboard based function keys will increase/decrease the volume by 6/7. Now I can increase by smaller increments. Excellent.
It's really nice, but I'd like to see something like that as a standard in shells.
$/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I
lots of useful commands like that are not in your path by default, that said, at least os x lets you modify almost any part of the system with shell commands.
/usr/local/bin/airport
$ which airport
airport not found
INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)Downloading m-cli from git to /usr/local fatal: could not create work tree dir '/usr/local/m-cli': Permission denied Failed to clone => https://github.com/rgcr/m-cli.git
Off course it won't be able to access the /usr/local/
> You can also install it in a different path
INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)
> Note: You need privilegesThis and the other one that was on HN a short while back, I just don't get the point. Learn the command line, already. Yes, some are hard to remember, but that's why history exists. And if you rarely use one, keep it in a simple, greppable text file.
but, you gotta do what you gotta do to actually do stuff.
i sure as hell ain't going back to the days of compiling everything from source.
./configure
make
make install
I do that a lot, and 90+% of the time, it's that simple.not to mention the tracking of installed files and library dependencies that slowly develop into an accumulated spiderweb shitstorm of runtime conflicts.
have you tried maintaining multiple versions of a shared object libraries by hand? do you remember the 'make install' wrappers that never worked right? pepperidge farm remembers.
Android and Chrome for example are really ahead of this in my opinion. Apps are sandboxed and you know uninstall clears up traces of them. Obviously it's not perfect but it's miles ahead of installation scripts and binary installers which can do anything they want with your system and might be hard to get rid of.
Not in all versions of Android, if they write stuff on the SD card.
Then you can paste it in a text editor and if it is not too long you can verify the script.
And as this one is on github you can take a look directly.
curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install..... > install.sh
curl -O ...
or curl -o install.sh ...Really? The documentation explicitly says that it does:
INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)/usr/local/m-cli/plugins/dir: line 3: /lib/functions.sh: No such file or directory
I must admit to flagging this particular submission, as it is the fifth time it has been posted in as many days, with no other contributions (whether of comments or stories) to speak of. Forgive me if this seems harsh, but just to keep submitting the same item over and over without any other activity (including responding to comments made in the prior submissions) does not seem in alignment with HN.
It looks like the same person was submitting the same thing, daily, to try and make it stick (without any other apparent engagement with the site in terms of submissions or comments). So I think @miles is considering that abusive behavior?
I believe when the mods ask people to resubmit something, they only ask for 1 resubmission (at least that's how it went when I was asked to resubmit something: a second shot, and it didn't get picked up, so that's that).