This file contains 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
#alias rm="rm -i" | |
#function rm={ rm $@ -i; } | |
function rm { | |
for f in "$@";do | |
if [[ "$f" =~ ^- ]];then | |
continue | |
fi | |
if [ "$f" = "$HOME" ] || [ "$f" = "$HOME/" ];then | |
echo -n 'Are you sure to remove your HOME? ' |
This file contains 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
<item> | |
<name>Mouse Keys (right click to P)</name> | |
<appendix>CONTROL_L+COMMAND_L+Y/U/I/O to Left/Down/Up/Right</appendix> | |
<appendix>CONTROL_L+COMMAND_L+N/]/P to left/middle/right click</appendix> | |
<appendix>CONTROL_L+COMMAND_L+M/. to mouse wheel down/up</appendix> | |
<identifier>private.my_mousekeys_arrow_2</identifier> | |
<autogen>--KeyToKey-- KeyCode::Y, ModifierFlag::CONTROL_L |ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::VK_MOUSEKEY_LEFT</autogen> | |
<autogen>--KeyToKey-- KeyCode::U, ModifierFlag::CONTROL_L |ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::VK_MOUSEKEY_DOWN</autogen> | |
<autogen>--KeyToKey-- KeyCode::I, ModifierFlag::CONTROL_L |ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::VK_MOUSEKEY_UP</autogen> | |
<autogen>--KeyToKey-- KeyCode::O, ModifierFlag::CONTROL_L |ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::VK_MOUSEKEY_RIGHT</autogen> |
This file contains 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
<item> | |
<name>VI mode with CONTROL_L+COMMAND_L</name> | |
<appendix>CONTROL_L+COMMAND_L+H/J/K/L to cursor Left/Down/Up/Right</appendix> | |
<identifier>private.my_cursor</identifier> | |
<autogen>--KeyToKey-- KeyCode::H, ModifierFlag::CONTROL_L|ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::CURSOR_LEFT</autogen> | |
<autogen>--KeyToKey-- KeyCode::J, ModifierFlag::CONTROL_L|ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::CURSOR_DOWN</autogen> | |
<autogen>--KeyToKey-- KeyCode::K, ModifierFlag::CONTROL_L|ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::CURSOR_UP</autogen> | |
<autogen>--KeyToKey-- KeyCode::L, ModifierFlag::CONTROL_L|ModifierFlag::COMMAND_L|ModifierFlag::NONE, KeyCode::CURSOR_RIGHT</autogen> | |
</item> |
This file contains 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
<item> | |
<name>Window Move</name> | |
<appendix>COMMAND_L+SHIFT_L+Y/U/I/O to OPTION_L+SHIFT_L+Y/U/I/O</appendix> | |
<identifier>private.my_windowmove</identifier> | |
<autogen>--KeyToKey-- KeyCode::Y, ModifierFlag::COMMAND_L|ModifierFlag::SHIFT_L|ModifierFlag::NONE, KeyCode::Y, ModifierFlag::OPTION_L|ModifierFlag::SHIFT_L</autogen> | |
<autogen>--KeyToKey-- KeyCode::U, ModifierFlag::COMMAND_L|ModifierFlag::SHIFT_L|ModifierFlag::NONE, KeyCode::U, ModifierFlag::OPTION_L|ModifierFlag::SHIFT_L</autogen> | |
<autogen>--KeyToKey-- KeyCode::I, ModifierFlag::COMMAND_L|ModifierFlag::SHIFT_L|ModifierFlag::NONE, KeyCode::I, ModifierFlag::OPTION_L|ModifierFlag::SHIFT_L</autogen> | |
<autogen>--KeyToKey-- KeyCode::O, ModifierFlag::COMMAND_L|ModifierFlag::SHIFT_L|ModifierFlag::NONE, KeyCode::O, ModifierFlag::OPTION_L|ModifierFlag::SHIFT_L</autogen> | |
</item> |
This file contains 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
diff --git a/sass/partials/_syntax.scss b/sass/partials/_syntax.scss | |
index 5465286..78cea00 100644 | |
--- a/sass/partials/_syntax.scss | |
+++ b/sass/partials/_syntax.scss | |
@@ -1,6 +1,6 @@ | |
.highlight, html .gist .gist-file .gist-syntax .gist-highlight { | |
table td.code { width: 100%; } | |
- border: 1px solid $pre-border !important; | |
+ border: 0px solid $pre-border !important; | |
} |
This file contains 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 | |
# evernote.sh | |
# send note to Evernote by email | |
# Constant values | |
TAGMARK="#" | |
NOTEBOOKMARK="@" | |
# Default values | |
def_attach=false |
This file contains 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
<item> | |
<name>Command + (f, b, d, y, Ctrl-y, Ctrl-h, <, > c, u, ., _, ) to ESC + * </name> | |
<identifier>private.iterm2.escape_sequence</identifier> | |
<only>TERMINAL</only> | |
<autogen> | |
__KeyToKey__ KeyCode::F, | |
MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND|ModifierFlag::NONE, | |
KeyCode::ESCAPE, KeyCode::F | |
</autogen> | |
<autogen> |
This file contains 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
# grep | |
"\C-g": "" | |
# grep -r "" ./ | |
"\C-g\C-r": "grep -r ./\eb\C-f \"\"\C-b" | |
"\C-gr": "grep -r ./\eb\C-f \"\"\C-b" | |
"\er": "grep -r ./\eb\C-f \"\"\C-b" | |
# grep "" * | |
"\C-g\C-g": "grep *\C-b\C-b \"\"\C-b" | |
"\C-gg": "grep *\C-b\C-b \"\"\C-b" | |
"\eg": "grep *\C-b\C-b \"\"\C-b" |
This file contains 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
mod alt += CapsLock | |
mod alt += E0CapsLock | |
key *CapsLock = *LAlt | |
key *E0CapsLock = *LAlt | |
mod alt -= LAlt | |
mod alt -= RAlt | |
mod control += LAlt | |
mod control += RAlt | |
key *LAlt = *LControl | |
key *RAlt = *LControl |
This file contains 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
<item> | |
<name>Swap Ctrl-Cmd</name> | |
<identifier>private.ctrl_cmd</identifier> | |
<autogen> __KeyToKey__ KeyCode::COMMAND_L, KeyCode::CONTROL_L </autogen> | |
<autogen> __KeyToKey__ KeyCode::COMMAND_R, KeyCode::CONTROL_R </autogen> | |
<autogen> __KeyToKey__ KeyCode::CONTROL_L, KeyCode::COMMAND_L </autogen> | |
<!--<autogen> __KeyToKey__ KeyCode::CONTROL_R, KeyCode::COMMAND_R </autogen>--> | |
</item> |