๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Tried. Failed. Logged.
728x90

์ „์ฒด ๊ธ€720

ํŒŒ์ด์ฌ - ์บก์ฑ  ์ƒ์„ฑ๊ธฐ(captcha) ๋ชจ๋“ˆ ์„ค์น˜ pip install captcha ๊ธ€์ž ์ƒ์„ฑ ์˜ˆ์‹œ # Import the following modules from captcha.image import ImageCaptcha # Create an image instance of the given size image = ImageCaptcha(width = 280, height = 90) # Image captcha text captcha_text = 'GeeksforGeeks' # generate the image of the given text data = image.generate(captcha_text) # write the image on the given file and save it image.write(captcha_text, .. 2023. 3. 12.
YOLO - ๊ฐ„๋‹จํ•œ ์‚ฌ๋ฌผ ์ธ์‹ ์˜ˆ์ œ(YOLOv5, Colab) YOLO(You Only Look Once)๋Š” ๋”ฅ๋Ÿฌ๋‹์„ ์ด์šฉํ•œ ์‚ฌ๋ฌผ ์ธ์‹ ํ”„๋ ˆ์ž„์›Œํฌ๋‹ค. ๋งŽ์€ ์ธ๊ธฐ ํƒ“์— ๋‹ค์–‘ํ•œ ๋ฒ„์ „๋“ค(v3, v4, v5...)์ด ์ƒ๊ฒจ๋‚˜๊ณ  ์žˆ๋‹ค. ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•  ์˜ˆ์ œ์˜ ๋ฒ„์ „์€ YOLOv5์ด๋‹ค. ๊นƒํ—ˆ๋ธŒ https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data Train Custom Data YOLOv5 ๐Ÿš€ in PyTorch > ONNX > CoreML > TFLite. Contribute to ultralytics/yolov5 development by creating an account on GitHub. github.com ์œ„ ๊นƒํ—ˆ๋ธŒ ํŽ˜์ด์ง€๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ๋”ฐ๋ผ ํ•˜์˜€๋‹ค. Roboflow - ์ปค์Šคํ…€ ๋ฐ์ดํ„ฐ์…‹ ๋งŒ๋“ค๊ธฐ https://app.rob.. 2023. 3. 12.
๋ฆฌ๋ˆ…์Šค - ํ˜„์žฌ ์‹œ๊ฐ„, ๋‚ ์งœ ๋ณ€๊ฒฝํ•˜๊ธฐ(date, NTP) date ๋ช…๋ น์–ด date # ํ˜„์žฌ ์‹œ๊ฐ„ ํ™•์ธ sudo date -s "20230315 14:30:30" # ํ˜„์žฌ ์‹œ๊ฐ„ ๋ณ€๊ฒฝ date # ๋ฐ”๋€ ์‹œ๊ฐ„ ํ™•์ธ NTP(Network Time Protocol) ๋ช…๋ น์–ด (์™ธ๋ถ€๋กœ๋ถ€ํ„ฐ ์ •ํ™•ํ•œ ์‹œ๊ฐ„ ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•) sudo apt-get install ntp NTP ์„ค์น˜ sudo nano /etc/ntp.conf ์„ค์ • ํŒŒ์ผ ์ˆ˜์ • server time.bora.net server kr.pool.ntp.org server time.bora.net server time.kornet.net ์„ค์ • ํŒŒ์ผ์— ํ•œ๊ตญ ์‹œ๊ฐ„ NTP ์ฃผ์†Œ ๋“ฑ๋ก sudo service ntp restart NTP ์„œ๋น„์Šค ์žฌ์‹œ์ž‘ 2023. 3. 12.
๋„คํŠธ์›Œํฌ ๋ณด์•ˆ - ์•„์ดํ”ผ๋กœ ์•…์˜์ ์ธ ํ”ผํ•ด ์‚ฌ๋ก€ ๊ฒ€์ƒ‰(criminalip.io) https://www.criminalip.io/ko Cybersecurity Search Engine | Criminal IP Criminal IP is a Cyber Threat Intelligence Search Engine and Attack Surface Management(ASM) platform to find everything in Cybersecurity with impressive amount data capacities, API speed, and price. www.criminalip.io 2023. 3. 12.
๋ฆฌ๋ˆ…์Šค - ๊ธฐ๋ณธ ๊ฒŒ์ดํŠธ์›จ์ด ์ฃผ์†Œ ๋ณ€๊ฒฝ ๋ช…๋ น์–ด(route) sudo route add default gw 192.168.0.2 # ์ถ”๊ฐ€ sudo route change default gw 192.168.0.2 # ๋ณ€๊ฒฝ sudo route del default gw 192.168.0.2 # ์ œ๊ฑฐ ์˜๊ตฌ์ ์œผ๋กœ ๋ณ€๊ฒฝํ•˜๊ณ  ์‹ถ์„ ๊ฒฝ์šฐ sudo vi /etc/network/interfaces ์„ค์ • ํŒŒ์ผ ์—๋””ํ„ฐ๋กœ ์—ด๊ธฐ iface eth0 inet static address netmask gateway ์„ค์ • ํŒŒ์ผ์˜ ๋‚ด์šฉ ์ˆ˜์ • sudo service networking restart ์„œ๋น„์Šค ์žฌ์‹œ์ž‘ 2023. 3. 10.
๋ฆฌ๋ˆ…์Šค - ifconfig ์•„์ดํ”ผ ๋ณ€๊ฒฝ ๋ช…๋ น์–ด $ ifconfig eth0 ์˜ˆ์‹œ) eth0์˜ IP ์ฃผ์†Œ๋ฅผ `192.168.0.100`๋กœ ๋ณ€๊ฒฝํ•˜๊ธฐ $ ifconfig eth0 192.168.0.100 2023. 3. 10.
์…€๋ ˆ๋‹ˆ์›€ - ํฌ๋กฌ๋“œ๋ผ์ด๋ธŒ ์ž๋™ ์„ค์น˜ ๋ชจ๋“ˆ ์„ค์น˜ pip install webdriver_manager from webdriver_manager.chrome import ChromeDriverManager def exec_chrom(): driver = webdriver.Chrome(service=Service(ChromeDriverManager().install())) return driver 2023. 3. 8.
ํŒŒ์ด์ฌ - pyinstaller์˜ RecursionError : maximum recursion depth exceeded ์˜ค๋ฅ˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• pyinstaller -w --onefile main.py ์ด๋Ÿฐ ์˜ˆ์‹œ๋กœ main.py๋ฅผ exe๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๊ณผ์ •์— RecursionError ์˜ค๋ฅ˜๊ฐ€ ์ƒ๊ฒผ๋‹ค๋ฉด .spec ํŒŒ์ผ์„ ์•„๋ž˜์ฒ˜๋Ÿผ ์ˆ˜์ • pyinstaller๋กœ ๋นŒ๋“œ๋ฅผ ํ•œ๋ฒˆ ํ•ด์ฃผ๋ฉด ๊ทธ ํด๋”์— main.spec์ด๋ผ๋Š” ํŒŒ์ผ์ด ํ•˜๋‚˜ ์ƒ๊ธฐ๋Š”๋ฐ ์ด๊ฑธ ์—ฐ๋‹ค. ์ƒ์œ„ ๋ถ€๋ถ„์—๋‹ค. (์ธ์ฝ”๋”ฉ ๋ฐ”๋กœ ์•„๋ž˜์—) # -*- mode: python ; coding: utf-8 -*- import sys sys.setrecursionlimit(5000) # ํ˜น์€ import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5) ๋‘ ์ค„์„ ์ƒˆ๋กœ ์ถ”๊ฐ€ํ•œ๋‹ค. (sys.setrecursionlimit ํ•จ์ˆ˜๋Š” ์žฌ๊ท€ ํ˜ธ์ถœ์˜ ์ œํ•œ ์„ค์ •์ด๋ผ๊ณ  ํ•œ๋‹ค. ๊ธฐ.. 2023. 3. 8.
์ผํšŒ์šฉ ์ด๋ฉ”์ผ ์‚ฌ์ดํŠธ(sharklasers.com) https://www.sharklasers.com/ โœ‰ SharkLasers.com www.sharklasers.com 2023. 3. 7.
Jekyll - {{ }}, {% %} ์‚ฌ์šฉํ•˜๊ธฐ (escape liquid template) Jekyll์—์„œ ๋งˆํฌ๋‹ค์šด์„ ์ž‘์„ฑํ•˜๋˜ ์ค‘ liquid template ๋ฌธ๋ฒ•์„ ์‚ฌ์šฉ์„ ํ•ด ๊นƒํ—ˆ๋ธŒ ํŽ˜์ด์ง€์— ๋””ํ”Œ๋กœ์ž‰์„ ํ•ด๋ณด์•˜๋Š”๋ฐ ์ด์ƒํ•˜๊ฒŒ ๊ฒฐ๊ณผ๊ฐ€ ์ถœ๋ ฅ์ด ๋˜์ง€ ์•Š์•˜๋‹ค. ์•Œ๊ณ  ๋ณด๋‹ˆ Jekyll์—์„œ๋Š” ๋”ฐ๋กœ {% raw %} {% endraw %}๋ฅผ ์‚ฌ์šฉํ•ด ์˜ˆ์™ธ ์ฒ˜๋ฆฌ๋ฅผ ์‹œ์ผœ์ค˜์•ผ ํ•˜๋Š” ๊ฒƒ์ด์—ˆ๋‹ค. ์ž‘์„ฑ ๋ฐฉ๋ฒ• {% raw %} {{ example }} {% endraw %} {% raw %} {% example %} {% endraw %} ๊ฒฐ๊ณผ {{ example }} {% example %} ์ถœ์ฒ˜: https://atomic0x90.github.io/jekyll/markdown/2019/06/08/escape-liquid-template.html atomic0x90(Yujun Han) c์™€ c++ ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• ์„ค๋ช….. 2023. 3. 7.
๋ฆฌ๋ˆ…์Šค - ํŒŒ์ผ ์ด๋ฆ„์œผ๋กœ ํŒŒ์ผ ์ฐพ๋Š” ๋ช…๋ น์–ด(find, locate) find find / -name my.cnf 2>/dev/null /์—์„œ๋ถ€ํ„ฐ my.cnf๋ผ๋Š” ์ด๋ฆ„์˜ ํŒŒ์ผ์„ ์ฐพ๋Š” ๋ช…๋ น์–ด๋‹ค. ๋’ค์— 2>/dev/null์€ Permission denied ๊ฐ™์€ ํ‘œ์ค€ ์˜ค๋ฅ˜ ๋ฌธ์ž๊ฐ€ ๋œจ๋ฉด /dev/null๋กœ ๋ฆฌ๋‹ค์ด๋ ‰์…˜ ์‹œ์ผœ์„œ ์˜ค๋ฅ˜ ๋ฌธ๊ตฌ๊ฐ€ ์ถœ๋ ฅ์„ ํ•˜์ง€ ์•Š๊ธฐ ์œ„ํ•จ์ด๋‹ค. ์žฅ์ : ๊ธฐ๋ณธ์ ์ธ ํŒŒ์ผ ์ฐพ๋Š” ๋ช…๋ น์–ด์ด๊ณ  ๋‹ค์–‘ํ•œ ์˜ต์…˜๋“ค์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ๋‹จ์ : ํŒŒ์ผ์„ ์ฐพ๋Š”๋ฐ ์˜ค๋žœ ์‹œ๊ฐ„์ด ๊ฑธ๋ฆฐ๋‹ค. locate locate my.cnf ๊ฒ€์ƒ‰ ๋ชฉ๋ก์„ ๋ฏธ๋ฆฌ mlocate.db ํŒŒ์ผ์— ์ธ๋ฑ์‹ฑ ํ•˜๋ฏ€๋กœ find ๋ณด๋‹ค ๋” ๋น ๋ฅด๊ฒŒ ํŒŒ์ผ์„ ์ฐพ์„ ์ˆ˜ ์žˆ๋‹ค. ์ฃผ๊ธฐ์ ์œผ๋กœ ํŒŒ์ผ์˜ ๋ชฉ๋ก์„ ๊ธฐ๋กํ•˜๋Š” cron ์Šค์ผ€์ค„์ด ์ž‘๋™ํ•œ๋‹ค. ์žฅ์ : find ๋ช…๋ น์–ด ๋ณด๋‹ค ๋น ๋ฅธ ์†๋„๋กœ ํŒŒ์ผ์„ ์ฐพ์„ ์ˆ˜ ์žˆ๋‹ค. ๋‹จ์ : ๋ฆฌ๋ˆ…์Šค์— ์„ค์น˜๊ฐ€ ๋˜์ง€ ์•Š์€ .. 2023. 3. 6.
ํ”„๋ก ํŠธ์—”๋“œ - ์‚ฌ์ดํŠธ๋งต ๋งŒ๋“œ๋Š” ์‚ฌ์ดํŠธ(gloomaps.com) https://www.gloomaps.com/ GlooMaps - Visual Sitemap Tool Visual sitemaps made easy Start creating Watch video Create your visual sitemap on the go - easy peasy With GlooMaps it's really easy to create your own sitemaps fast and efficiently. Click a box to attach a child box, drag & drop to reorder or double clic www.gloomaps.com 2023. 3. 5.
728x90