Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

Saturday, July 27, 2019

Tweak Mac Settings



https://mac-how-to.gadgethacks.com/how-to/tweak-system-settings-activate-hidden-features-yosemite-with-tinkertool-0158416/


http://osxdaily.com/2014/01/28/enable-tap-to-click-mac-trackpad/
  1. Go to the  Apple menu and open “System Preferences”
  2. Choose “Trackpad” and go to the “Point & Click” tab
  3. Check the box next to ‘Tap to click’
https://www.popsci.com/hidden-macos-settings/
6. Flip the scroll direction
By default, if you move two fingers down the trackpad of an Apple laptop, your view travels down the open document or website. However, you can flip these directions so that moving your fingers down makes the view move up. Open System Preferences and go to the Trackpad menu. Under the Scroll & Zoom heading, tick the box marked Scroll direction: Natural.

24. Prevent others from installing apps
Even if you share a computer with others, you might not want them installing software on it. With the App Store open, go to the bar at the top of the screen and choose App Store followed by Preferences. Under the Password Settings heading, set the two drop-down menus to Always Require and Require Password, respectively. Now nobody will be able to install new apps without entering your password.

https://www.macobserver.com/tmo/article/os-x-settings-to-tweak-for-newbies
4) Turn off iCloud Drive. If your new user has an iCloud account, you might consider heading over to System Preferences > iCloud and toggling off the “iCloud Drive” option if it’s unnecessary

https://www.cnet.com/how-to/things-to-tweak-when-setting-up-a-new-macbook/
Show battery percentage

System Preferences > Energy Saver and check the box for Show battery status in menu bar

Set up Siri

Customize the Touch Bar

If you have a new MacBook Pro ($1,500 at Best Buy) model with the Touch Bar, then head to System Preferences > Keyboard and click the Customize Touch Bar button and then simply drag the buttons you want to show up on the default view of the Touch Bar to the Touch Bar below the display.

Choose default browser

go to System Preferences > General and make a selection other than Safari for Default web browser

Set scrolling direction

System Preferences > Trackpad and click on the Scroll & Zoomtab. Next, uncheck the box for Scroll direction: Natural


Add and remove items from Dock

To remove an app from the Dock, simple click on its icon in the Dock and drag it to the desktop until you see Remove appear above the icon and then let go. Poof, it's gone! To add an app to the Dock, open it and then right-click on its icon in the Dock and mouse over the Option line in the menu and click Keep in Dock


Move the Dock
To move the Dock, go to System Preferences > Dock and choose either Left or Right for Position on Screen. While you're there, you can also drag a slider to adjust the size of the Dock. You can also make it disappear from view when you aren't using it by checking the box for Automatically hide and show the Dock

Stop auto-play videos for safari

Open Safari's Preferences and click on the Websites tab. Choose Auto-Play from the left panel and for When visiting other websites at the bottom of the window, select Never Auto-Play or Stop Media with Sound (if you are okay with muted videos playing) and sit back and rejoice in the silence


Enable Safari favicons

To enable favicons for Safari, open Preferences and click the Tabs tab at the top. Next, check the box for Show website icons in tabs


Head to System Preferences > Displays and click the Night Shift tab


Try out dark mode

 MacOS Mojave also delivered an honest-to-goodness dark mode for Macs. Go to System Preferences > General and you'll see the Light and Dark options at the top for Appearance

Set app download tolerance level

If you want to download apps from the web at large and not just from the Mac App Store, you'll need to tell MacOS to loosen up on the reins a bit. Go to System Preferences > Security & Privacy, click the General tab and then click lock in the lower-left corner and enter your password to make changes. Next, for Allow apps downloaded from choose App Store and identified developers



Saturday, July 6, 2019

Common Keyboard Shortcuts on Mac



Disable not needed shortcuts
System Preferences -> Keyboard -> Shortcuts tab

Turn dock hiding on/off
turn off all shortcuts defined at mission controls
turn off all shortcuts defined at keyboard

https://www.howtogeek.com/183636/how-the-command-and-option-keys-work-on-a-mac/
The Command key doesn’t do anything on its own. It’s a modifier key you can press to issue keyboard shortcuts to applications. For example, while you press Ctrl+C, Ctrl+X, and Ctrl+V to copy, cut, and paste on Windows, you press Command+C, Command+X, and Command+V to do the same on a Mac.
In summary, on a Mac, you’ll probably be pressing the Command key to issue keyboard shortcuts. The Control (Ctrl) key is also present, but it isn’t used for as many things.
The Option key functions similarly to the AltGr key on many PC keyboards, which explains why it also has “Alt” printed on it. Holding it and pressing another key allows you to type a special character that doesn’t normally appear on the keyboard. For example, pressing Option+4 with the US keyboard layout will produce ¢, the cent sign which normally doesn’t appear on your keyboard. Like other modifier keys, it’s also used as part of some keyboard shortcuts.
Aside from ⌘ representing Command and ⌥  representing Option, ^ represents Control while ⇧ represents the Shift keys
https://apple.stackexchange.com/questions/137361/shortcut-key-for-fullscreen-mode
Most applications that I use on a daily basis (such as Google Chrome, Terminal, Mail, and Safari) use ^++F (Control+Cmd+F) to toggle fullscreen mode.
Unfortunately, not all developers use this shortcut in their applications. iTerm, for example, uses +Enter to toggle fullscreen mode. If the application you refer to does not use either of these shortcuts, you should look for the fullscreen option in the View menu or by searching for "fullscreen" in the Help menu.


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