[wireshark] ๋„คํŠธ์›Œํฌ ๋ถ„์„ ํ”„๋กœ๊ทธ๋žจ color rules
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
Wireshark Wireshark๋Š” ๋„คํŠธ์›Œํฌ ํŒจํ‚ท ๋ถ„์„(Network Packet Analyzer) ๋„๊ตฌ๋กœ, ๋„คํŠธ์›Œํฌ์—์„œ ์ „์†ก๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์บก์ฒ˜ํ•˜๊ณ  ๋ถ„์„ํ•  ์ˆ˜ ์žˆ๋Š” ์˜คํ”ˆ ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด ์ž…๋‹ˆ๋‹ค. ์‹ค์‹œ๊ฐ„ ํŒจํ‚ท, ํ”„๋กœํ† ์ฝœ ๋ถ„์„ ๊ธฐ๋Šฅ์„ ํ†ตํ•ด ๋„คํŠธ์›Œํฌ ํŠธ๋Ÿฌ๋ธ”์ŠˆํŒ…, ๋ณด์•ˆ ์ทจ์•ฝํƒ์ง€, ์›น์‚ฌ์ดํŠธ ์„ฑ๋Šฅ ๋ถ„์„, ํŒจํ‚ท ์Šค๋‹ˆํ•‘ ๋ฐ ํฌ๋ Œ์‹์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.   wireshark๋Š” ๋„คํŠธ์›Œํฌ์— ๋Œ์•„๋‹ค๋‹ˆ๋Š” ์ˆ˜ ๋งŽ์€ ํŒจํ‚ท๋“ค์„ ๋ณด์—ฌ ์ฃผ๋Š”๋ฐ ๋„ˆ๋ฌด ๋งŽ๋‹ค๋ณด๋‹ˆ ์ƒ‰์ƒ์œผ๋กœ ์•Œ์•„๋ณด๊ธฐ ์ข‹๊ฒŒ ํ‘œ์‹œ๋ฅผ ํ•ด์ค๋‹ˆ๋‹ค.  ** View > Coloring Rules๋ฅผ ํ†ตํ•ด ํ‘œ์‹œ ์—ฌ๋ถ€๋ฅผ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Color Rules Infoํ•ญ๋ชฉ์„ค๋ช…ํ•„ํ„ฐ ์กฐ๊ฑดBad TCPTCP ํŒจํ‚ท์—์„œ ์˜ค๋ฅ˜๊ฐ€ ๊ฐ์ง€๋œ ๊ฒฝ์šฐ (์˜ˆ: ์†์‹ค, ์žฌ์ „์†ก)tcp.analysis.flags &&..
[dify] Dify~ ollama ์—ฐ๋™
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
https://dify.ai/ Dify.AI · The Innovation Engine for Generative AI ApplicationsThe next-gen development platform - Easily build and operate generative AI applications. Create Assistants API and GPTs based on any LLMs.dify.ai DifyDify๋Š” ์˜คํ”ˆ ์†Œ์Šค LLMOps ํ”Œ๋žซํผ์œผ๋กœ, ์‚ฌ์šฉ์ž๊ฐ€ AI ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์‰ฝ๊ฒŒ ๊ฐœ๋ฐœํ•˜๊ณ  ์šด์˜ํ•  ์ˆ˜ ์žˆ๋„๋ก ์ง€์›ํ•ฉ๋‹ˆ๋‹ค. ์‹œ๊ฐ์  ์›Œํฌํ”Œ๋กœ ์˜ค์ผ€์ŠคํŠธ๋ ˆ์ด์…˜์„ ํ†ตํ•ด ๋‹ค์–‘ํ•œ AI ๋ชจ๋ธ์„ ํ†ตํ•ฉํ•˜๊ณ , RAG ํŒŒ์ดํ”„๋ผ์ธ ๋ฐ ์—์ด์ „ํŠธ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ๋ชจ๋ธ ๊ด€๋ฆฌ์™€ ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ํ†ตํ•ด ํ”„๋กœํ† ํƒ€์ž…์—์„œ ํ”„๋กœ๋•์…˜๊นŒ..
[Python] Dunder / Magic Methods (1)
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
Python์—๋Š” ๋‹ค์–‘ํ•œ ๋งค์ง ๋ฉ”์†Œ๋“œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ชจ๋“  ๊ฒƒ์ด ๊ฐ์ฒด๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์–ด ๊ทธ ์•ˆ์— ํ•จ์ˆ˜๊ฐ€ ํ˜ธ์ถœ๋˜๋Š” ํ˜•์‹์ž…๋‹ˆ๋‹ค. ๋ฌธ์ž์—ด์˜ ๋ง์…ˆ์„ ์˜ˆ๋กœ ๋“ค๋ฉด "Hello" + " World"๋ฅผ ์‹คํ–‰ํ•˜๋ฉด "Hello World"๊ฐ€ ๋ฉ๋‹ˆ๋‹ค. "+" ์–ด๋–ป๊ฒŒ ๋ง์…ˆ์ด ์ด๋ฃจ์–ด์ง€๋Š” ๊ฐ€๋Š” ๋ฐ”๋กœ ๋ณ€์ˆ˜์— ์„ ์–ธ๋œ ๊ฐ์ฒด ์•ˆ์— ๋งค์ง ๋ฉ”์†Œ๋“œ๋กœ ์žˆ๋Š” __add__(self, other) ์—ฐ์‚ฐ์ž๊ฐ€ ์žˆ์–ด ๋’ค(other)์— ์˜ค๋Š” ๋ณ€์ˆ˜๋ฅผ ๋”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.  Print functionprint operation์€ __str__ ๋งค์ง ๋ฉ”์†Œ๋“œ๋ฅผ ํ˜ธ์ถœํ•ด ๋ณ€์ˆ˜๋ฅผ ๋ฌธ์ž์—ด๋กœ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค. (=__repr__()), Class์— ๋งค์ง ๋ฉ”์„œ๋“œ๊ฐ€ ์„ ์–ธ๋˜์–ด ์žˆ์ง€ ์•Š๊ฑฐ๋‚˜ string์ด ์•„๋‹Œ ๋‹ค๋ฅธ Type์˜ ๋ณ€์ˆ˜๊ฐ€ return์ด ๋  ๊ฒฝ์šฐ "__str__ returned n..
[Memory] Process Memory ์ฒดํฌ
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
m1๋ถ€ํ„ฐ mac์—์„œ ์‚ฌ์šฉํ•˜๋Š” RAM์˜ memory ๊ด€๋ฆฌ ๋ฐฉ์‹์€ ๊ธฐ์กด์˜ ๋ฐฉ์‹๊ณผ๋Š” ๋‹ค๋ฅด๋‹ค. ๊ฐ€์ƒ ๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ์œผ๋กœ ์ €์žฅ ์žฅ์น˜์™€ swap์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ์ด ๋†€๋ผ์šด ๊ฐœ์„ ์œผ๋กœ ์˜ˆ์ „์— ๊ฐ–๊ณ  ์žˆ๋˜  ํ”„๋กœ์„ธ์Šค ๋ณ„ ๋ฉ”๋ชจ๋ฆฌ ์ œํ•œ์ด ์—†์–ด์ง„๊ฒƒ์ด๋‚˜ ๋‹ค๋ฆ„ ์—†๋‹ค.    MaxProc ํ™•์ธ ์ปดํ“จํ„ฐ ๋งˆ๋‹ค ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ํ”„๋กœ์„ธ์Šค ์ˆ˜ memory๋งˆ๋‹ค ๋‹ค๋ฅด๋ฏ€๋กœ ํ™•์ธํ•ด๋ณด์ž. ๋‚ด ๋…ธํŠธ๋ถ์€ Apple M1 pro 32g 1T CTO ์ œํ’ˆ์ด๋‹ค.  sudo launchctl limit  cpu unlimited unlimited filesize unlimited unlimited data unlimited unlimited stack 8372224 67092480 co..
์œ ์šฉํ•œPython ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ค์ •(feat. outlore.dev)
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
https://outlore.dev/blog/python-dev-2024/ How I manage Python in 2024No more frustrationoutlore.dev ๋ณธ๊ธ€์€ outlore.dev์˜ ๊ธ€์„ OpenAI๋กœ ๋ฒˆ์—ญํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. ๋” ์ด์ƒ ์ŠคํŠธ๋ ˆ์Šค ๋ฐ›์„ ํ•„์š” ์—†์Œ ์ง€๋‚œ 5๋…„๊ฐ„ Python ๊ฐœ๋ฐœ์€ ๋ˆˆ๋ถ€์‹œ๊ฒŒ ๋ฐœ์ „ํ•ด ์™”์Šต๋‹ˆ๋‹ค. ์ €๋Š” ์ฃผ๋กœ JavaScript ๊ฐœ๋ฐœ์ž์ด์ง€๋งŒ, ๋ฒ„์ „ ๋ฐ ์˜์กด์„ฑ ๊ด€๋ฆฌ, ์ฝ”๋“œ ํฌ๋งทํŒ…, ๋ฆฐํŒ…, ํƒ€์ž… ์•ˆ์ „์„ฑ์„ ์ œ๊ณตํ•˜๋Š” ๋„๊ตฌ๋“ค์ด ์„ฑ์žฅํ•˜๋Š” ๊ฒƒ์„ ๋ณด๋ฉฐ ๊ธฐ๋ปค์Šต๋‹ˆ๋‹ค. ์š”์•ฝ:Python ๋ฒ„์ „ ๊ด€๋ฆฌ๋Š” mise๊ฐ€์ƒ ํ™˜๊ฒฝ ๊ด€๋ฆฌ๋Š” mise์˜์กด์„ฑ ๊ด€๋ฆฌ๋Š” poetry ๋˜๋Š” uvํฌ๋งทํŒ…๊ณผ ๋ฆฐํŒ…์€ ruff๋Ÿฐํƒ€์ž„ ์Šคํ‚ค๋งˆ ๊ด€๋ฆฌ๋Š” pydanticPython ๋ฒ„์ „ ๊ด€๋ฆฌ ์ €๋Š” mise๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. Mise๋Š”..
[Airflow 3] What's new Airflow 3
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
https://youtu.be/2g1nBbHgZbY?si=_zVw2PPifVqkHolN Airflow Summit 2024What's coming in Airflow 3 and beyond?  2014๋…„ : Airflow ๋“ฑ์žฅ!2015๋…„ : Apache์˜ ์ตœ๊ณ  ์ˆ˜์ค€ ํ”„๋กœ์ ํŠธ2019๋…„ : HA ์Šค์ผ€์ค„๋Ÿฌ, REST API๋ฅผ ํ†ตํ•œ ์™„์ „ํ•œ ์ŠคํŽ™ ์ •์˜ ๋“ฑ์„ ํฌํ•จํ•œ Enterprise Production-Ready ์™„๋ฃŒ2020๋…„ ~ 2024๋…„: ๋น„๋™๊ธฐ ์ž‘์—…์ž, ๋™์  ์ž‘์—…, ์„ค์น˜ ๋ฐ ํ•ด์ฒด, Airflow ObjectStore ๋“ฑ์„ ํฌํ•จํ•˜์—ฌ ์‚ฌ์šฉ ํŽธ์˜์„ฑ๊ณผ ํšจ์œจ์„ฑ ์ฆ๊ฐ€2021๋…„ ~ 2024๋…„: ๋ฐ์ดํ„ฐ ๊ธฐ๋ฐ˜ ์Šค์ผ€์ค„๋ง, ์กฐ๊ฑด๋ถ€ ๋ฐ์ดํ„ฐ์…‹, ํ†ตํ•ฉ๋œ ๋ฐ์ดํ„ฐ์…‹ ๋ฐ ์‹œ๊ฐ„ ์Šค์ผ€์ค„๋ง, ๋ฐ์ดํ„ฐ์…‹ ์ด๋ฒคํŠธ API ๋“ฑ์„ ํฌํ•จํ•˜์—ฌ ๋ฐ์ดํ„ฐ ์ธ์‹ ..
Slack-Bolt Reload๋กœ ๊ฐœ๋ฐœ์„ ์œคํƒํ•˜๊ฒŒ (feat. fastapi)
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
ํ˜‘์—… ๋„๊ตฌ Slack Slack์€ ๊ฒŒ์ž„ ๊ฐœ๋ฐœ์ž๊ฐ€ ์ž์‚ฌ ์ฑ„ํŒ… ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ ์‚ฌ์šฉํ•˜๋˜ ๊ฒƒ์„ ๊ฐœ๋ฐœ ์ œํ’ˆ์œผ๋กœ ๋งŒ๋“ค์–ด ํ˜„์žฌ๋Š” ๊ธฐ์—…๊ฐ€์น˜๊ฐ€ ์ˆ˜์‹ญ ์กฐ์›์— ๋‹ฌํ•˜๋Š” ์ฑ„ํŒ… ํ”„๋กœ๊ทธ๋žจ์ž…๋‹ˆ๋‹ค. ์ฃผ์š” ๊ธฐ๋Šฅ์œผ๋กœ๋Š” ๋ชจ๋“  ์ฑ„๋„(์ฑ„ํŒ…๋ฐฉ)์˜ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ๊ณผ ํ—ˆ๋“ค(ํ†ตํ™”), Webhook์„ ํ†ตํ•œ Alert API ์—ฐ๊ฒฐ์ด ์žˆ์Šต๋‹ˆ๋‹ค.  Webhook๊ณผ ๋”๋ถˆ์–ด slack์€ chatbot ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. chatbot์„ ํ†ตํ•ด ์ž๋™ํ™” ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํŠน์ • ๋‹จ์–ด๋ฅผ chatbot handler๊ฐ€ ๋ชจ๋‹ˆํ„ฐ๋งํ•˜๋ฉด์„œ ํŠธ๋ฆฌ๊ฑฐ๊ฐ€ ๋  ๋งŒํ•œ ์š”์†Œ๊ฐ€ ์žˆ์œผ๋ฉด ์‹คํ–‰์ด ๋˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด๋‚ผ API์™€ handler๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. https://api.slack.com/tools/bolt-python Building an app with Bolt..
[golang-jwt] 401 "Token used beford issued"
ยท
๐Ÿง‘‍๐Ÿ’ป Develop
Token used before issued  Go๋กœ ์งœ์ธ API๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๊ฐ€ ๋งŒ๋‚œ Error "401 Token used before issued" ์ด ๋ฌธ์ œ๋Š” jwt decode ์œ ํšจ์„ฑ ๊ฒ€์ฆ ๊ณผ์ •์—์„œ ์‹คํŒจํ•ด์„œ ์ƒ๊ธด ๋ฌธ์ œ๋‹ค. ๋‚˜์˜ ๊ฒฝ์šฐ iat((Issued At: ์š”์ฒญ ์‹œ๊ฐ„))๊ฐ€ ์œ ํšจ์„ฑ ๊ฒ€์ฆ์„ ํ†ต๊ณผํ•˜์ง€ ๋ชปํ•ด ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ–ˆ๋‹ค. iat๋Š” ์š”์ฒญ ์‹œ๊ฐ„์ธ๋ฐ ์š”์ฒญ ์‹œ๊ฐ„์ด API๊ฐ€ ๋ฐ›์€ ์‹œ๊ฐ„๊ณผ ๋‹ฌ๋ผ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์ด ์ผ€์ด์Šค๋Š” API์™€ ๋ณ„๊ฐœ๋กœ ์š”์ฒญํ•˜๋Š” ๊ณณ์—์„œ iat ๊ฐ’์„ ๋ฐ€๋ฆฌ์„ธ์ปจ๋“œ์—์„œ ๋‹ค์‹œ ์ •์ˆ˜๋กœ ๋ณ€ํ™˜((์–ธ์–ด๋งˆ๋‹ค ๋‹ค๋ฆ„))ํ•˜๋Š” ๊ณผ์ •์—์„œ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ๋กœ ๋ฐ˜์˜ฌ๋ฆผ ๊ณผ์ •์—์„œ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธด๋‹ค.  ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ iat ๊ฐ’์„ ๊ฒ€์ฆํ•˜๋Š” ๊ณณ์—์„œ ((mapClaims["iat"].(float64)) -= 5)) ์ผ์ • ๋ณด์ •์„ ํ†ตํ•ด ..
๋‹คํ–ˆ๋‹ค
'๐Ÿง‘‍๐Ÿ’ป Develop' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก