centos8x update error
# Operation System/Linux2023. 1. 17. 15:41centos8x update error

오류확인 centos8초기버전에서 yum(또는 dnf) update할려고할시 업데이트 에러가 발생 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist 오류원인 저장소 경로가 잘못되었거나 할경우 발생할수 있던건데. 현재는(작성일 기준 : 2023-01-18) EOL로 인한 업데이트 에러. 해결방법 centos초기 버전이라 일단 아래와 같이 repo파일 수정. 기존 mirrorlist는 주석처리. https://vault.centos.org/8.5.2111/AppStream/x86_64/os/ https://vault.centos.org/8.5.2111/B..

[파이썬]텔레그램 푸시(2023버전)
# Script/Python2023. 1. 17. 10:45[파이썬]텔레그램 푸시(2023버전)

파이참을 작성해서 텔레그램 푸시를 테스트해볼려고하니 기존에 사용했던 방식은 먹히지 않아 구글링해본 결과 최근 텔레그램봇이 v20으로 업데이트 되면서 문제가 발생 해서 아래와 같이 하면 동작. import telegram import asyncio chat_token = "#############################" bot = telegram.Bot(token = chat_token) text = '안녕하세요' #### 리눅스에서는 아래 코드 삭제 또는 주석처리해야함 #### asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) asyncio.run(bot.sendMessage(chat_id = "#############..

[bash]텔넷 접속 후 명령실행(결과 화면 저장)
# Script/Bash2023. 1. 12. 17:21[bash]텔넷 접속 후 명령실행(결과 화면 저장)

[darksharavim]cat telnet.sh #!/bin/sh tpipe(){ sleep 1; echo 'helo nice' sleep 1; echo 'quit' } tpipe | telnet smtp.nate.com 25 결과를 저장해야할 경우 [darksharavim]cat telnet.sh #!/bin/sh tpipe(){ sleep 1; echo 'helo nice' sleep 1; echo 'quit' } tpipe | telnet smtp.nate.com 25 | tee result.txt [darksharavim]cat result.txt Trying 117.53.114.15... Connected to smtp.nate.com. Escape character is '^]'. 220 *..

[bash]변수 내 문자열 길이 확인
# Script/Bash2023. 1. 12. 15:16[bash]변수 내 문자열 길이 확인

엑셀이 있다면 len함수등으로 글자수를 카운트하겠지만 없을 경우 [darksharavim]cat test.sh #!/bin/bash dark="darksharavim" echo "${#dark}" [darksharavim]sh test.sh 12

엘* 유*플러스 개인정보 유출 여부 및 정보항목 조회
# Security2023. 1. 11. 10:20엘* 유*플러스 개인정보 유출 여부 및 정보항목 조회

개인정보 유출 여부 및 정보항목 조회사이트 https://image.lguplus.com/static/gen/generate/security/check/index.html 개인정보 유출 여부 및 정보항목 조회 개인정보 유출 여부 및 정보항목 조회 image.lguplus.com 회사 업무폰을 해당 통신사를 사용중이여서 조회해봄.

image