save file storage


생각의 스크린샷 저장소
  • kubernetes4

    post subtitle

    By widehyo
    ```bash ~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step11/minikube-pvc $ cat pvc.yml apiVersion: v1 ##「표1PersistentVolumeClaim v1 core」 kind: PersistentVolumeClaim metadata: ##「표2 ObjectMeta v1 meta」 name: data1 spec: ##「표3 PersistentVolumeClaimSpec v1 core」 accessModes: ReadWriteOnce storageClassName: standard resources: requests: storage: 2Gi ~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step11/minikube-pvc $ cat pod.yml apiVersion: v1 kind: Pod metadata: name: pod1 spec: volumes: ##「표5 Volume v1 core」참고 name:... [Read More]
    Tags:
  • kubernetes3

    post subtitle

    By widehyo
    ~/gitclone/playground/reading/57_15_step_de_shutoku_docker_kara_hairu_kubernetes/15_DandK/step08 $ cat deployment1.yml apiVersion: apps/v1 kind: Deployment metadata: name: web-deploy spec: replicas: 3 selector: matchLabels: app: web template: metadata: labels: app: web spec: containers: - name: nginx image: nginx:1.16 [Read More]
    Tags:
  • terminal buffer를 통한 pwd sync

    terminal buffer를 통한 pwd sync

    By widehyo
    vim의 :terminal 커맨드를 사용하면서 알게 된 내용 vim의 :terminal excommand는 buftype이 ‘terminal’인 buffer를 연다 확인하는 방법은 getbufvar(<bufnr(of terminal buffer)>, ‘&buftype’) == ‘terminal’ vim의 terminal-buffer는 커맨드라인을 이용할 수 있는 Terminal-Job 모드와 vim-keybinding을 사용할 수 있는 Terminal-Normal 모드를 지원한다. Terminal-Job모드에서 Terminal-Normal모드로 전환은 키를 이용한다. (:h terminal-typing) <C-\><C-N> <C-W>N(CTRL-W 입력 후 그냥 대문자... [Read More]
    Tags:
  • vim popup으로 floating window를 사용해보자

    my vim popup configuration

    By widehyo
    vim 8.x 이상부터 popup이라는 기능을 제공한다(:h popup) vim의 popup은 floating window를 제공하는 기능으로, 주로 popup_menu()를 사용한다 popup_menu()의 디폴트 동작은 주어진 리스트를 j,k로 navigating하며 엔터로 팝업을 닫는다 팝업이 닫히는 기본 동작을 변경하려면 callback 함수를 만들어 config의 callback키에 연결한다. callback으로 연결된 함수는 첫번째 인자로 popup buffer의 window id, 두번째 인자로 item index가... [Read More]
  • 필요한 스크립트를 직접 만들어보자

    make your own script

    By widehyo
    기능과 접근성 터미널 환경에서 자주 느끼는 점은 좋은 기능이 있어도 해당 기능에 접근하기 위한 절차가 복잡하면 해당 기능의 존재를 모르거나 사용성이 매우 떨어진다는 점이다. 대표적으로 vim에서 윈도우를 다루는 기능, 소위 를 prefix로 하는 여러 기능들을 `nnoremap h` 등으로 매핑하기 전까지는 거의 사용하지 않았고, 이외 윈도우를 split하는 명령이나(``, ``) 새로운 버퍼를... [Read More]
    Tags: