Skip to content

Instantly share code, notes, and snippets.

@japboy
Created October 4, 2012 07:53
Show Gist options
  • Save japboy/3832058 to your computer and use it in GitHub Desktop.
Save japboy/3832058 to your computer and use it in GitHub Desktop.
Notes of some tips for OS X
#!/bin/sh
# Disable the shadow from the screenshot
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
# Disable built-in keyboard
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/
# Hidden Wi-Fi utility
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport

Key symbols

  • ⌘ - ⌘ - Command
  • ⌥ - ⌥ - Option
  • ⇧ - ⇧ - Shift
  • ⎋ - ⎋ - Escape
  • ⇥ - ⇥ - Tab
  • ⏎ - ⏎ - Return
  • ⌫ - ⌫ - Delete
  • ⌽ - ⌽ - Power

Shortcut keys

Make an alias

  • Drag with ⌘ + ⌥

Take a screenshot

  • ⌘ + ⇧ + 3 - Entire screen
  • ⌘ + ⇧ + 4 - Specified area

Return in a cell in MS Excel

  • ⌘ + ⌥ + ⏎

System paths

Apache 2

Check if configuration syntax file is correct or not:

sudo /usr/sbin/apachectl -t

Launch Apache 2:

sudo /usr/sbin/httpd [-k start|restart|graceful|graceful-stop|stop]

Full path to httpd.conf

/private/etc/apache2/httpd.conf

PHP 5

Full path to php

/usr/bin/php

Full path to php.ini

/private/etc/php.ini.default

Python 2

Full path to python and python-config

/usr/bin/python
/usr/bin/python-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment