Writing Plugin

Writing Plugin 제목은 거창하게 썼지만, 플러그인이나 rc 파일 작성에 필요한 지식들을 메모해 둘 예정. Preview Window :botright pedit { file } :botright pedit Preview Window 에서 라인 출력 function! showInPreview(name, fileType, lines) let l:command = "silent! pedit! +setlocal\\ " . \ "buftype=nofile\\ nobuflisted\\ " . \ "noswapfile\\ nonumber\\ " . \ "filetype=" . a:fileType . " " . a:name exe l:command if has('nvim') let l:bufNr = bufnr(a:name) call nvim_buf_set_lines(l:bufNr, 0, -1, 0, a:lines) else call setbufline(a:name, 1, a:lines) endif endfunction stackExchange...

January 14, 2023 · nolleh

Shell

Cheatsheet - Shell 쉘 커맨드들을 자주 까먹곤 해서 자주쓰는것 위주로 생각날때마다 하나씩 등록 예정. Primitives if statement if [ 10 -gt 20 ]; then echo 'gt'; else echo 'lt'; fi; operator desc ! not true -n 문자열의 길이가 0보다 크다 -z 문자열의 길이가 0이다 = 문자열이 같다 -eq 정수가 같다 -gt 정수가 크다 -lt 정수가 작다 -d dir dir 디렉토리가 있다 -e file file 이 있다 for statement for file in *....

January 1, 2023 · nolleh

Mac 터미널에서 복수의 유저 사용하기

복수의 유저 사용하기 맥터미널에서 복수의 유저를 사용하려면 몇가지 신경써야할 부분들이 생긴다. home directory 가 분리 되어 있기 때문에 어떤 유저를 위해 설치한 데이터들은 다른 유저에서는 사용못할수도 있고 (그러는게 맞고, 그럴려고 격리한거니) 그러다보니 양쪽에서 같은 데이터를 설치해야하나 ? 혹은 서로 충돌이 난다거나 하는 불편함들이 생긴다. 대표적인 예로 brew 에서 이런 문제가 발생하는데,, 어떤 계정으로 설치한 패키지가 다른 계정에서 권한문제로 접근이 안되게 되면서 엉망이 된다.. (-_–) dependency 가 있는 다른 패키지 들과도 맞물리게 되면서 내가 설치한 패키지가 아닌 패키지에 대해 데이터를 바꾸려고 하면서 권한 이슈로 연결 되는식....

August 24, 2022 · nolleh

Cheatsheet

CronJobs 수동 실행 kubectl create job -n {namespace} --from=cronjob/{name} {job-name}

August 5, 2022 · nolleh

Network

time_wait 종료 시간 확인 : ndd -get /dev/tcp tcp_time_wait_interval time_wait 종료 시간 30초로 설정 : ndd -set /dev/tcp tcp_time_wait_interval 30000 fin_wait_2 타임 아웃 시간 확인 : ndd -get /dev/tcp tcp_fin_wait_2_timeout fin_wait_2 타임 아웃 시간 5분으로 설정 : ndd -set /dev/tcp tcp_fin_wait_2_timeout 300000 출처: https://hyeonstorage.tistory.com/287 [개발이 하고 싶어요]

February 6, 2020 · nolleh