해당 내용은 Windows11에서 진행되었습니다.Hyper-V로 진행하였습니다 1.Hyper-V 설정[진행률 60%]Windows 포맷후 전에 깔려있는 프로그램들 한번에 자동 설치 방법 Ver3 Windows 포맷후 전에 깔려있는 프로그램들 한번에 자동 설치 방법 Ver3해당 내용은 Windows10에서 진행되었습니다. Ver3는 모든 프로그램을 다운로드한 후 iso파일을 패키지로 만드는 과정입니다. 1. 가상머신 설정 [진행률 60%]1-1. Hyper-V 설치 및 세팅 Hyper-V(가상 머신) 활all-share-source-code.tistory.com 위 링크를 통해 1. 가상머신 설정 [진행률 60%]만진행 해줍니다.단, windows10 iso 파일 설치 하지 않습니다 아래 Hyper-V w..
1. 주요 메뉴 관리 레지스트리 경로우클릭 대상(파일, 폴더, 바탕화면 등)에 따라 수정해야 할 경로가 나뉩니다. 대상 레지스트리 경로비고모든 파일HKEY_CLASSES_ROOT\*\shell프로그램 실행 항목 등폴더HKEY_CLASSES_ROOT\Folder\shell폴더 우클릭 시 메뉴바탕화면HKEY_CLASSES_ROOT\Directory\Background\shell바탕화면 빈 곳 우클릭 시확장 프로그램HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers백신, 압축 프로그램 등 1. 대상별 핵심 경로대상레지스트리 경로설명모든 파일HKEY_CLASSES_ROOT\*\shell확장자에 상관없이 모든 파일 우클릭 시 노출일반 폴더HKEY_CLASSES_ROOT\Direc..
C:\System.sav\Logs 폴더 생성후 실행할것
1.Windows Admin Center의 GPUs확장자 설치 Windows Admin Center설치 -> 출처 : https://www.microsoft.com/ko-kr/evalcenter/download-windows-admin-center Windows Admin Center 설치 화면더보기 설치후 해당 로그인은 윈도우 계정, 아이디 입력해서 로그인 합니다. 설정 아이콘 클릭 확장 클릭 "사용 가능한 확장" 클릭해서 GPUs검색후 설치 해줍니다.(저는 이미 설치 되어 있기 때문에 "설치된 확장"에서 확인 됩니다.) 2.그래픽카드 드라이버 설치 확인그리고 파워쉘 켜줍니다.그래픽카드 드라이버가 잘 설치 되어 있는지 확인해 줍니다.(nvidia-smi명령어 안될시 검색해서 설치 진행해주세요...)..
Oxyry Python Obfuscator(https://pyob.oxyry.com/)코드 난독화 사이트가 없어져서 그냥 제가 만들었습니다.왜 없애는지 어차피 이렇게 개발자들이 다시 만들텐데 정말 귀찮게 됐었네요. 필요하신분 아래 코드 또는 첨부 파일 다운받으셔서 난독화_GUI.py 사용하시면 됩니다. 첨부파일 2025/08/30 링크 : https://github.com/all-share-source-code/code-encryption.git GitHub - all-share-source-code/code-encryptionContribute to all-share-source-code/code-encryption development by creating an account on GitHub.g..
Windows 10 PRO에서 진행하였습니다.ctypes에 windll로 해결하면 됩니다.import osimport ctypesimport winregdef get_desktop_path(): """Windows 특수 폴더 API를 사용하여 바탕화면 경로 가져오기""" try: # Windows 특수 폴더 API 사용 CSIDL_DESKTOP = 0x0000 SHGFP_TYPE_CURRENT = 0 shell32 = ctypes.windll.shell32 buffer = ctypes.create_unicode_buffer(260) if shell32.SHGetFolderPathW(None,..
2025/08/06 1. 제거일단 아래와 같이 설치 되어 있는 numpy, openCV 관련된 내용 모두 제거pip uninstall numpy opencv-python opencv-contrib-python opencv-python-headless -y 2. 설치1. NumPy 설치pip install numpy==2.3.2 2. OpenCV 설치 (NumPy 2.x 호환 버전)pip install opencv-python==4.10.0.84 3. pyscreeze 수정(파이썬으로 실행할것)import os# pyscreeze 파일 경로pyscreeze_file = r"D:\2.CODE\Python313\Lib\site-packages\pyscreeze\__init__.py"# 파일 읽기with ope..
adb shell dumpsys input_method하면 아래와 같이 나옵니다. 그중에서 'mCurIntent=Intent...' 값을 확인 하면 됩니다. 추가내용'mInputShown'값은 키보드가 켜있는지 확인하는 값입니다. 출처 : https://stackoverflow.com/questions/12903907/how-to-determine-whether-softkeyboard-is-shown-on-the-screen-while-using-monke
File -> Preferences -> Keyboard Shortcuts 검색창에 "format Document" 검색 shift + alt + F 로 돼어 있는거을 확인 하고 사용 install Formatter 나올시install Formatter클릭후autopep8 설치후 다시 shift + alt + F 추가내용https://all-share-source-code.tistory.com/80 autopep8 -> 항목추가 -> '--max-line-length=120' 입력 [이미지 참조] 출처 : https://microsoft.tistory.com/995 --- 추가 내용 --- 더보기 단축키 ctrl + K + F로 자동 줄맞춤 없이 자동적으로 사용 방법 자동 줄맞" data-og-host..
2024/02/15(구) # 주석 제거 def jsonLoad(self, json_string: str | io.TextIOWrapper): if not isinstance(json_string, str): json_string = json_string.read() # // 형식의 한 줄 주석 제거 json_string = re.sub(r"\/\/.*", "", json_string) # /* */ 형식의 범위 주석 제거 json_string = re.sub(r"\/\*(.|\n)*?\*\/", "", json_string) return json.loads(json_string) 저는 클래스화 해서 사용하고 있기 때문에 self 제거하시고 사용하시면 됩니다. //, /**/ 부분 제거 합니다 2024/0..
이전 글을 활용해서 https://all-share-source-code.tistory.com/87 날짜 비교 함수 까지 만들어 보았습니다. python날짜 변환 통합 함수 문자열 날짜 datetime 변환 가능한 함수 이며, 추가로 변환 기능까지 넣어 보았습니다. from datetime import datetime # 날짜 변환 함수(문자열 특정 포맷 날짜로 변환) def trans_date(date: (datetime | str), toFormat: all-share-source-code.tistory.com from datetime import datetime # 날짜 변환 함수(문자열 특정 포맷 날짜로 변환) def trans_date(date: (datetime | str), toFormat:..
문자열 날짜 datetime 변환 가능한 함수 이며, 추가로 transFormat에 따라 변환 가능 만들어 보았습니다. from datetime import datetime # 날짜 변환 함수(문자열 특정 포맷 날짜로 변환) def trans_date(date: (datetime | str), toFormat: str = "%Y-%m-%d", transFormat: (str | bool) = "%Y-%m-%d", exception: list = []) -> (datetime | str | dict): r''' date : 날짜입력 (datetime, 문자열 형태로 입력) toFormat : str타입 -> 문자열의 날짜형식에 맞게 입력 datetime타입 -> 원하는 문자열날짜 형태로 출력할 형식으로 입..
Linux -> secondswindows -> milliseconds 출처 : https://opendev.org/openstack/oslo.messaging/commit/90a5bd50775f5682756836897da105aac2cb1d41 참고로 안드로이드에서는 사용 안됩니다...안드로이드 KeepAlive 기본값 2시간이라고 합니다.참고 : https://stackoverflow.com/questions/6565667/how-to-set-the-keepalive-timeout-in-android p.s.따라서 2시간 이전에 주기적으로 live check하면서 통신해야됩니다...
커스텀 로그 생성 Live Templates을 활용해서 로그함수 생성 방법 입니다. Settings -> Live Templates -> AndroidLogKotlin -> +버튼 클릭해서 만들어 줍니다. 추가내용 1. skip if defined 설정 할경우 지정한 메소드 위치에 커서를 스킵하게 됩니다. 2. 함수도 사용 가능합니다. (자세한사용법 설명은 아래 링크 참고에서 보시면 되겠습니다.) 참고 : https://velog.io/@max9106/IntelliJ-Live-Template
먼저 cmd키고 scrcpy폴더 안에 들어갑니다. .\adb devices 들어가서 연결된 디바이스 체크 합니다. 2개를 만들어 볼 예정입니다. .\adb -s 자신의_디바이스1_ID tcpip 5551 .\adb -s 자신의_디바이스2_ID tcpip 5552 디바이스 확인후 adb -s 옵션을 주고 자신의_디바이스_ID tcpip 원하는_포트_넘버 입력해줍니다. .\adb -s 자신의_디바이스1_ID connect 디바이스와_연결된_IP:5551 .\adb -s 자신의_디바이스2_ID connect 디바이스와_연결된_IP:5552 그다음 마지막으로 뒷부분만 변경 되는데 connect 디바이스와_연결된_IP:5551 입력해주면 끝 출처 : https://gist.github.com/neshume/d73..