전체 글
-
Apple credit Card 구매처컴퓨터 2025. 4. 19. 17:55
명예 인도인으로서 충전해놨던 크레딧이 다 떨어져 다시 충전을 해야 한다. 예전처럼 인도 아마존에 들어갔는데 더 이상 구매할 수가 없었다. 다행히 https://driffle.com/ 에서 구매할 수 있었고, 사기인지 아닌지 고민이 되었지만 다행히 잘 작동한다. 3000 루피 크레딧인데 결제금액은 INR 3659.49이고 유로로 결제되며 37.69 유로다.. 한화로 약 61,000원.. 그래도 Family로 결제해서 사용하면 7개월 사용 가능하니 대충 8800원/월이다. 참고로 구형iPad에 계정 설정해놓고 처박아 놔서 다시 꺼내기 귀찮으니 윈도우는 Apple Music 앱 설치해서 로그인하고 리딤코드 넣으면 애플 장비 없이 충전 가능하다.
-
[n8n] Converting Google News URLs to Source URLs컴퓨터 2024. 12. 20. 15:49
구글 뉴스 검색을 하면 기본적으로 Source URL(origin URL)이 아닌 구글을 통해(리다이렉션) 넘어가는 URL이 나옴 문제는 n8n에서 뉴스 컨텐츠를 가져오고 싶으면 HTTP Request 혹은 Puppeteer 를 사용해야 하는데 테스트 결과 가끔 컨텐츠를 못가져오는 상황이 발생한다. 그래서 n8n으로 뉴스 스크랩을 하고, 1차 적으로 google news URL을 Source(Origin) URL로 바꾸는 방법이다. python package가 있는데 n8n에서 js와 python을 실행할 순 있지만 외부 라이브러리 설치는 불가한 상황. https://github.com/SSujitX/google-news-url-decoder/tree/main GitHub - SSujitX/googl..
-
[n8n] selfhosting Puppeteer 설정컴퓨터 2024. 12. 15. 17:34
Self-hosting 시 Puppeteer 를 실행하면 에러 발생 설치 환경Digital Ocean 위에 공식 설치 가이드 문서를 따라 설치 youtube-transcript 나 웹 스크래핑을 위해 puppeteer 를 설치 막상 실행하면 아래와 같은 에러 발생 기존 컨테이너 제거sudo docker compose down# docker-compose.yml 수정vi docker-compose.yml version: "3.7"services: caddy: image: caddy:latest restart: unless-stopped ports: - "80:80" - "443:443" volumes: - caddy_data:/data - ${D..
-
[python] openai chatGPT컴퓨터 2023. 3. 6. 11:11
import openai def query_gpt_35_turbo(query): openai.api_key = "YOUR API KEY IS HERE" response = openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[{"role": "system", "content":"You are a helpful assistant that helps users generate ..."}, {"role":"user", "content": query}] ) return response.choices[0].message.content if __name__ == "__main__": print(query_gpt_35_turbo("안녕? 내 이름은 hikas..
-
[mac] NGINX brew start error컴퓨터/web 2022. 9. 26. 17:48
homebrew를 통해서 nginx 실행 시 info를 찍어보면 실행이 안 되고 있다. ❯ brew services start nginx ==> Successfully started `nginx` (label: homebrew.mxcl.nginx) ❯ brew services info nginx nginx (homebrew.mxcl.nginx) Running: ✘ Loaded: ✔ Schedulable: ✘ 물론 sudo로 실행시킬 순 있지만 추천하지 않는 방법이니, 아래와 같이 log 폴더의 권한을 변경 해주면 된다. 기존엔 root, 변경 후엔 실행 시키는 user ❯ sudo chown -R $(whoami) /usr/local/var/log/nginx Alias tip: _ chown -R $(w..
-
NGINX Reverse Proxy regex(정규표현식)컴퓨터/web 2022. 9. 7. 14:38
정규표현석: https://stackoverflow.com/questions/59846238/guide-on-how-to-use-regex-in-nginx-location-block-section Guide on how to use regex in Nginx location block section? Nginx regex location syntaxe Regex expressions can be used with Nginx location block section, this is implemented with the PCRE engine. What does exactly this feature support as it is not fully stackoverflow.com 정규표현식에서 변수 캡쳐: ht..
-
[MAC] Lunar - 모니터 조절(제어) 앱컴퓨터/miscellaneous 2022. 5. 6. 16:42
https://lunar.fyi/ Lunar - The defacto app for controlling monitor brightness The defacto app for controlling monitors. Change brightness, switch inputs, adjust volume and turn off displays without fiddling with clunky buttons. lunar.fyi 모니터(외부/내부) 제어를 앱에서. 귀찮게 외부 모니터에 손이 안 가도 된다. 단 가격은 $23, 한화 25,000원