Skip to content

Instantly share code, notes, and snippets.

View chitacan's full-sized avatar

Kyungyeol Kim (Bret) chitacan

View GitHub Profile
@chitacan
chitacan / some.sh
Created October 26, 2012 04:54 — forked from tj/some.sh
sh: change terminal tab name on cd
function tabname {
printf "\e]1;$1\a"
}
if [ x`type -t cd` == "xfunction" ]; then
# previously wrapped cd
eval $(type cd | grep -v 'cd is a function' | sed 's/^cd/original_cd/' | sed 's/^}/;}/' )
else
# builtin
eval "original_cd() { builtin cd \$*; }"
@chitacan
chitacan / gist:3974528
Created October 29, 2012 16:11
mou-theme: tomorrow+_chitcan_flavored
editor
foreground: cccccc
background: 2d2d2d
caret: cc99cc
editor-selection
foreground: 515151
background: a2a2a2
H1
@chitacan
chitacan / gist:4039992
Created November 8, 2012 16:46
markdown:little cheat sheet for Eclipse IDE.

Eclipse 개발환경 다루기

최종 업데이트 : 2012년 11월 6일

cheat sheet for Eclipse IDE.

이클립스 공통 환경

Perspective

@chitacan
chitacan / gist:4143513
Last active October 13, 2015 05:07
json:keymap for sublime text
[
{ "keys": ["f5"],"command": "insert_date", "args": {"format": "%Y-%m-%d %H:%M:%S"} },
{ "keys": ["ctrl+j"], "command": "join_lines" },
{
"keys": ["super+alt+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
@chitacan
chitacan / gist:4143515
Created November 25, 2012 13:33
json:settings for sublime text
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"draw_white_space": "all",
"font_face": "DejaVu Sans Mono",
"font_size": 15.0,
"highlight_line": true,
"ignored_packages":
[
],
"rulers":
@chitacan
chitacan / Twiight.tmTheme
Last active October 13, 2015 05:07
sublime text 2 twilight color scheme. chitacan flavored.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Michael Sheets</string>
<key>name</key>
<string>Twilight</string>
<key>settings</key>
<array>
@chitacan
chitacan / sticker.sh
Last active June 24, 2022 07:57
Small shell script to find process id via android shell and attach "strace" to it.
#!/usr/bin/env bash
version="0.0.1"
TARGET_PROCESS=$1
if [ ! $TARGET_PROCESS ]; then
echo
echo "Usage: sticker [process name]"
echo
@chitacan
chitacan / select-us-keyboard.applescript
Last active December 11, 2015 08:09
Simple apple script for select us keyboard layout. This can be integrated with sublime text.
tell application "System Events" to tell process "SystemUIServer"
tell (1st menu bar item of menu bar 1 whose description is "text input") to {click, click (menu 1's menu item "U.S.")}
end tell
end run
@chitacan
chitacan / wspark.sh
Last active December 11, 2015 09:28
get today's temperature in every 3 hour and feed it to spark.
curl --silent http://www.kma.go.kr/wid/queryDFSRSS.jsp\?zone\=1162060500 | grep "tmn" | sed -e 's,.*<tmn>\([^<]*\)</tmn>.*,\1,g' -e 's,-999.0,,' | tr '\n' ' ' | spark
@chitacan
chitacan / debug-node-with-gdb.md
Last active December 11, 2015 17:29
octoberskyjs debug node with gdb 발표자료.

Debug Node with GDB

최종 업데이트 : 2013-10-21 20:15:46

첫 번째 예제. 디버깅은 어떻게 할 수 있을까?

간단한 배경

  • 분명 노드 커미터 애들도 이런식으로 외부 라이브러리를 만들어 쓸꺼다. 그런데 디버깅을 하는 방법이 콘솔출력 뿐이라고?? 아닐것 같다.
  • 분명 자신들이 짠 라이브러리가 노드에서 어떻게 돌아기는지 확인하는 방법이 있을 것이다.