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
| + create `/Users/somma/Library/KeyBindings/DefaultKeyBinding.dict` file with below contents, and reboot :D | |
| { | |
| /* Remap Home / End keys to be correct */ | |
| "\UF729" = "moveToBeginningOfLine:"; /* Home */ | |
| "\UF72B" = "moveToEndOfLine:"; /* End */ | |
| "$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */ | |
| "$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */ | |
| "^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */ | |
| "^\UF72B" = "moveToEndOfDocument:"; /* Ctrl + End */ |
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
| import json | |
| from slacker import Slacker | |
| from websocket import create_connection | |
| slack = Slacker('xxxxxx') | |
| # start RTM | |
| rtm = slack.rtm.start() | |
| url = rtm.body['url'] | |
| ws = create_connection(url) |
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
| bool | |
| create_process_as_login_user( | |
| _In_ const wchar_t* cmdline | |
| ) | |
| { | |
| _ASSERTE(NULL != cmdline); | |
| if (NULL == cmdline) return false; | |
| DWORD session_id = WTSGetActiveConsoleSessionId(); | |
| DWORD explorer_pid = 0xFFFFFFFF; |
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
| # set prefix | |
| set -g prefix ` | |
| unbind C-b | |
| bind ` send-prefix | |
| # split pane | |
| bind | split-window -h | |
| bind - split-window -v | |
| # move to pane |
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
| /** | |
| * @file AntiRanSomware user mode engine | |
| * @brief | |
| * @ref | |
| * @author Yonhgwhan, Roh (fixbrain@gmail.com) | |
| * @date 2017/01/21 created. | |
| * @copyright All rights reserved by Yonghwan, Roh. | |
| **/ | |
| #pragma once |
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
| ; | |
| ; TinyPE.asm | |
| ; | |
| BITS 32 | |
| ; IMAGE_NT_HEADERS 의 시작 위치가 4 이어야 하므로 섹션/파일 얼라인먼트를 4 로. | |
| ; 공교롭게도 e_lfanew = 4 로 동일하게 맞아떨어짐 | |
| ; | |
| SectionAlignment equ 0x00000004 |
OlderNewer