ETC
-
Rancher - nginx 쉘로 띄워보기ETC/MacOS,Rancher 2024. 7. 11. 10:45
custom.conf 생성$ vi /Users/deokjoonkang/dev/opt/nginx/config/custom.confserver { listen 80; server_name example.com; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; }} build-homepage.sh 작성#!/bin/shIMAGE_NAME=nginxIMAGE_VERSION=alpineCONTAINER_NAME=$IMAGE_NAME-$IMAGE_VERSION-homepagehelp() { if [ -z "$1" ]; then echo "사용법: $..
-
고용량 이미지 주소ETC/programing 2024. 5. 22. 10:43
개발할때 이미지 크기별 테스트를 진행할때가 종종있다.용량이 꽤큰 이미지가 필요할때 매번 찾기 귀찮아서 기록해 둔다. https://commons.wikimedia.org/w/index.php?title=Category%3ALarge_images&source=post_page-----b6c0fea2a4f4--------------------------------#mw-category-media Category:Large images - Wikimedia CommonsThis is a list of very large images above 50 Megapixel, which can really slow down a computer. Images are added to this category by add..
-
노션으로 Todo List 관리하기ETC/업무시스템 2024. 4. 15. 15:08
일정 및 작업정보는 Jira, 상세 내용은 Wiki가 제일 편했었는데 현재 회사는 노션만 사용한다. 급한대로 노션으로 Jira에서 사용한 방식을 흉내내서 써보자. 일단은 써보면서 수정하자! Todo List Todo Detail 템플릿으로 만들어 두고 쓰자. 작업번호 개발할때 브랜치 번호로 사용해도 될까?? 고민 고민 자동으로 넘버링 해주자. "NF-" + substring(["00000"], 0, (5 - prop("ID").length())) + format(prop("ID")) `ID`는 최근에 Notion에서 업데이트 된 auto increment 필드 ID 같다. 이걸 사용해서 작업번호를 넘버링 해 주었다.
-
Mac에서 Python으로 된 thumbor Rancher로 기동ETC/MacOS,Rancher 2024. 4. 12. 06:36
Mac에서 Python으로 만들어진 thumbor를 Rancher기반에서 컨테이너를 기동하는 스크립트를 간단하게 작성해 놓자. 매번 컨테이너 중지, 시작 삭제 등 여러 기능들을 기억하고 사용하는것도 좋지만 쉘로 만들어 놓고 사용하는것도 나쁘지 않은 선택지일것 같다. 참고로 nerdctl 이부분만 docker로 변경하면 docker환경에서도 가능할듯하다! build-thumbor.sh #!/bin/sh IMAGE_NAME=thumbor IMAGE_VERSION=7.7.4 help(){ if [ -z "$1" ]; then echo "사용법: $0 up|down|restart|logs|bash|build|rm|help" echo " $0 up : 컨테이너 시작" echo " $0 down : 컨테이너 종료"..
-
Mac crontab 설정ETC/MacOS,Rancher 2024. 4. 8. 15:40
일정한 시간 간격으로 맥에서 스케줄링 하는 방법을 기록해 둔다. 크론탭 수정 $ sudo crontab -e 프로그램 등록 (30초 주기로 실행) * * * * * /bin/sleep 30 && /Users/deokjoonkang/.pyenv/versions/3.11.3/bin/python /Users/deokjoonkang/dev/projects/gundam/python/crawling/test/test.py >> /Users/deokjoonkang/dev/projects/gundam/python/crawling/test/test.log 2>&1
-
Rancher - react build html nginx로 띄워보기ETC/MacOS,Rancher 2024. 3. 15. 14:44
react로 개발되고 빌드된 html를 로컬에서 nginx로 띄워볼 일이 생겼다, 간단하지만 정리는 해두자. custom.conf 생성$ vi /Users/deokjoonkang/dev/opt/nginx/config/custom.confserver { listen 80; server_name example.com; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; }} 컨테이너 실행$ nerdctl run -d -p 8090:80 \ -v /Users/deokjoonkang/dev/opt/nginx/config/custom.conf:/etc/n..
-
Ruby 버전 업데이트ETC/MacOS,Rancher 2023. 11. 3. 12:29
Homebrew 설치 $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" $ brew --version Homebrew 4.1.18 Homebrew/homebrew-core (git revision 58de0d98e4e; last commit 2023-11-03) Homebrew/homebrew-cask (git revision e52e8a2e21; last commit 2023-11-02) Homebrew 최신버전 업데이트 $ brew update rbenv 설치 $ brew install rbenv ruby-build rbenv Ruby 설치 및 관리 Ruby 설치 가능한 버전 ..
-
MacOS에서 파이썬 버전 관리하기ETC/MacOS,Rancher 2023. 8. 8. 11:52
맥에서 Python버전을 관리하는 방법을 정리해 놓자! 1. pyenv 설치 & 업그레이드 & 삭제 # 설치 $ brew install pyenv # 업그레이드 $ brew upgrade pyenv # 삭제 $ brew uninstall pyenv 2. 환경설정 ~/.zshrc에 추가 및 적용을 한다. $ echo -e '\nif command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc 결과적으로 아래 코드가 추가된다. if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" fi 아래 명령어로 설정코드 적용 $ source ~/.zshrc 3. 필요한 V..