Skip to content

Instantly share code, notes, and snippets.

View galch's full-sized avatar
🎯
Focusing

Steve Han galch

🎯
Focusing
View GitHub Profile
@galch
galch / .vimrc
Created January 19, 2017 06:52
Vimrc
set number " line 표시를 해줍니다.
set ai " auto indent
set si " smart indent
set cindent " c style indent
set shiftwidth=4 " shift를 4칸으로 ( >, >>, <, << 등의 명령어)
set tabstop=4 " tab을 4칸으로
"set expandtab " tab 대신 띄어쓰기로
set ignorecase " 검색시 대소문자 구별하지않음
set hlsearch " 검색시 하이라이트(색상 강조)
set background=dark " 검정배경을 사용할 때, (이 색상에 맞춰 문법 하이라이트 색상이 달라집니다.)
@galch
galch / ssh key saving
Created July 13, 2016 09:22
linux/ubuntu ssh key saving
ssh-keygen
ssh-copy-id -i root@ip_address
@galch
galch / walker.go
Created July 10, 2016 16:34
A Tour of Go - [Exercise: Equivalent Binary Trees](https://tour.golang.org/concurrency/7) & [연습: 동등한 이진 트리](https://go-tour-kr.appspot.com/#70)
package main
import "code.google.com/p/go-tour/tree"
import "fmt"
type Tree struct {
Left *Tree
Value int
Right *Tree
}
@galch
galch / rot13.go
Last active July 9, 2016 17:32
A Tour of Go - [Exercise : Rot13 Reader](http://tour.golang.org/#61) & [연습: Rot13 Reader](https://go-tour-kr.appspot.com/#61)
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
r io.Reader
@galch
galch / gist:625a7c3a30c17d7f742c178f35b56b8e
Created May 16, 2016 06:06
raspberry pi setting localtime in command line
sudo cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime
@galch
galch / alljoyn_pi
Last active May 16, 2016 03:44 — forked from germanviscuso/alljoyn_pi
Compile AllJoyn on the Raspberry Pi
INDEX
-----
- BUILD IT YOURSELF
- BUILD THE AUDIO SERVICE
- BUILDING FOR ANDROID
- INSTALL WITHOUT BUILDING
BUILD IT YOURSELF
-----------------
@galch
galch / onchange.sh
Last active April 9, 2016 14:35 — forked from senko/onchange.sh
Watch current directory and execute a command if anything in it changes
#!/bin/bash
#
# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
#
# Written by: Senko Rasic <[email protected]>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of
set nocompatible
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'L9'
Plugin 'git://git.wincent.com/command-t.git'
http://www.ciencia-explicada.com/2014/12/ros-how-to-develop-catkin-packages-from-an-ide.html