해외 장기 체류자의 의료보험 감면

Posted at 2012/04/13 10:30 // in Tips // by Daniel
해외에 몇 개월 체류하는 경우 의료보험료를 감면받을 수 있습니다.

건강보험 공단의 글을 보면
규정은 다음과 같고
보험료 경감/면제

국외 근무자

  • 1월 이상 국외체류자로서 국내에 피부양자가 없는 경우는 보험료 전액 면제
  • 1월 이상 국외체류자로서 국내에 피부양자가 있는 경우는 보험료를 50% 감면
  • 1월 이상 국외체류자로 인한 감면 또는 면제는 출국 월의 다음달부터 입국 월까지 적용됨

필요서류는 다음과 같습니다.
6개월 해외 어학연수 시 보험료를 내야 하나요?

해외에서 1개월 이상 체류 시 출국일의 익일로 급여가 정지되며 보험료는 면제가 됩니다. 입증서류를 첨부하여 가까운 공단 지사에 보험료 면제 신청을 하시기 바랍니다. 참고로 일시 귀국해 1개월 이상 국내에서 체류할 경우 해당기간(급여정지 해제기간) 중 1일이 속하는 월만 보험료가 부과됩니다.

*입증서류

  - 출국 전 : 출국목적입증서류(입학허가서 등)사본, 비행기표 사본

  - 출국 후 : 출입국사실증명


오래 나가시는 분 참고하세요

크리에이티브 커먼즈 라이센스
Creative Commons License

Tasklist로 svchost의 서비스 알아내기

Posted at 2012/02/06 08:33 // in Tips/Utility programs // by Daniel
작업관리자에서 보면 태스크들이 쭉 나오는데 svchost.exe 이름으로 서비스가 돌고 있고 어떤 일을 하는 서비스인지는 알 수가 없습니다.

http://www.bleepingcomputer.com/tutoria ··· ocess%2F
이 페이지에 나온 대로 특별히 프로그램을 깔지 않고도 이것이 어떤 서비스인지 알 수 있습니다.

커맨드 창에서 tasklist라는 명령어를 입력하면 현재 프로세스들이 주욱 나열됩니다.

그리고 옵션으로 /svc를 주면 서비스가 나옵니다. PID와 함께요


해당 서비스가 어떤 포트를 사용하는 지 보려면 netstat을 쓰면됩니다.
-o 옵션을 사용하면 어떤 프로그램이 쓰고 있는지 PID가 나오지요
이 PID를 가지고 아까의 tasklist에서 결과와 비교하면 됩니다.


크리에이티브 커먼즈 라이센스
Creative Commons License

2008년 구글, 마이크로소프트 연봉 (대충)

Posted at 2010/06/18 19:36 // in Tips/Utility programs // by Daniel
저번 글에 썼던 데서 다음으로 2008년 데이터가 나왔길래 업데이트해봤습니다.
비자 심사 관련 공개된 연봉을 정리한 것인데
인원이 많이 줄었고,
최고연봉자가 없어진 게 눈에 띄네요
그만큼 외국인이 들어가기 어려워졌다는 얘기...

사용자 삽입 이미지사용자 삽입 이미지

크리에이티브 커먼즈 라이센스
Creative Commons License

Putty color scheme

Posted at 2010/05/20 12:35 // in Tips // by Daniel
http://www.igvita.com/2008/04/14/custom ··· hemes%2F
(데저트 이글 컬러스킴, light테마 레지스트리 파일 제공)
 (파란색을 변경
So if you are like me, go to Category: Window > Colours and select ANSI Blue in the Select a colour to adjust to Red:74 Green:74 Blue:255. I do the same for ANSI Blue Bold toRed:140 Green:140 Blue:255.)
에서 찾은 내용 바탕으로
레지스트리 파일 올립니다.
cygwin용이라 색깔빼고 나머지는 원래 설정을 쓰셔야 할 듯.
사용자 삽입 이미지
사용자 삽입 이미지
크리에이티브 커먼즈 라이센스
Creative Commons License

근로소득세 납부여부 확인

Posted at 2010/05/02 20:12 // in Tips // by Daniel

국세청홈택스서비스(www.hometax.go.kr) > 조회서비스 > 세금신고내역조회 > 지급명세서

크리에이티브 커먼즈 라이센스
Creative Commons License

OpenCapture : 유용한 화면 캡쳐 프로그램

Posted at 2010/04/18 00:41 // in Tips/Utility programs // by Daniel

http://simples.kr/bbs/group.php?gr_id=11

 

image

가장 많이 쓰는 기능 : Ctrl+Shift+A 면 현재창 캡쳐된다.

 

캡쳐 후에 바로 편집 창이 떠서, 필요 없는 부분 지우고 필요 부분만 잘라서 복사할 수 있다.

 

image

크리에이티브 커먼즈 라이센스
Creative Commons License

bash shell 프롬프트용 변수

Posted at 2010/04/16 13:41 // in Tips // by Daniel

bash man page에서 퍼옴.

PROMPTING
       When executing interactively, bash displays the primary prompt PS1 when
       it is ready to read a command, and the secondary  prompt  PS2  when  it
       needs  more  input  to  complete  a  command.  Bash allows these prompt
       strings to be customized by inserting  a  number  of  backslash‐escaped
       special characters that are decoded as follows:
              \a     an ASCII bell character (07)
              \d     the  date  in "Weekday Month Date" format (e.g., "Tue May
                     26")
              \D{format}
                     the format is passed to strftime(3)  and  the  result  is
                     inserted  into the prompt string; an empty format results
                     in a locale‐specific time representation.  The braces are
                     required
              \e     an ASCII escape character (033)
              \h     the hostname up to the first ‘.’
              \H     the hostname
              \j     the number of jobs currently managed by the shell
              \l     the basename of the shell’s terminal device name
              \n     newline
              \r     carriage return
              \s     the  name  of  the shell, the basename of $0 (the portion
                     following the final slash)
              \t     the current time in 24‐hour HH:MM:SS format
              \T     the current time in 12‐hour HH:MM:SS format
              \@     the current time in 12‐hour am/pm format
              \A     the current time in 24‐hour HH:MM format
              \u     the username of the current user
              \v     the version of bash (e.g., 2.00)
              \V     the release of bash, version + patch level (e.g., 2.00.0)
              \w     the  current  working  directory,  with $HOME abbreviated
                     with a tilde
              \W     the basename of the current working directory, with $HOME
                     abbreviated with a tilde
              \!     the history number of this command
              \#     the command number of this command
              \$     if the effective UID is 0, a #, otherwise a $
              \nnn   the character corresponding to the octal number nnn
              \\     a backslash
              \[     begin  a sequence of non‐printing characters, which could
                     be used to embed a terminal  control  sequence  into  the
                     prompt
              \]     end a sequence of non‐printing characters

 

예를 들어

$export PS1='\s−\v\$ '
-bash−3.2$

$ export PS1='\T−\v\$ '
01:28:29−3.2$

$ export PS1='\W \@\$ '
~ 01:40 PM$

크리에이티브 커먼즈 라이센스
Creative Commons License

cygwin + puttycyg로 윈도우에서 터미널 환경 꾸미기

Posted at 2010/04/13 19:31 // in Tips // by Daniel
http://kldp.org/node/113431

cygwin으로 리눅스 비슷한 환경을 쓰려면 쓸만한 터미널이 문제입니다.

putty 를 쓰려면 ssh서버를 깔고 셋팅해야되는 단점이 있죠

puttycyg로 ssh를 통하지 않고 putty터미널을 cygwin 터미널-cygterm 으로 쓸 수 있습니다.

ssh 서버를 깔지 않아도 되고 커맨드창처럼 윈도 프로그램이 실행됩니다.

다음처럼 윈도 탐색기에서 터미널을 바로 열 수도 있죠.

사용자 삽입 이미지

  • cygwin 설치

http://www.cygwin.com/  에서 cygwin setup 실행.

본인은 미러를 추가하였음.
http://ftp.daum.net/cygwin/
http://ftp.sayclub.co.kr/pub/cygwin/

  • putty cyg 설치

http://code.google.com/p/puttycyg/

  • puttycyg 실행

image

프로토콜을 cygterm으로 선택. 커맨드 라인은 – 로 합니다.
image

  • 한글 설정

한글을 볼 수 있기 위해 putty 설정을 UTF8로 합니다.

image

image

이렇게 설정하기 전과 후 화면. 한글 보입니다.

ls에서 8비트문자 볼 수 있게 –show-control-char를 추가합니다.
평소 옵션으로 만들기 위해 ~/.bashrc 수정

image

한글 쓸 수 있게 하기 위해 ~/.inputrc 수정

# Allow 8-bit input/output
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on

이 주석을 풀어주거나 새로 써줍니다.

image

vi에서는

set encoding=cp949 termencoding=utf-8 fileencoding=cp949

해줘야 됩니다.

cp949(한글윈도우기본)인코딩을 쓰고 터미널은 UTF8을 쓰며 파일 저장은 cp949로 한다고 명시해야 평소쓰던 대로 잘 쓸 수 있음.

(수정하는 파일의 인코딩이 원래 utf8였으면 vi로 파일 열 때도 자동으로 파일 저장 옵션이 utf8로 변경됩니다. 위의 것은)


  • vim 설정

cygwin setup에서 vim 설치를 해야 합니다.

.vimrc에 저는 이렇게 했습니다.

"set encoding=cp949
" for hangul
set encoding=cp949 termencoding=utf-8 fileencoding=cp949
set fileformats=dos,unix

set backup

set backupdir=~/.vim/backup

set scrolloff=3

syntax on
set bg=dark
set ruler
set cindent
set tags=./tags,tags,../tags

set sw=4
set ts=4
set smarttab
set hlsearch
set incsearch
set autowrite
set nostartofline
set backspace=indent,eol,start
set backspace=2
set bioskey

set showmatch

au BufNewFile,BufReadPost Makefile set noexpandtab


autocmd BufReadPost *
  \ if line("'\"") > 0 && line("'\"") <= line("$") |
  \   exe "normal g`\"" |
  \ endif

set formatoptions=croql
"set textwidth=80
set laststatus=2

map <F1> K
map <F2> mk[[?^[A-Za-z_].*(<CR>V"ky`k:echo "<C-R>k"<CR>
"fold
map <F3> v%zf
"unfold
map <F4> zo

"Show prototype of the function
map <F8> [i
"Go to the declaration
map <F9> gd
"Go back
map <F10> ''
"Go to the definition
map <F11> <C-]>
"C-scope search from the files
map <S-F11> <C-\>s
"Go back from F11
map <F12> <C-t>

" for mlcscope
set csprg=/usr/bin/mlcscope

" for mouse click
"set mouse=a
set mouse=n
"set mouse=v

  • 팁 – 윈도 프로그램 실행시키기

path에 지정된 프로그램은 터미널에서 실행 가능합니다. cygwin+ssh로 했을 때는 할 수 없던 기능이죠

예를 들어 현재 경로에서 탐색기를 띄우려면

$ explorer .

을 실행하면 됩니다.

image

계산기는 calc

레지스트리 에디터는 regedit

특정 파일을 노트패드로 보고 싶으면

notepad 내파일.txt

하면 됩니다. :-)

쉽죠. 편리하고.


  • 팁 – 커맨드라인에서 파일 이름 대소문자 구분 안하기

윈도우는 파일 이름에 대소문자 구분 안하니까

.bashrc에

shopt –s nocaseglob

추가하고

.inputrc에

set completion-ignore-case on

하면 된다.


  • cscope 사용

mlcscope란 패키지가 cygwin 기본이 되어있네요

예전엔 cscope 소스로 빌드해서 썼었는데

이거 설치하고

$ mlcscope -R

하면 소스들로부터 cscope.out 파일 생성됩니다.

vi에서 사용하려면 http://wiki.kldp.org/wiki.php/VimCscopeTutorial 참고하시면서 http://cscope.sourceforge.net/cscope_maps.vim 에서 cscope_maps.vim 파일 내려받아 ~/.vim/plugin 아래에 복사해두고

.vimrc 에서

" for mlcscope
set csprg=/usr/bin/mlcscope
넣어주면 됩니다.

기존에 ctags로 사용하던 Ctrl+] Ctrl+t 가 cscope.out을 보고 동작하는 것도 보실 수 있습니다.

  • Tip: bash here


http://gleamynode.net/articles/1543/bas ··· puttycyg

PuTTYcyg를 이용한 “Bash Here” 컨텍스트 메뉴
이렇게 하면 탐색기에서 해당 폴더에서 마우스 오른클릭으로 bash창을 puttycyg로 띄울 수 있습니다.
  1. PuTTYcyg 최신 버전을 받아 C:\Cygwin\bin 디렉토리에 압축을 풀어 넣습니다.
  2. Cygwin 설치 프로그램에서 ‘chere‘ 패키지를 설치합니다.
  3. bash-here.zip을 다운로드합니다.
  4. 받은 ZIP 파일에서 bash-here.reg 파일을 풀고, 더블클릭해 시스템 레지스트리에 합칩니다.
그런데 제가 한 방법은 조금 달랐죠
C:\Cygwin\bin에 깔기가 싫어서,
전 d:\programs\puttycyg 에 풀었거든요. :-)
그래서,
  1. PuTTYcyg 최신 버전을 받아 D:\programs\puttycyg 디렉토리에 압축을 풀어 넣습니다.
  2. Cygwin 설치 프로그램에서 ‘chere‘ 패키지를 설치합니다.
  3. bash-here(2).zip을 받아서 bash-here.reg 파일을 풀고, 더블클릭해 시스템 레지스트리에 합칩니다.

사용자 삽입 이미지

  • Tip: bash 프롬프트

기본 프롬프트가 멋지지가 않아서 바꿉니다.
사용자 삽입 이미지
.bashrc에 다음과 같이 추가합니다.
TITLEBAR='\[\e]0;\w\007\]'; # Title bar(xterm이나 putty)에 현재 경로 나오도록.
#TITLEBAR='\[\e]0;\h \w\007\]'; # 사용자명과 현재 경로 나오도록.
#TITLEBAR=""
export PS1=${TITLEBAR}'\[\e[32m\]Daniel \[\e[33m\]\W\[\e[0m\] \$ '

c 라이브러리, posix man 페이지 보기

이곳을 참조하세요~

http://rommance.net/tc/tag/cygwin 참조하시면 좀 더 업데이트 된 내용들이 있을 지도.. :-)

터미널에서 한글 보기

이렇게 한글 세팅하면 ls로는 한글 파일명이 잘 나오지만 grep으로 파일을 검색할 때나 cat로 볼 때는 한글이 깨져 나오게 됩니다.
utf8을 기본 세팅으로 해서 그렇습니다.
전체적으로 cp949인코딩을 쓰면 될텐데 일단 저는 잘 하지 못했습니다. 방법 있으신 분 알려주시면 감사하겠구요.
한글 내용을 보고 싶다면 iconv패키지를 이용해서 볼 순 있습니다.
cygwin에는 piconv가 있어서 그걸 깔았습니다. 아마 libiconv2에 있었던 듯.
사용자 삽입 이미지

이걸 이용해 한글 내용을 볼 때는 리디렉션을 사용합니다.
예를 들어
$ cat 한글파일.txt  | piconv -f cp949 -t utf8
이런식으로 사용하면 됩니다.
사용자 삽입 이미지


크리에이티브 커먼즈 라이센스
Creative Commons License

엑셀 매크로 : 그림을 숨기기/복구하기

Posted at 2010/04/02 10:24 // in Tips // by Daniel

http://www.developertags.com/microsoft-excel/452263/

Sub test()
s$ = "Rectangle 1"
HideUnhide s, False
Stop
HideUnhide s, True
End Sub
Sub HideUnhide(sName As String, bVisible As Boolean)
ActiveSheet.Shapes(sName).Visible = bVisible
End Sub

이렇게 쓰면 된다

토글 하려면 이렇게 쓰면 된다. (사실 Visible은 boolean 형식이 아니라 MsoTriState로 되어있다.

ActiveSheet.Shapes("Picture 1").Visible = msoTriStateToggle

처음엔 Selection쓰려고 했는데 오류났는데 인터넷 찾아보니 no need to select 라고 하는군

Sub Button2_Click()
'
' Button2_Click Macro
    s$ = "Picture 1"
    HideUnhide s, True

End Sub
Sub Button3_Click()
    s$ = "Picture 1"
    HideUnhide s, False
End Sub

Sub HideUnhide(sName As String, bVisible As Boolean)
    ActiveSheet.Shapes(sName).Visible = bVisible
End Sub

Sub Button4_Click()
    ActiveSheet.Shapes("Picture 1").Visible = msoTriStateToggle
End Sub

 

image

크리에이티브 커먼즈 라이센스
Creative Commons License

puttycyg cygwin 터미널로 쓸 수 있음

Posted at 2010/03/23 16:09 // in Tips/Utility programs // by Daniel

http://code.google.com/p/puttycyg/

Logo

puttycyg

Use PuTTY as a local Cygwin terminal.

PuTTYcyg is a patched version of PuTTY that, in addition to telnet, rlogin, ssh, and serial connections, can also be used as a local Cygwin terminal instead of the Windows console or xterm. See README.txt for more information.

 여기 에서 추천받았습니다

cygwin 사용시 ssh서버 안깔고 로컬 터미널로 사용가능이라는 솔깃한 점이 :-)

체크해봐야지

크리에이티브 커먼즈 라이센스
Creative Commons License
1 2 3 4 5 6 7 8 ... 13