Tech in T: depth + breadth‎ > ‎OS‎ > ‎


Command shift 5    => to record screen on mac!

iterm restore sesssion after restart/crash

To give title to a tab:
⌘ i        - then type name

Chrome Full screen          ⇧ ⌘ F

$ open YOU_FILE

$ brew install python
$ brew install tmux
$ sudo scutil --set HostName 'MBP'  # to permanently set comouter name such that it desn't change in terminal due to DHCP reverse name lookup
$ rm -rf ~/.Trash/* # quickly empty trash

Remove programs
  • /Library/, /Library/Preferences/, and the /Library/Application Support/ folders.
  • program’s name or developer’s name in the ~/Library/, ~/Library/Preferences/, and the ~/Library/Application Support/ folders.
mamp : all in one php mysql for mac

Quicktime player play fast:
hold down the Option key before pressing the fast forward or rewind button. Playback will speed up in 0.1x increments,

$ open -a TextEdit file.txt                     $ open -e file.txt

⌘ (Command key) - On some Apple keyboards, this key also has an Apple (apple logo) logo
^ (Control key)
⌥ (Option key) - "Alt" may also appear on this key
⇧ (Shift key)
⇪ (Caps Lock) - Toggles Caps Lock on or off
Fn (Function key)
⎋ the ESC Key symbol
⏎ the Return symbol
⌫ the Delete / Backspace symbol
tab key
← → ↑ ↓

Print screen: 3    4(specific AREa) 
home/end:    Right/Left arrow

Page Up/Down
Fn+Arrow Up/Down     
in browsers: Space/Shift+Space
Delete Entire word
  • C copies the files or documents, note they won’t be ‘cut’ yet
  • ⌥V pastes the documents into the new location, cutting it from the prior locating and moving it to the new location
Hide Window
⌘ H
Show Desktop
⌘ F3
⇧ F11 and F12

Ctrl+Arrow Keys: Navigate among windows

use kdiff3 as mergetool for git in mac: download kdiff3 and move to application folder
$ vim ~/.gitconfig
[difftool "kdiff3"]
    path = /Applications/
    trustExitCode = false
    prompt = false
    tool = kdiff3
[mergetool "kdiff3"]
    path = /Applications/
    trustExitCode = false
    keepBackup = false
    tool = kdiff3

MAC Boot Keyword Combinations after hearing chime on startup:
        network select
⌥PR     reset PRAM memory
⌥            Boot select: Startup Manager, where you can select a Mac OS X volume to start from
⇧            Start up in Safe Boot mode and temporarily disable login items.

T              Start up in FireWire Target Disk mode.
⌘V           Start up in Verbose mode.
⌘             Start up in Single-User mode.

Subpages (3): Atom Sublime Xcode