Skip to content

Instantly share code, notes, and snippets.

View soomtong's full-sized avatar
πŸ˜‡

YoungTaek soomtong

πŸ˜‡
View GitHub Profile
@soomtong
soomtong / fc660-karabiner.json
Last active August 30, 2024 12:30
Leopold FC 660 default (switch 2 on) macOS setup for macbook (touchbar)
{
"title": "FC660 like MacBook Pro",
"rules": [
{
"description": "Esc Modifiers to Backtick",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
{
"title": "ν•œ/영 μ „ν™˜ with Caps Lock for Ext keyboard",
"rules": [
{
"description": "Post CapsLock to F16 (press alone) or Control (press with others)",
"manipulators": [
{
"type": "basic",
"parameters": {
"basic.to_if_alone_timeout_milliseconds": 250,
@soomtong
soomtong / index.js
Created June 21, 2019 01:32 — forked from junosuarez/index.js
async cli app boilerplate
#!/usr/bin/env node
if (process.mainModule === module) setImmediate(() => main(process.argv).catch(e => console.log(e.stack) && process.exit(1)))
async function main(argv) {
console.log(argv.slice(2))
}
@soomtong
soomtong / webstorm.keymap.xml
Last active June 9, 2019 02:28
Webstorm custom keymap
<keymap version="1" name="MacOS Soomtong" parent="Mac OS X">
<action id="$Copy">
<keyboard-shortcut first-keystroke="meta c" />
<keyboard-shortcut first-keystroke="ctrl c" />
</action>
<action id="$Paste">
<keyboard-shortcut first-keystroke="meta v" />
<keyboard-shortcut first-keystroke="ctrl v" />
</action>
<action id="$Redo">
@soomtong
soomtong / dot.ideavimrc
Last active August 18, 2025 00:27
Jetbrains ideavim plugin vimrc
" ref: https://www.jetbrains.com/help/idea/using-product-as-the-vim-editor.html#ide_actions
"noremap j gj
"noremap k gk
" inoremap jk <ESC>
" map space as leader key
let mapleader=" "
nnoremap <SPACE> <Nop>
@soomtong
soomtong / dot.vim8.vimrc
Last active March 15, 2020 06:24
vim settings
" Plugin install
call plug#begin('~/.vim/plugged')
Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'
Plug 'joshdick/onedark.vim'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/nerdtree'
Plug 'editorconfig/editorconfig-vim'
Plug '907th/vim-auto-save'
Plug 'airblade/vim-gitgutter'
@soomtong
soomtong / korean_marker.rb
Created February 16, 2019 11:41 — forked from elegantcoder/korean_marker.rb
ν•œκΈ€ 은/λŠ”, 이/κ°€ (Powered by ActiveSupport::Multibyte::Chars)
# require 'active_support/all'
def korean_topic_marker(str)
k = str[-1] # last one char
return 'λŠ”' if k.mb_chars.decompose.size < 3 # 쒅성이 μ—†λŠ” 경우
return '은'
end
def korean_subject_marker(str)
k = str[-1] # last one char
@soomtong
soomtong / dot.neo.init.vim
Last active October 15, 2023 10:29
simple neovim setup
" Plugin install
call plug#begin('~/.local/share/nvim/plugged')
" File Tree:
Plug 'kyazdani42/nvim-web-devicons' " for file icons
Plug 'kyazdani42/nvim-tree.lua'
" Terminal:
Plug 'akinsho/toggleterm.nvim', {'tag' : 'v2.*'}
" Search:
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' " ctrl+x k/f/l in insert mode
@soomtong
soomtong / mac-keycodes
Created February 14, 2019 12:27 — forked from eegrok/mac-keycodes
Mac virtual keycodes
from: http://www.meandmark.com/keycodes.html
Virtual Keycodes for the Mac QWERTY Layout
Keycodes are in hexadecimal. A blank entry means either there is no key assigned to that keycode or I was unable to find the assigned key.
Keycode Key
0x00 A
0x01 S
0x02 D
0x03 F
@soomtong
soomtong / uninstall.sh
Created December 20, 2018 02:46
Uninstall TimeMachineEditor Application
β”‚ File: uninstall.sh
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 β”‚ #! /bin/sh
2 β”‚
3 β”‚ if [ "$UID" -ne 0 ];then
4 β”‚ echo "This script must be run as root."
5 β”‚ exit 1
6 β”‚ fi
7 β”‚
8 β”‚ killall TimeMachineEditor > /dev/null 2>&1