삼바를 설치합니다. sudo apt-get install samba 설치가 완료된 후 설정파일을 수정합니다. sudo vi /etc/samba/smb.conf smb.conf 파일에서 [homes] 섹션을 찾습니다. 이 섹션에서, read only = no를 추가하여 읽기 및 쓰기 권한을 부여합니다. 아래 그림은 no로 수정한 화면입니다. [share] comment = Shared Folder path = /home/pi/shared browseable = yes read only = no create mask = 0777 directory mask = 0777 valid users = @users share라는 path의 폴더를 공유하는 프로퍼티를 추가합니다. sudo smbpasswd -a pi s..
GUI에서 설정하는 법 "Raspberry Pi Configuration"을 선택하고, "Localisation" 탭을 클릭합니다. "Set Locale" 버튼을 클릭합니다. 로케일 창에서 "ko_KR.UTF-8 UTF-8"을 선택하고, "OK" 버튼을 클릭합니다. "Set Default" 버튼을 클릭합니다. "Yes" 버튼을 클릭하여 설정을 저장하고, "OK" 버튼을 클릭합니다. 터미널 sudo locale-gen ko_KR.UTF-8 #한글로 업데이트 합니다. sudo update-locale LANG=ko_KR.UTF-8 한글폰트 설치 sudo apt-get update sudo apt-get install fonts-unfonts-core sudo apt-get install ibus ibus-h..
해당 글은 라즈베리파이에서 ssh를 연결했다는 가정하에 진행합니다. sudo apt update # vnc server 설치 sudo apt install realvnc-vnc-server # 라즈베리파이 설정 변경 sudo raspi-config config에서 "Interfacing Options" -> "VNC"로 이동하여 VNC 서버를 활성화합니다. 설정 후 vncserver를 활성화 합니다. vncserver -geometry 1980x1080 설치를 완료하면 아이피와 포트가 활성화됩니다. mac에서 vnc 클라이언트 설치하기 https://formulae.brew.sh/cask/vnc-viewer brew install --cask vnc-viewer 설치가 완료 된 후 윈도우 상단에 ip와 ..
nata:cms nata$ git remote -v origin https://nata@bitbucket.org/nata/cms.git (fetch) origin https://nata@bitbucket.org/nata/cms.git (push) 현재 bitbucket으로 사용중인데 git hub로 변경해서 레포지토리를 관리할 생각이다. github에 empty repository 생성 후 git remote add github git@github.com:nata/cms.git git oirigin이 이미 있으므로 github로 변경한다. git push -u github master github 레포지토리로 push 한다. nata:cms tjpark$ git remote remove origin na..
https://www.oracle.com/kr/cloud/free/ 클라우드 서비스 무료 이용 Oracle Cloud Free Tier는 기업에게 무제한으로 사용할 수 있는 상시 무료 클라우드 서비스를 제공합니다. www.oracle.com 오라클에서 무료로 지원하는 서버가 있어서 소개합니다. 크레딧 카드 입력 후 https://cloud.oracle.com/?region=ap-seoul-1 Oracle Cloud Infrastructure cloud.oracle.com 간단한 가입 절차 이후 사용가능. 리소스는 위의 사진과 같습니다. vm 하나 생성하였는데 간단한 어플리케이션을 올릴수 있겠네요. 언제 사라질지 모르니 미리미리 가입해봐요~
https://github.com/sveinbjornt/Sloth GitHub - sveinbjornt/Sloth: Mac app that shows all open files, directories, sockets, pipes and devices in use by all running pro Mac app that shows all open files, directories, sockets, pipes and devices in use by all running processes. Nice GUI for lsof. - GitHub - sveinbjornt/Sloth: Mac app that shows all open files, direc... github.com 자세한 사항은 위의 정보를 보면 알수..
nginx 로그를 카프카로 전송에 용이하게 로그를 json 구조로 남길 필요가 있었다. json 구조로 남기는 부분을 기록한다. nginx에서 지원하는 변수 리스트 http://nginx.org/en/docs/varindex.html Alphabetical index of variables nginx.org nginx 로그 sample http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format Module ngx_http_log_module Module ngx_http_log_module The ngx_http_log_module module writes request logs in the specified format. Requests are ..
앞의 글에서 Promise에 대해 간략히 알아보았다. 위에처럼 비동기 Promise를 사용시 then 또는 catch를 통해 반환 받을 수 있었다. 이외에도 awit를 통해서도 똑같이 사용할 수 있다. // as-is promise() .then(result =>{ console.log(result); }) // to Be let result = await promise(); console.log(result); 위의 코드는 같은 결과로 출력된다. 또한 함수를 선언할 때 function 키워드 앞에 async를 붙여주면 해당 함수를 호출 했을 때 함수내부에서 반환한 값을 이행하는 Promise를 반환한다. async function promise() { return "결과" } promise() .the..
자바스크립트에서는 비동기 프로그래밍을 자연스럽게 습득하게 된다. 이를 대표하는게 자바스크립트 Promise이다. Promise의 기본적인 구조는 아래와 같다. const promise = new Promise((resolve, reject) => { // resolve, reject의 타입은 함수타입이다. }); Promise는 resolve와 reject를 파라미터로 받아오는 함수로 resolve는 작업이 성공했을때, reject는 작업이 실패했을때 호출하는 함수이다. const promise = new Promise((resolve, reject) => { reject(new Error("에러 메시지를 던집니다.")); }); const promise = new Promise((resolve, rej..
잠시만 기다려주시면 밑의 박스의 자신의 연봉 선택이 로딩됩니다. 연금저축 입금액 및 자신의 연소득을 입력해주세요 1년 동안 입금하신 연금 저축 입금액을 입력해주세요.(숫자) 원 자신의 연소득을 입력해주세요. 5500만원 이하 5500만원 초과 1억 2천만원 초과 최대 공제금액 400만원에 5500만원 이하는 공제율 16.5% (최대 66만원) 5500만원 초과는 공제율 13.2% (최대 52.8만원) 1억 2천만원 초과는 최대 공제금액 300만원에서 13.2%를 받을 수 있습니다. (최대 39.6만원) 안녕하세요. 연금저축을 가입하셨나요? 필자도 최근에 연금저축에 대해서 관심이 생겨서 찾아보았습니다. 연말에 연금 저축을 최대 400만원을 넣으면 좋겠지만 현실적으로 불가능할 수도...ㅠㅠ 그럴때를 대비해 ..