Skip to content

Instantly share code, notes, and snippets.

View teddy-ma's full-sized avatar

Ma Lucheng teddy-ma

View GitHub Profile
@teddy-ma
teddy-ma / unload-keyboard
Created November 9, 2015 22:46 — forked from JohnMurray/unload-keyboard
Disable Mac OS X Keyboard (built-in only)
#!/bin/bash
# Unload the keyboard so I can use my external keyboard
# and not worry about accidentally pressing buttons on
# the built-in. This may not be a problem for you but, you
# should see my desk sometimes (Oh no!!) ;-)
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/