This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ -f ~/Library/KeyBindings/DefaultkeyBinding.dict ]; then | |
| echo "~/Library/KeyBindings/DefaultkeyBinding.dict already exists" | |
| exit -1 | |
| fi | |
| mkdir -p ~/Library/KeyBindings | |
| cat << EOF > ~/Library/KeyBindings/DefaultkeyBinding.dict | |
| { | |
| "₩" = ("insertText:", "\`"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- put this to IDEA keymaps config folder. For v13 it is <userdir>\.IntelliJIdea13\config\keymaps\ --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <keymap version="1" name="Mac OS X 10.5+ Windows Ctrl" parent="Mac OS X 10.5+"> | |
| <action id="$Copy"> | |
| <keyboard-shortcut first-keystroke="meta C" /> | |
| <keyboard-shortcut first-keystroke="meta INSERT" /> | |
| <keyboard-shortcut first-keystroke="control C" /> | |
| <keyboard-shortcut first-keystroke="control INSERT" /> | |
| </action> | |
| <action id="$Cut"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'); | |
| var url = require('url'); | |
| var proxy = http.createServer(function(req, res) { | |
| var request = url.parse(req.url); | |
| options = { | |
| host: request.hostname, | |
| port: request.port || 80, | |
| path: request.path, | |
| method: req.method, |