Friday, July 5, 2019

Mac Tools and Applications



https://apple.stackexchange.com/questions/12161/os-x-terminal-must-have-utilities
https://brettterpstra.com/2013/02/09/quick-tip-jumping-to-the-finder-location-in-terminal/
ack: http://betterthangrep.com/

Change directory to the current Finder directory

cdf() {
    target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
    if [ "$target" != "" ]; then
        cd "$target"; pwd
    else
        echo 'No Finder window found' >&2
    fi
}
cdf to open the Finder directory in the terminal and open . to open in Finder the directory terminal directory.
  • pip install Pygments to install pygments.
Autojump
cd project1
j p will now take you straight to the full project1 path.
Now what if you create a similar folder called project2 which you also access often (but less than project1), Autojump will assign a lesser weight to project2 and take you straight to project1.
If you hit TAB after typing "pro" for instance, your shell will display project__, hinting at the fact that there are more than 1 matching directory. Another TAB hit will display the list of matching directories and allow you to select the one you mean.

https://www.howtogeek.com/275381/the-best-command-line-tools-you-can-get-on-your-mac-with-homebrew/
Convert Images With ImageMagick
brew install imagemagick
Now you can start using the application to do all sorts of things. For example, if you wanted to convert a file from a PNG to a JPG, you’d run:
convert example.png example.jpg
You can do a lot more than just convert files, too. Here at How-To Geek, for example, put a 1 pixel black border on our images, and I do it with this command:
convert -border 1x1 -bordercolor black testing.png result.png

Mac users have been able to turn their menu bar black for a while now, a feature called “Dark Mode”. This Terminal application lets you toggle that mode one and off quickly from the Terminal. Installation, again, is easy:
brew install darkmode

brew install dockutil
The tool can do many things, including add a dock icon for any website. Here’s how that command looks for Facebook:
dockutil --add http://www.facebook.com --label Facebook
https://www.flexihub.com/best-mac-developer-tools/
Tower: https://www.git-tower.com/mac/
An easy to use Git client for Mac

7. SourceTree

Go2Shell
Go2Shell tool that opens a terminal window to the current directory in Finder. You simply install this app, drag and drop it onto the Finder toolbar​, and get a button in your Finder windows to click and open a terminal window in that directory

1Password – Is one of the first tools I install. It’s over-the-air syncing makes using it on my iPhone and iPad even easier. It also has made me use better passwords because I no longer have to remember them. 1Password does that for me.

Xcode – If you write macOS or iOS applications, you spend most of your life in Xcode and Instruments. I am no different.
CodeRunner – There are times I am writing a small snippet of code to share with someone or just to test an idea on my own. I don’t necessarily need the full power of Xcode, so CodeRunner comes in handy.

Tower – Version control with git made easy, in a beautiful, efficient, and powerful app.

Reduce App – Compress huge Sketch files to a light one.
Zeplin – Zeplin is a great collaboration tool for designers and developers; design hands-off has never been easier.
xScope – I use xScope to detect colors on various UI elements, check alignment of controls and to measure the distance between objects. If you are meticulous about your UI, it’s a great utility.
Boom – macOS volume booster with advance equalizer controls and audio effects.
Lungo – Lungo replaced Caffeine from my previous list. Is a tiny program that puts an icon in the right side of your menu bar. Click it to prevent your Mac from automatically going to sleep.
The Unarchiver – A file extraction utility is somewhat of an unsung hero, but when you need it, it’s good to have a utility that is robust and can fit almost any bill. The Unarchiver does that and does it well.
CleanMyMac – Keep your Mac healthy with this incredible app, I use it regularly and love it.
Checkmate – A built-in doctor for your Mac that spots small problems before they can become big problems.
Android File Transfer – Browse and transfer files between your Mac computer and your Android device.
DesktopUtility – Hide your desktop, toggle file visibility, show the User Library, force empty the trash, or restart the Finder/Dock/Menubar easily and conveniently.

https://www.reddit.com/r/Ubuntu/comments/43l40j/vlc_vs_mpv_which_one_is_your_choice_and_why/
mpv because it starts instantly and has very little gui in the way.

https://computers.tutsplus.com/tutorials/quick-tip-how-to-stop-your-mac-from-sleeping-using-the-command-line--mac-50905
The caffeinate command is used to prevent a Mac from going to sleep. The simplest way to use this command is to run the following command in the terminal.
  • -d — Prevent the display from sleeping.
  • -i — Prevent the system from idle sleeping.
  • -s — Prevent the system from sleeping. This is valid only when system is running on AC power.
  • -u — Declare that a user is active. If the display is off, this option turns the display on and prevents the display from going into idle sleep.
  • -t — Specifies the timeout value in seconds for which the command is valid.
https://www.spectacleapp.com/
Move and resize windows with ease
Window control with simple and customizable keyboard shortcuts

https://www.iamdeveloper.com/blog/2018-01-12-my-mac-setup/
  • Fish shell, a better shell experience. Run brew cask install fish from the command line to install it.
  • Fisherman, for themes and other utilities for the fish shell. Run curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher from the command line to install it.

Or wake up ready to write down the Next Great Idea, and get blinded by your computer screen?
During the day, computer screens look good—they're designed to look like the sun. But, at 9PM, 10PM, or 3AM, you probably shouldn't be looking at the sun.

  • f.lux, so you can be nice to your 👀 in the evening. Run brew cask install flux from the command line to install it.
https://changelog.com/posts/keep-your-mac-application-settings-and-dotfiles-in-sync-with-mackup
If all you want to do is keep your dotfiles and app settings in sync between machines (OS X machines, of course), then Laurent Raufaste’s Mackup might just be the perfect thing for you.
Basically it symlinks the supported applications to copied versions of your dotfiles and app settings to ~/Dropbox/Mackup. For example, once you’ve ran mackup backup your .gitconfig file will live at ~/Dropbox/Mackup/.gitconfig and ~/.gitconfig will be symlinked to it. That way all your precious dotfiles and app settings are synced to Dropbox. When it comes time to get another machine (presumably your next machine) setup, it’s as easy as installing Mackup, and running mackup restore.




Labels

Review (572) System Design (334) System Design - Review (198) Java (189) Coding (75) Interview-System Design (65) Interview (63) Book Notes (59) Coding - Review (59) to-do (45) Linux (43) Knowledge (39) Interview-Java (35) Knowledge - Review (32) Database (31) Design Patterns (31) Big Data (29) Product Architecture (28) MultiThread (27) Soft Skills (27) Concurrency (26) Cracking Code Interview (26) Miscs (25) Distributed (24) OOD Design (24) Google (23) Career (22) Interview - Review (21) Java - Code (21) Operating System (21) Interview Q&A (20) System Design - Practice (20) Tips (19) Algorithm (17) Company - Facebook (17) Security (17) How to Ace Interview (16) Brain Teaser (14) Linux - Shell (14) Redis (14) Testing (14) Tools (14) Code Quality (13) Search (13) Spark (13) Spring (13) Company - LinkedIn (12) How to (12) Interview-Database (12) Interview-Operating System (12) Solr (12) Architecture Principles (11) Resource (10) Amazon (9) Cache (9) Git (9) Interview - MultiThread (9) Scalability (9) Trouble Shooting (9) Web Dev (9) Architecture Model (8) Better Programmer (8) Cassandra (8) Company - Uber (8) Java67 (8) Math (8) OO Design principles (8) SOLID (8) Design (7) Interview Corner (7) JVM (7) Java Basics (7) Kafka (7) Mac (7) Machine Learning (7) NoSQL (7) C++ (6) Chrome (6) File System (6) Highscalability (6) How to Better (6) Network (6) Restful (6) CareerCup (5) Code Review (5) Hash (5) How to Interview (5) JDK Source Code (5) JavaScript (5) Leetcode (5) Must Known (5) Python (5)

Popular Posts