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
| { | |
| "name": "Keychron Q4", | |
| "vendorProductId": 875823424, | |
| "macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], | |
| "layers": [ | |
| [ | |
| "KC_ESC", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", |
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
| { | |
| "title": "Esc & Tilde - revised by @dongminkim", | |
| "rules": [ | |
| { | |
| "description": "Esc as Tilde", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { | |
| "key_code": "escape", |
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
| #42362B,#544538,#8a7030,#ffffff,#544538,#FFFfff,#30D07A,#DB6668 |
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
| !!============================================================================ | |
| !! .Xdefault | |
| !! --------------------------------------------------------------------------- | |
| !! @AUTHOR 김동민 <[email protected]> | |
| !! @DESC default X environment settings | |
| !! @SINCE 1997 | |
| !!============================================================================ | |
| !-- Color Settings |
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/sh | |
| pmset -g log | grep ' \(Sleep\|Wake\|DarkWake\) ' |
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
| # Generate PRIVATE KEY and PUBLIC CERTIFICATE: | |
| # Samples use 'cocoa' as a passphrase. | |
| openssl req -x509 -out public_cert.pem -outform pem -new -newkey rsa:2048 -keyout private_key.pem -days 5000 | |
| # Build PRIVATE PKCS #12: | |
| openssl pkcs12 -export -out private.p12 -inkey private_key.pem -in public_cert.pem |
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
| ; Sequential destructuring | |
| (def v [302 "asha" 98.7 [311 501]]) | |
| (first v) | |
| (second v) | |
| (last v) | |
| (nth v 2) | |
| (v 2) | |
| (.get v 2) | |
| (let [[a _ _ [b c]] v] | |
| (format "a, b, c = %d, %d, %d" a b c)) |
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
| #cp ~/Library/Preferences/com.apple.symbolichotkeys.plist /tmp/old.plist | |
| defaults export com.apple.symbolichotkeys /tmp/old.plist | |
| plutil -convert json /tmp/old.plist | |
| # - Select the previous input source: .AppleSymbolicHotKeys."60" | |
| # - Select next source in Input menu: .AppleSymbolicHotKeys."61" | |
| # - 131072: Shift+Space | |
| # - 655360: Shift+Option+Space | |
| cat /tmp/old.plist | jq '.AppleSymbolicHotKeys."61".value.parameters=[32,49,131072] | .AppleSymbolicHotKeys."60".value.parameters=[32,49,655360]' > /tmp/new.plist |
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
| <html> | |
| <head> | |
| <title>Color Converter</title> | |
| <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> | |
| <style> | |
| div {margin:10px;} | |
| </style> | |
| </head> | |
| <body> |
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
| " :help clear-undo (Vim 7.3+) | |
| function! ClearUndo() | |
| let choice = confirm("Clear undo information?", "&Yes\n&No", 2) | |
| if choice == 1 | |
| let old_undolevels = &undolevels | |
| set undolevels=-1 | |
| exe "normal a \<Bs>\<Esc>" | |
| let &undolevels = old_undolevels | |
| echo "done." | |
| endif |