I use these commands a lot when I'm in a coffeeshop and I'm trying to fine-grain control which wifi connection my laptop is using and dealing with passwords.
IMO OSX's UI for wifi network picking is clunky when you're in an area with >50 wifi networks in range, command line tools are much easier to deal with.
It's not necessary to install a suite of commands if you want updated grep. Just use Homebrew and you can install different versions of grep, including GNU's: brew install grep
Sure but with this you get all the other improved core utils like sed, etc. GNU utils just blow BSD/macOS out of the water. Personally, macOS seems to me like a half baked development platform in general
Some of us don't want all of GNU's utilities; just on an as-needed basis. They're not as needed as they once were.
Many of these utilities have been rewritten in Rust and have more modern features and are faster.
For example, instead of ls, I use exa [1]. Or ripgrep [2] instead of grep. sd [3] instead of sed.
I just tried the following: I copied all of my ~/.bash_history into GPT and asked it for some commands that would save me time. It didn't quite work to identify "bad patterns" as I had hoped, but it did suggest the following: 1. bat : A `cat` clone with syntax highlighting and Git integration. 2. htop : Interactive process viewer, a better alternative to `top`. 3. fzf : Command-line fuzzy finder to quickly search fil…
There is a helper tool for hidutil https://hidutil-generator.netlify.app/ > It's handy for things like remapping CapsLock to anything It's a built-in MacOS feature that you can find in the keyboard settings.
“ to anything ” is the key difference. MacOS only lets you remap it to other control keys.
I like to hide all icons or folders on my Desktop when I need to be more productive or when I'm presenting. This can be done with: # hide desktop icons and folders defaults write com.apple.finder CreateDesktop 0 killall Finder # restarting Finder is required # unhide desktop icons and folders defaults write com.apple.finder CreateDesktop 1 killall Finder # restarting Finder is required I made myself a convenient bash…
I've used this one for over a decade now. When I was a teacher, I even assigned it to a key-combo. Consider pairing with a few other things you might want in a presentation setting
What do you use for assigning it to a key combination? Can it be done without a third party tool?
You should check out "um" https://github.com/promptops/cli for when you can't remember the command/parameters. ~ um prevent my mac from sleeping for 30m caffeinate -u -t 1800 don't see what you're looking for? try providing more context
Hey, this looks awesome. Thanks so much for the pointer.
That sounds amazing, I always wanted to do that! Do you have a guide or some script to help with it? Otherwise, I will try to do it on my own.
Happy to share, but I'm away from my MacBook for the next 2-3 weeks. I'll ping you when I have access to the code again.
I'm also super interested in this! I've had many amusing moments of instinctively typing either `pbcopy` or `pbpaste` on remote boxes followed by a brief moment of confusion when my local clipboard isn't updated :)
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.
I've used AU Lab to pipe my microphone input through my headphones, which is apparently how professionals like to record audio (a "monitor" so you can hear how you sound), but I couldn't get used to it
How was the latency when you last tried it? Most outboard audio interfaces (even inexpensive ones like the Focusrite Scarletts with ≤ 2 inputs) have a "direct monitor" feature that is as close to zero-latency as you can reasonably get.
I like to hide all icons or folders on my Desktop when I need to be more productive or when I'm presenting. This can be done with: # hide desktop icons and folders defaults write com.apple.finder CreateDesktop 0 killall Finder # restarting Finder is required # unhide desktop icons and folders defaults write com.apple.finder CreateDesktop 1 killall Finder # restarting Finder is required I made myself a convenient bash…
Turning off the desktop is one of the first things I do when setting up a new Mac. I still use ~/Desktop often enough that it's one of two folders I keep in the Dock (the other being ~/Downloads).
Although: the introduction of Stacks to the macOS desktop was a great thing — I always show that feature to anyone whose Desktop is helplessly cluttered with files.
Years ago, I wrote a script to find something in a big blob of data and to alert me when it was done, I added a “say ” type phrase upon completion. I forgot about it and went to bed and was jolted awake hours later by what was clearly an “intruder” speaking to his accomplice, in my home office. Quite the relief when I realized what happened.
I use Pushover for a few alerts so years ago I wrote a little bash script called `push` that you pass a title and optionally a body. Was very nice to to `./longRunningCommand && push "Task Done" "Here is a body"`. I'd sometimes combine this with my `beep` script that just makes a noise for when I know I'll still be at my computer but want to know when something finishes.
What's the beep script like? Do you use the terminal bell or does it synthesize a tone?