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. ์ด์ 1 ยทยทยท 19 20 21 22 23 24 25 ยทยทยท 60 ๋ค์ 728x90